forked from ncccode/echo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
49 lines (46 loc) · 2.46 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="layui-container">
<div class="layui-row layui-col-space15 main">
<div class="map">
<span class="layui-breadcrumb">
<a href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a>
<a><cite>
<?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ''); ?>
</cite></a>
</span>
</div>
<div class="layui-col-md9 layui-col-lg9">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<div class="title-article list-card">
<div class="list-pic"><a href="<?php $this->permalink() ?>" title="<?php $this->title() ?>"><img src="<?php echo thumb($this); ?>" alt="<?php $this->title() ?>" class="img-full"></a></div>
<a href="<?php $this->permalink() ?>">
<h1><?php $this->title() ?></h1>
<p><?php $this->excerpt(200, '...'); ?></p>
</a>
<div class="title-msg">
<span><i class="layui-icon"></i> <?php $this->category(','); ?></span>
<span><i class="layui-icon"></i> <?php $this->date('Y-m-d A'); ?> </span>
<span class="layui-hide-xs"><i class="layui-icon"></i> <?php get_post_view($this); ?>次</span>
<span class="layui-hide-xs"><i class="layui-icon"></i> <?php $this->commentsNum('%d'); ?>条</span>
</div>
</div>
<?php endwhile; ?>
<div class="page-navigator">
<?php $this->pageNav('«', '»', 1, '...', array('wrapTag' => 'div', 'wrapClass' => 'layui-laypage layui-laypage-molv', 'itemTag' => '', 'currentClass' => 'current', )); ?>
</div>
<?php else: ?>
<div class="post">
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
</div>
<?php endif; ?>
</div>
<?php $this->need('sidebar.php'); ?>
</div>
</div>