2018-05-26 10:59:29 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Template part for displaying posts.
|
|
|
|
*
|
|
|
|
* @link https://codex.wordpress.org/Template_Hierarchy
|
|
|
|
*
|
|
|
|
* @package Akina
|
|
|
|
*/
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<article class="post post-list" itemscope="" itemtype="http://schema.org/BlogPosting">
|
|
|
|
<div class="post-status">
|
|
|
|
<div class="postava">
|
|
|
|
<a href="javascript:;">
|
|
|
|
<img alt="<?php the_author(); ?>" src="<?php echo get_avatar_profile_url(); ?>" class="avatar avatar-64 photo" height="64" width="64">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="s-content">
|
|
|
|
<p><?php echo mb_strimwidth(strip_shortcodes(strip_tags(apply_filters('the_content', $post->post_content))), 0, 150,"...");?></p>
|
|
|
|
<div class="s-time">
|
|
|
|
<?php if(is_sticky()) : ?>
|
|
|
|
<i class="iconfont hotpost icon-hot"></i>
|
|
|
|
<?php endif ?>
|
2018-06-16 15:30:41 +00:00
|
|
|
<i class="iconfont icon-time"></i><?php echo poi_time_since(strtotime($post->post_date_gmt));//the_time('Y-m-d');?>
|
2018-05-26 10:59:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<footer class="entry-footer">
|
|
|
|
<div class="info-meta">
|
|
|
|
<div class="comnum">
|
2019-10-31 16:20:57 +00:00
|
|
|
<span><i class="iconfont icon-mark"></i><?php comments_popup_link('NOTHING', '1 '.__("Comment","sakura")/*条评论*/, '% '.__("Comments","sakura")/*条评论*/); ?></span>
|
2018-05-26 10:59:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="views">
|
2019-10-31 09:25:24 +00:00
|
|
|
<span><i class="iconfont icon-attention"></i><?php echo get_post_views(get_the_ID()).' '._n('Hit','Hits',get_post_views(get_the_ID()),'sakura')/*热度*/?></span>
|
2018-05-26 10:59:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer><!-- .entry-footer -->
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
</article><!-- #post-## -->
|
|
|
|
|