forked from ccjuse/Mirages-For-Typecho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
36 lines (33 loc) · 1.49 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
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div id="archive" role="main">
<h2 class="archive-title"><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ''); ?></h2>
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<article itemscope itemtype="http://schema.org/BlogPosting">
<div class="post">
<a href="<?php $this->permalink() ?>"><h4 class="post-title" itemprop="headline"><?php $this->title() ?></h4></a>
<div class="post-info">
<span itemprop="datePublished"><?php $this->date('F j, Y'); ?></span>
<span class="comments"><a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('评论', '1 条评论', '%d 条评论'); ?></a></span>
</div>
<div class="post-content" itemprop="description">
<p><?php $this->content("Continue Reading..."); ?></p>
</div>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<article class="post">
<h2 class="post-title no-content"><?php _e('没有找到内容'); ?></h2>
</article>
<?php endif; ?>
<?php $this->pageNav('«', '»'); ?>
</div><!-- end #main -->
<?php $this->need('footer.php'); ?>