-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathcontent-category.php
42 lines (38 loc) · 1.33 KB
/
content-category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Template part for displaying posts.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Mokore
*/
?>
<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 {?>
<a href="<?php the_permalink();?>"><img src="<?php bloginfo('template_url'); ?>http://wx2.sinaimg.cn/small/006rG8asly1fzte2eg8hvj30jg0chaao.jpg" /></a>
<?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">
<i class="iconfont"></i> <?php echo poi_time_since(strtotime($post->post_date_gmt));//the_time('Y-m-d');?>
</div>
<div class="works-meta">
<div class="works-comnum">
<span><i class="iconfont"></i> <?php comments_popup_link('暂无', '1 ', '% '); ?></span>
</div>
<div class="works-views">
<span><i class="iconfont"></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-## -->