-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdate.php
More file actions
42 lines (36 loc) · 795 Bytes
/
Copy pathdate.php
File metadata and controls
42 lines (36 loc) · 795 Bytes
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
/**
* The template for date archive pages
*
* @author Javis <javismay@gmail.com>
* @license MIT
*/
get_header(); ?>
<div class="box archive-meta">
<h3 class="title-meta">
<?php
if(is_day()) echo the_time('Y年m月j日');
elseif(is_month()) echo the_time('Y年m月');
elseif(is_year()) echo the_time('Y年');
?>的存档
</h3>
<?php echo '<div class="desc-meta"><span class="top">◆</span>文章存档</div>'; ?>
</div>
<?php
if( have_posts() ){
while ( have_posts() ){
the_post();
get_template_part( 'inc/post-format/content', get_post_format() );
}
}
?>
<?php if($wp_query->max_num_pages > 1 ) { ?>
<div class="pagination clearfix">
<?php pagenavi($range = 3);?>
</div>
<?php } ?>
</div></div>
<?php
get_sidebar();
get_footer();
?>