-
Notifications
You must be signed in to change notification settings - Fork 12
/
archive.php
executable file
·58 lines (58 loc) · 2.92 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
<?php $this->need('header.php'); ?>
<div id="m-container" class="container">
<div class="col-md-8">
<div class="alert alert-info">
<p><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ''); ?></p>
</div>
<div id="article-list">
<?php while($this->next()): ?>
<article class="post-article clearfix">
<section class="">
<div class="category-cloud"><?php $this->category(''); ?></div>
<h3 class="title">
<a href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
</h3>
<hr>
<div class="row">
<div class="col-md-12 article-content">
<?php $this->content(); ?>
</div>
</div>
<hr>
<div class="pull-left">
<a class="btn btn-green" href="<?php $this->permalink() ?>">阅读全文</a>
</div>
<div class="pull-right post-info">
<span><i class="fa fa-calendar"></i> <?php $this->date('Y-m-d'); ?></span>
<span><i class="fa fa-user"></i> <a href="<?php $this->author->permalink(); ?>" rel="author"><?php $this->author(); ?></a></span>
<span><i class="fa fa-comment"></i> <a href="<?php $this->permalink() ?>#comments"><?php echo $this->commentsNum.'评论';?><span class="ds-thread-count" data-thread-key="<?php echo $this->cid;?>"></span></a></span>
</div>
</section>
</article>
<?php endwhile; ?>
</div>
<!-- 分页按钮 -->
<div class="page-nav">
<nav>
<?php $this->pageNav('«', '»', 3, '...', array(
'itemTag' => 'li',
'textTag' => 'span',
'currentClass' => 'disabled',
'prevClass' => 'prev',
'nextClass' => 'next',
'wrapTag' => 'ul',
'wrapClass' => 'pagination'
)); ?>
</nav>
</div>
</div>
<div class="col-md-4">
<?php $this->need('sidebar.php'); ?>
</div>
</div>
<?php $this->need('footer.php');