-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharchive.php
More file actions
34 lines (34 loc) · 1.54 KB
/
Copy patharchive.php
File metadata and controls
34 lines (34 loc) · 1.54 KB
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'); ?>
<section id="body">
<div class="container">
<div id="main">
<div class="res-cons layoutSingleColumn u-paddingTop50">
<h1 class="label-title in-mark"><?php $this->archiveTitle(array(
'category' => _t('分类 <b>%s</b>'),
'search' => _t('检索到包含 <b>%s</b> 的文章'),
'tag' => _t('标签 <b>%s</b> 下的文章'),
), '', ''); ?></h1>
<?php if ($this->have()): ?>
<?php while ($this->next()) : ?>
<article class="post">
<header class="post-meta">
<time datetime="<?php $this->date(); ?>" pubdate="pubdate" class="post-date"><?php $this->date('M d, Y'); ?></time>
<h2 class="post-title"><a href="<?php $this->permalink(); ?>" ><?php $this->title(); ?></a>
</h2>
</header>
<div class="post-content"><?php $this->excerpt(120,'...'); ?></div>
</article>
<?php endwhile; ?>
<div class="page-navigator">
<div class="in-mark">
<?php $this->pageLink('下一页 »','next'); ?>
<?php $this->pageLink('« 上一页'); ?>
</div>
</div><?php else: ?>没有找到任何文章
<?php endif; ?>
</div>
</div>
</div>
</section>
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>