64 lines
3.6 KiB
PHP
64 lines
3.6 KiB
PHP
|
|
<?php get_header(); ?>
|
||
|
|
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-xs-12 breadcrumb">
|
||
|
|
<?php if(function_exists('bcn_display')){bcn_display();}?>
|
||
|
|
</div>
|
||
|
|
<div class="clearfix"></div>
|
||
|
|
</div>
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-sm-9">
|
||
|
|
<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));?>
|
||
|
|
<h1 class="widget-title-orange"><span>Author: <?php echo $curauth->nickname; ?></span></h1>
|
||
|
|
<div class="featured-box-inner">
|
||
|
|
<div class="featured-content-inner" style="padding: 0 12px;">
|
||
|
|
<?php echo get_avatar( get_the_author_meta( 'ID' ), 80 ); ?>
|
||
|
|
<?php echo $curauth->user_description; ?>
|
||
|
|
<div class="clearfix"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="spacing-2x"></div>
|
||
|
|
|
||
|
|
<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));?>
|
||
|
|
<h1 class="widget-title-orange"><span><?php echo '' . count_user_posts( get_the_author_meta('ID') ); ?> posts by <?php echo $curauth->nickname; ?></span></h1>
|
||
|
|
<div class="featured-box-inner">
|
||
|
|
<div class="featured-content-inner" style="padding: 0 12px;">
|
||
|
|
<div id="loadmore">
|
||
|
|
|
||
|
|
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $i=1;?>
|
||
|
|
<div class="col-sm-6 thepostsscroll nopadding-left">
|
||
|
|
<div class="post-box-side" onclick="location.href='<?php the_permalink();?>';" onmouseover="window.status='<?php the_permalink();?>'" onmouseout="window.status=''">
|
||
|
|
<table class="table table-posts">
|
||
|
|
<tr>
|
||
|
|
<td class="col-sm-4" valign="middle" style="vertical-align: middle;"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><img alt="<?php the_title();?>" src="<?php the_post_thumbnail_url(); ?>" class="img-responsive" style="width: 100%; height: 68px;"></a></td>
|
||
|
|
<td class="col-sm-8" valign="top" style="vertical-align: top; padding: 0 10px;">
|
||
|
|
<h3><a class="darklink" href="<?php the_permalink();?>"><?php the_title();?></a></h3>
|
||
|
|
<div class="featured-meta-side">
|
||
|
|
<i class="fas fa-calendar"></i> <?php the_time("F d, Y");?>
|
||
|
|
<i class="fas fa-comments"></i> <?php comments_popup_link('0', '1', '%', 'darklink'); ?>
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<?php if($i%2==0){?><div class="clearfix"></div><?php }$i++;?>
|
||
|
|
<?php endwhile; else: ?>
|
||
|
|
<p><?php _e('No posts by this author.'); ?></p>
|
||
|
|
<?php endif; ?>
|
||
|
|
<div class="clearfix"></div>
|
||
|
|
<?php echo do_shortcode('[ajax-loadmore-button]');?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="col-sm-3">
|
||
|
|
<?php get_sidebar();?>
|
||
|
|
</div>
|
||
|
|
<div class="clearfix"></div>
|
||
|
|
<div class="spacing-2x"></div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<?php get_footer(); ?>
|