forked from pengtikui/NexT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
47 lines (47 loc) · 1.51 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
39
40
41
42
43
44
45
46
47
<?php get_header(); ?>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap with-shadow">
<div id="content" class="content">
<div id="posts" class="posts-collapse">
<?php if(have_posts()) : ?>
<div class="collection-title">
<h2>
<?php if(is_category()) : ?>
<?php single_cat_title() ?> <small>分类</small>
<?php elseif(is_tag()) : ?>
<?php single_tag_title() ?> <small>标签</small>
<?php endif; ?>
</h2>
</div>
<?php while (have_posts()) : the_post();
get_template_part('template/content', 'archive');
endwhile;
the_posts_pagination(array(
'prev_text' => '<i class="fa fa-angle-left"></i>',
'next_text' => '<i class="fa fa-angle-right"></i>'
));
?>
<?php else : ?>
<h1>无内容</h1>
<?php endif; ?>
</div>
</div>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner with-shadow-around">
<section class="site-overview sidebar-panel sidebar-panel-active ">
<?php include 'inc/site-overview.php'; ?>
</section>
</div>
</aside>
</div>
</main>
<?php get_footer(); ?>