-
Notifications
You must be signed in to change notification settings - Fork 4
/
archive.php
36 lines (34 loc) · 867 Bytes
/
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
<?php
if(is_tax( 'topics' )){
get_template_part('template/category-topics');
return;
}
get_header();
$pagedtext = '';
if ($paged && $paged > 1) {
$pagedtext = ' <small>第' . $paged . '页</small>';
}
?>
<main role="main" class="container">
<div class="content-wrap">
<div class="content-layout">
<div class="main-bg text-center box-body radius8 main-shadow theme-box">
<h4 class="title-h-center">
<?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年');
?>的文章<small class="ml10"><?php echo $pagedtext ?></small>
</h4>
</div>
<?php
echo '<div class="ajaxpager">';
get_template_part('template/excerpt');
zib_paging();
echo '</div>';
?>
</div>
</div>
<?php get_sidebar(); ?>
</main>
<?php get_footer(); ?>