-
Notifications
You must be signed in to change notification settings - Fork 25
/
archive.php
34 lines (30 loc) · 1.06 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
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<main>
<div class="wrap min">
<section class="board head">
<h3><?php $this->archiveTitle(array(
'category' => _t('<i class="fa fa-folder"></i>%s'),
'search' => _t('<i class="fa fa-search"></i>搜索结果:%s'),
'tag' => _t('<i class="fa fa-tags"></i>%s'),
'author' => _t('<i class="fa fa-user"></i>%s 的文章')
), '', ''); ?></h3>
</section>
<section class="board">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<div class="post-item">
<time class="date"><?php $this->date(); ?></time>
<h3 class="title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h3>
</div>
<?php endwhile; ?>
<?php else: ?>
<p>没有找到结果 (QWQ)</p>
<?php endif; ?>
</section>
<?php $this->pageNav('', ''); ?>
</div>
</main>
<?php $this->need('footer.php'); ?>