sakura/tpl/content-category.php

43 lines
1.3 KiB
PHP
Raw Normal View History

2018-05-26 18:59:29 +08:00
<?php
/**
* Template part for displaying posts.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Akina
*/
?>
<article class="post works-list" itemscope="" itemtype="http://schema.org/BlogPosting">
<div class="works-entry">
<div class="works-main">
<div class="works-feature">
<?php if ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink();?>"><?php the_post_thumbnail('large'); ?></a>
<?php } else {?>
2019-01-26 11:25:53 +08:00
<a href="<?php the_permalink();?>"><img src="<?php echo DEFAULT_FEATURE_IMAGE(); ?>" /></a>
2018-05-26 18:59:29 +08:00
<?php } ?>
</div>
<div class="works-overlay">
<h1 class="works-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h1>
<div class="works-p-time">
2018-06-16 23:30:41 +08:00
<i class="iconfont icon-calendar"></i> <?php echo poi_time_since(strtotime($post->post_date_gmt));//the_time('Y-m-d');?>
2018-05-26 18:59:29 +08:00
</div>
<div class="works-meta">
<div class="works-comnum">
2019-10-31 17:25:24 +08:00
<span><i class="iconfont icon-mark"></i> <?php comments_popup_link(__('NOTHING','sakura'), '1 ', '% '); /*暂无*/?></span>
2018-05-26 18:59:29 +08:00
</div>
<div class="works-views">
<span><i class="iconfont icon-attention"></i> <?php echo get_post_views(get_the_ID()); ?> </span>
</div>
</div>
<a class="worksmore" href="<?php the_permalink(); ?>"></a>
</div>
<!-- .entry-footer -->
</div>
</div>
</article><!-- #post-## -->