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-entry">
|
|
|
|
<div class="feature">
|
|
|
|
<?php if ( has_post_thumbnail() ) { ?>
|
|
|
|
<a href="<?php the_permalink();?>"><div class="overlay"><i class="iconfont icon-text"></i></div><?php the_post_thumbnail(); ?></a>
|
|
|
|
<?php } else {?>
|
|
|
|
<a href="<?php the_permalink();?>"><div class="overlay"><i class="iconfont icon-text"></i></div><img src="<?php bloginfo('template_url'); ?>/images/random/d-<?php echo rand(1,10)?>.jpg" /></a>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
<h1 class="entry-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h1>
|
|
|
|
<div class="p-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>
|
|
|
|
<p><?php echo mb_strimwidth(strip_shortcodes(strip_tags(apply_filters('the_content', $post->post_content))), 0, 150,"...");?></p>
|
|
|
|
<footer class="entry-footer">
|
|
|
|
<div class="post-more">
|
|
|
|
<a href="<?php the_permalink(); ?>"><i class="iconfont icon-caidan"></i></a>
|
|
|
|
</div>
|
|
|
|
<div class="info-meta">
|
|
|
|
<div class="comnum">
|
|
|
|
<span><i class="iconfont icon-mark"></i><?php comments_popup_link('NOTHING', '1 条评论', '% 条评论'); ?></span>
|
|
|
|
</div>
|
|
|
|
<div class="views">
|
2019-06-05 10:04:41 +00:00
|
|
|
<span><i class="iconfont icon-attention"></i><?php echo get_post_views(get_the_ID()); ?> 热度</span>
|
2018-05-26 10:59:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer><!-- .entry-footer -->
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
</article><!-- #post-## -->
|
|
|
|
|