-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharchive.php
45 lines (41 loc) · 1.58 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
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
$this->need('nav-index.php');
?>
<main>
<h3 class="mb-3"><?php $this->archiveTitle([
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
], '', ''); ?></h3>
<?php if ($this->have()): ?>
<div class="print-article-group">
<?php while ($this->next()): ?>
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<a href="<?php $this->permalink() ?>" class="print-article-info" itemprop="url">
<time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time>
<h3 itemprop="name headline"><?php $this->title() ?></h3>
</a>
<?php $this->content(''); ?>
</article>
<?php endwhile; ?>
</div>
<?php else: ?>
<article class="post">
<p class="mb-5"><?php _e('没有找到内容'); ?></p>
</article>
<?php endif; ?>
<nav>
<?php $this->pageNav('«', '»', 3, '...',
array('wrapTag' => 'ul',
'wrapClass' => 'pagination justify-content-center',
'itemTag' => 'li',
'textTag' => 'span',
'currentClass' => 'active',
'prevClass' => 'page-link',
'nextClass' => 'page-link')); ?>
</nav>
</main><!-- end #main -->
<?php $this->need('footer.php'); ?>