This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy patharchive.php
42 lines (39 loc) · 1.96 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<!-- 点击分类显示 -->
<div id="archive">
<h3 class="archive-title"><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ''); ?></h3>
<?php if ($this->have()) : ?>
<ul class="archive-list article-strip">
<li class="strip-title">
<span class="time ellipse">Date</span>
<span class="title">Title</span>
<span class="words ellipse">Views</span>
<span class="category ellipse">Comments</span>
</li>
<?php while ($this->next()) : ?>
<li>
<span class="time ellipse"><time datetime="<?php $this->date('Y年m月d日 H:i'); ?>"><?php $this->date('Y/m/d'); ?></time></span>
<span class="title ellipse">
<i class="fa fa-file"></i>
<a href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
</span>
<span class="words ellipse"><?php get_post_view($this) ?></span>
<span class="category ellipse"><?php $this->commentsNum('0', '1', '%d'); ?></span>
</li>
<?php endwhile; ?>
</ul>
<?php else : ?>
<article class="no-content">
<p><i class="fa fa-fw fa-exclamation-triangle"></i></p>
<h2><?php _e('Oops!内容被小怪兽吃掉了~'); ?></h2>
</article>
<?php endif; ?>
<?php $this->pageNav('« 前一页', '后一页 »'); ?>
</div><!-- end #main -->
<?php $this->need('footer.php'); ?>