-
Notifications
You must be signed in to change notification settings - Fork 36
/
archive.php
59 lines (56 loc) · 2.57 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<!-- content srart -->
<div class="am-g am-g-fixed blog-fixed">
<div class="am-u-md-12 am-u-sm-12">
<h2 class="am-margin-top-lg"><?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 class="am-g blog-entry-article">
<div class="am-u-lg-6 am-u-lg-12 am-u-sm-12 blog-entry-text post-preview">
<div class="topic-header">
<div class="pull-left">
<div class="blog-flex-center">
<div class="blog-flex0">
<img src="<?php $this->options->avatarUrl(); ?>" alt="" class="link avatar avatar-image">
</div>
<div class="author-lockup blog-flex1">
<a class="link" href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a>
<span class="in">in</span>
<span class="category-name">
<?php $this->category(' '); ?>
</span>
</div>
</div>
</div>
<span class="pull-right time pc_time"><?php $this->date('F j, Y'); ?></span>
</div>
<h1 class="post-index-title"><a target="_blank" itemtype="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
<div class="post-content-preview">
<?php $this->excerpt(200, '...'); ?>
</div>
<div class="clearfix topic-footer">
<span class="pull-left time mobile_time"><?php $this->date('F j, Y'); ?></span>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<article class="am-g blog-entry-article am-text-center">
<?php _e('没有找到内容'); ?>
</article>
<?php endif; ?>
<ul class="am-pagination">
<?php $this->pageLink('« Prev','prev');?>
<?php $this->pageLink('Next »','next');?>
</ul>
</div>
</div>
<!-- content end -->
<?php $this->need('footer.php'); ?>