forked from siseboy/junichi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
executable file
·33 lines (31 loc) · 1.55 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
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div class="mid-col">
<div class="mid-col-container">
<h1 class="title" style="padding-top:30px;"><?php $this->archiveTitle(array(
'category' => _t('分类 <span style=color:#2479CC;>%s</span> 下的文章'),
'search' => _t('包含关键字 <span style=color:#2479CC;>%s</span> 的文章'),
'tag' => _t('标签 <span style=color:#2479CC;>%s</span> 下的文章'),
'author' => _t('<span style=color:#2479CC;>%s</span> 的文章')
), '', ''); ?></h1>
<?php while($this->next()): ?>
<article class="post post-list">
<div class="meta">
<div class="date">
<time><?php $this->date('M j, Y'); ?></time>
</div>
<div class="comment">
<a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum(_t(' No Comments '), _t(' %d Comments ')); ?></a>
</div>
</div>
<h1 class="title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
<div class="entry-content">
<p><?php if (isset($this->fields->zhaiyao)): ?><?php $this->fields->zhaiyao(); ?><?php endif; ?></p>
<p><a href="<?php $this->permalink() ?>" class="more-link">继续阅读 »</a></p>
</div>
</article>
<?php endwhile; ?>
<?php $this->pageLink('<nav class="page-navi"><i class="icon icon-left"></i> 上一页','prev');?><?php $this->pageLink('下一页 <i class="icon icon-right"></i></nav>','next');?>
</div>