echo '<span id="mute-category" class="muted"><i class="fa fa-list-alt"></i><a href="' . get_category_link($category[0]->term_id) . '"> ' . $category[0]->cat_name . '</a></span>'; } ?> <span class="muted"><i class="fa fa-user"></i> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?> "><?php echo get_the_author(); ?> </a></span> <time class="muted"><i class="fa fa-clock-o"></i> <?php echo timeago(get_gmt_from_date(get_the_time('Y-m-d G:i:s'))); ?> </time> <span class="muted"><i class="fa fa-eye"></i> <?php deel_views('℃'); ?> </span> <?php if (comments_open()) { echo '<span class="muted"><i class="fa fa-comments-o"></i> <a href="' . get_comments_link() . '">' . get_comments_number('去', '1', '%') . '评论</a></span>'; } ?> <?php edit_post_link('[编辑]'); ?> </div> </header> <?php if (dopt('d_adpost_01_b')) { echo '<div class="banner banner-post">' . dopt('d_adpost_01') . '</div>';
} ?> </li> <li class="metacomt"> <i class="fa fa-comments"></i> <?php if (comments_open()) { echo '<a href="' . get_comments_link() . '">' . get_comments_number('0', '1', '%') . ' Comments</a>'; } ?> </li> <li class="metaview"> <i class="fa fa-eye"></i><?php deel_views(' Views'); ?> </li> <li class="metacateblack-color"> <i class="fa fa-list"></i><?php the_category(‘, ‘); ?> </li> <li class="metaauthor"> <i class="fa fa-user"></i> <?php if (!is_author()) { ?>
</a> </h1> <div class="meta"> <time class="muted"><i class="fa fa-clock-o"></i><?php the_time('Y.m.d'); ?> </time> <?php $category = get_the_category(); if ($category[0]) { echo '<span class="muted"><i class="fa fa-list"></i><a href="' . get_category_link($category[0]->term_id) . '">' . $category[0]->cat_name . '</a></span>'; } ?> <span class="muted"><i class="fa fa-eye"></i><?php deel_views(' Views'); ?> </span> <?php if (comments_open()) { echo '<span class="muted"><i class="fa fa-user"></i><a href="' . get_comments_link() . '">' . get_comments_number('去', '1', '%') . ' Comments</a></span>'; } ?> <?php edit_post_link('[ 编辑 ]'); ?> </div> </div> <!-- 内容页顶部广告 -->
} ?> <?php if (!$_time) { ?> <span class="muted"><i class="icon-time icon12"></i> <?php echo timeago(get_gmt_from_date(get_the_time('Y-m-d G:i:s'))); ?> </span><?php } ?> <?php if (!$_views) { ?> <span class="muted"><i class="icon-eye-open icon12"></i> <?php deel_views('浏览'); ?> </span><?php } ?> <?php if (!$_comment) { ?> <span class="muted"><i class="icon-comment icon12"></i> <?php if (comments_open()) { echo '<a href="' . get_comments_link() . '">' . get_comments_number('0', '1', '%') . '评论</a>'; } ?> </span></p><?php } ?>
} ?> <?php if (!$_time) { ?> <span class="muted"><i class="fa fa-clock-o"></i> <?php echo timeago(get_gmt_from_date(get_the_time('Y-m-d G:i:s'))); ?> </span><?php } ?> <?php if (!$_views) { ?> <span class="muted"><i class="fa fa-eye"></i> <?php deel_views('次浏览'); ?> </span><?php } ?> <?php if (!$_comment) { ?> <span class="muted"><i class="fa fa-comments-o"></i> <?php if (comments_open()) { echo '<a target="_blank" href="' . get_comments_link() . '">' . get_comments_number('0', '1', '%') . '个评论</a>'; } ?> </span><?php } if (!$_like) {
if( has_post_thumbnail() || !dopt('d_thumbnail_b') ){ $_thumbnail = true; } ?> <article class="excerpt<?php echo !$_thumbnail ? ' excerpt-nothumbnail' : '' ?>"> <header><?php if( !is_category() ) {$category = get_the_category(); if($category[0]){echo '<a class="label label-important" href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'<i class="label-arrow"></i></a>';} };?><h2><a target="_blank" href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> <?php $t1=$post->post_date; $t2=date("Y-m-d H:i:s"); $diff=(strtotime($t2)-strtotime($t1))/3600; if($diff<12){echo '<img src="'.get_bloginfo("template_url").'/img/new.gif" alt="24小时内最新">';}?> </a></h2> </header> <?php if( $_thumbnail ){ ?> <div class="focus"><a target="_blank" href="<?php the_permalink(); ?>"><img class="thumb" src="<?php $url = post_thumbnail_src();if(strpos($url, $_SERVER['SERVER_NAME'])){ echo get_bloginfo('template_url') .'/timthumb.php?src='.$url.'&h=123&w=200&q=90&zc=1&ct=1';}else{echo $url.'?imageMogr2/thumbnail/200x123!';} ?>" alt="<?php the_title(); ?>" /></a></div> <?php } ?> <span class="note"> <?php echo deel_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 140, '...'); ?></span> <p class="auth-span"> <?php if( !is_author() && !$_author ){ ?> <span class="muted"><i class="fa fa-user"></i> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>"><?php echo get_the_author() ?></a></span> <?php } ?> <?php if( !$_time ){ ?><span class="muted"><i class="fa fa-clock-o"></i> <?php echo timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) ) ?></span><?php } ?> <?php if( !$_views ){ ?><span class="muted"><i class="fa fa-eye"></i> <?php deel_views('℃'); ?></span><?php } ?> <?php if( !$_comment ){ ?><span class="muted"><i class="fa fa-comments-o"></i> <?php if ( comments_open() ) echo '<a target="_blank" href="'.get_comments_link().'">'.get_comments_number('0', '1', '%').'评论</a>' ?></span><?php } ?> <?php if( !$_like ){ ?><span class="muted"> <a href="javascript:;" data-action="ding" data-id="<?php the_ID(); ?>" id="Addlike" class="action<?php if(isset($_COOKIE['bigfa_ding_'.$post->ID])) echo ' actived';?>"><i class="fa fa-heart-o"></i><span class="count"><?php if( get_post_meta($post->ID,'bigfa_ding',true) ){ echo get_post_meta($post->ID,'bigfa_ding',true); } else {echo '0';}?></span>喜欢</a></span><?php } ?></p> </article> <?php endwhile; wp_reset_query(); ?> <?php deel_paging(); ?>