forked from limileo/L-Talk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
executable file
·38 lines (38 loc) · 1.29 KB
/
archive.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
<?php get_header();?>
<canvas id="matrix"></canvas>
<div class="container">
<div class="box_title matrix_title"><h2>{ <?php $thiscat = get_category($cat); echo $thiscat ->name;?>
}
</h2>
<span>文章 <?php global $wp_query; $cat_ID = get_query_var('cat'); echo get_category($cat_ID)->count;?> 篇</span>
</div>
<ul>
<?php if( have_posts() ): ?>
<?php while ( have_posts() ): the_post(); ?>
<li>
<div class="post-box">
<div class="img_box">
<?php the_post_thumbnail(); ?>
<span class="tips_box"><?php the_category('|') ?></span>
</div>
<div class="intro">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="abstract">
<?php echo get_the_excerpt(); ?>
</div>
</div>
<div class="info">
<div class="info-list">
<span><i class="fa fa-clock-o fa-fw fa-spin"></i><?php the_time();?></span><?php the_tags('<span class="l_mate">','</span><span class="l_mate">','</span>'); ?>
</div>
<span class="view_box">阅读量:<?php get_post_views($post -> ID); ?></span>
</div>
</div>
</li>
<?php endwhile; ?>
<?php limi_pagenavi();?>
<?php endif; ?>
</ul>
</div>
<script src="<?php echo get_template_directory_uri();?>/js/matrix.js"></script>
<?php get_footer();?>