-
Notifications
You must be signed in to change notification settings - Fork 37
/
archive.php
57 lines (53 loc) · 2.4 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="container-fluid">
<div class="row">
<div class="archive-header">
<span><?php $this->archiveTitle(array(
'category' => _t('- Category · %s -'),
'search' => _t('- Search · %s -'),
'tag' => _t('- Tag · %s -'),
'author' => _t('- Author · %s -')
), '', ''); ?></span>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div id="main" role="main">
<ul class="post-list clearfix">
<?php if ($this->have()) : ?>
<?php while ($this->next()) : ?>
<li class="post-item grid-item" itemscope itemtype="http://schema.org/BlogPosting">
<a class="post-link" href="<?php $this->permalink() ?>">
<?php
if (@$this->fields->cover) {
echo '<span class="cover" style="background: url(' . $this->fields->cover . ') center/cover no-repeat;"></span>';
}
?>
<h3 class="post-title"><time class="index-time" datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date('M j, Y'); ?></time><br><?php $this->title() ?></h3>
<?php if ($this->category) : ?>
<div class="post-meta">
<?php echo $this->category(', ', false); ?>
</div>
<?php endif; ?>
</a>
</li>
<?php endwhile; ?>
<?php else : ?>
<br><br>
<h2 class="post-title">
<center><?php _e('(´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`) 什么都没有找到唉...'); ?></center>
</h2>
<?php endif; ?>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="nav-page">
<?php $this->pageNav('«', '»'); ?>
</div>
</div>
</div>
<?php $this->need('footer.php'); ?>