-
Notifications
You must be signed in to change notification settings - Fork 7
/
archive.php
47 lines (46 loc) · 1.39 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
<?php $this->need('header.php'); ?>
<div class="body-wrap">
<section class="archives-wrap">
<div class="archive-year-wrap">
<a href="javascript:void(0);" class="archive-year">
<?php
if($this->have()){
$this->archiveTitle('', '', '');
}else{
echo '<h1>未找到</h1>';
}
?>
</a>
</div>
<div class="archives">
<?php
while($this->next()){
?>
<article class="archive-article archive-type-post">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="<?php $this->permalink();?>" class="archive-article-date">
<time datetime="<?php $this->date('Y-m-d\TH:i:s.000\Z');?>" itemprop="datePublished"><?php $this->date('M j');?></time>
</a>
<br>
</div>
<h1 itemprop="name">
<a class="archive-article-title" href="<?php $this->permalink();?>"><?php $this->title() ?></a>
</h1>
<div class="article-info info-on-right">
<div class="articla-tag tagcloud">
<?php echo yqctags($this);?>
</div>
</div>
<div class="clearfix"></div>
</header>
</div>
</article>
<?php }?>
</div>
</section>
</div>
<br>
<?php $this->pageNav('« 上一页','下一页 »',1,'...'); ?>
<?php $this->need('footer.php'); ?>