You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.8 KiB
PHP
45 lines
1.8 KiB
PHP
<?php if(!empty($author_rank_list)){ ?>
|
|
<div class="nav-header" style="padding-left:0;">The most active author of this month</div>
|
|
<legend></legend>
|
|
<div class="media">
|
|
<?php
|
|
$author=get_author_name($author_rank_list->t_a_id);
|
|
$author=trim($author);
|
|
$author_url_array=array(
|
|
'Pete Marchetto'=>'Pete-Marchetto',
|
|
'Anusuya Mitra'=>'Anusuya-Mitra',
|
|
'Christy Campbell'=>'Christy-Campbell',
|
|
'Dwain'=>'Dwain',
|
|
'Kit Onslow Smith'=>'Kit-Onslow-Smith',
|
|
'Klaus Capra'=>'Klaus-Capra');
|
|
$author_url='#';
|
|
if(isset($author_url_array[$author])){
|
|
$author_url=$author_url_array[$author];
|
|
$author_url="http://www.chinahighlights.com/author/$author_url/";
|
|
}
|
|
?>
|
|
<a class="pull-left" href="<?php echo $author_url; ?>">
|
|
<img class="media-object" src="<?php echo get_author_photo($author_rank_list->t_a_id); ?>" style="width:64px;height:64px;">
|
|
</a>
|
|
<div class="media-body">
|
|
<div class="media">
|
|
<a href="<?php echo $author_url; ?>"><?php echo $author; ?></a>
|
|
<span></span>
|
|
<span></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
<p> </p>
|
|
<?php if(!empty($article_rank_list)){ ?>
|
|
<div class="nav-header" style="padding-left:0;">The best articles this month</div>
|
|
<legend style="margin-bottom:0;"></legend>
|
|
<?php foreach ($article_rank_list as $key => $article) { ?>
|
|
<div style="padding:10px 0;">
|
|
<p style="margin-bottom:0;"><span style="padding-right:8px;">NO.<?php echo $key+1;?></span><a href="<?php echo site_url('welcome/view/'.$article->t_id); ?>"><?php echo $article->t_title; ?></a></p>
|
|
<p style="text-align: right;">---by <?php echo get_author_name($article->t_a_id);?></p>
|
|
</div>
|
|
<legend style="margin-bottom:0;"></legend>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
|