-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
64 lines (61 loc) · 2.54 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
60
61
62
63
64
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="container">
<div class="row">
<section id="main" class="col-md-8">
<?php if($this->is('index')): ?>
<?php else: ?>
<div class="kratos-hentry clearfix">
<h1 class="kratos-post-header-title"><?php $this->archiveTitle(array(
'category' => _t('Category : %s'),
'search' => _t('Search : %s'),
'tag' => _t('Tag : %s'),
'author' => _t('Author : %s'),
'date' => _t('Date : %s')
), '', ''); ?></h1>
</div>
<?php endif; ?>
<?php if($this->have()):?>
<?php while($this->next()): ?>
<article class="kratos-hentry clearfix">
<div class="kratos-entry-border-new clearfix">
<div class="kratos-post-inner-new">
<header class="kratos-entry-header-new">
<a class="label"><?php $this->category(',',false); ?><i class="label-arrow"></i></a>
<h2 class="kratos-entry-title-new"><a href="<?php $this->permalink(); ?>"><?php $this->title(); ?></a></h2>
</header>
<div class="kratos-entry-content-new">
<p><?php $this->excerpt(140, '...'); ?></p>
</div>
</div>
<div class="kratos-post-meta-new">
<span class="visible-lg visible-md visible-sm pull-left">
<a href="#"><i class="fa fa-calendar"></i> <?php $this->date('Y/m/d'); ?></a>
<a href="<?php $this->permalink(); ?>#respond"><i class="fa fa-commenting-o"></i> <?php $this->commentsNum('0', '1', '%d'); ?> Comments</a>
</span>
<span class="pull-left">
<a href="<?php $this->permalink(); ?>"><i class="fa fa-eye"></i> <?php get_post_view($this); ?> Views</a>
</span>
<span class="pull-right">
<a class="read-more" href="<?php $this->permalink(); ?>">阅读全文 <i class="fa fa-chevron-circle-right"></i></a>
</span>
</div>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<div class="kratos-hentry clearfix">
<h1 class="kratos-post-header-title">还没有新文章发布哦</h1>
</div>
<?php endif; ?>
<?php $this->pageNav('<', '>', 3, '', array('wrapTag' => 'ul', 'wrapClass' => 'pagination', 'itemTag' => 'li', 'textTag' => '', 'currentClass' => 'active', 'prevClass' => 'prev', 'nextClass' => 'next')); ?>
</section>
<aside id="kratos-widget-area" class="col-md-4 hidden-xs hidden-sm scrollspy">
<div id="sidebar">
<?php $this->need('sidebar.php'); ?>
</div>
</aside>
</div>
</div>
</div>
<?php $this->need('footer.php'); ?>