-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patharchive.php
More file actions
29 lines (29 loc) · 1.15 KB
/
archive.php
File metadata and controls
29 lines (29 loc) · 1.15 KB
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
<?php $this->need('header.php'); ?>
<section id="content">
<header><h2 class="archivetitle"><?php $this->archiveTitle('-', '', ''); ?></h2></header>
<?php while($this->next()): ?>
<article class="post">
<div class="info">
<a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('0 条评论', '1 条评论', '%d 条评论'); ?></a>
</div>
<div class="date">
<span class="day"><?php $this->date('d'); ?></span>
<span class="time"><?php $this->date('M'); ?></span>
<span class="year"><?php $this->date('Y'); ?></span>
</div>
<header>
<h2><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
</header>
<div class="con">
<?php Thumbnail_Plugin::show($this); ?>
<?php //$this->content('阅读剩余部分...'); ?><?php $this->excerpt(180, '...');//200就是摘要的字数 ?>
</div>
</article>
<?php endwhile; ?>
<div class="post"><?php $this->pageNav('上一页','下一页',10,'...');?></div>
</section>
<aside class="sidebar">
<?php $this->need('sidebar.php'); ?>
</aside>
<div class="clear"></div>
<?php $this->need('footer.php'); ?>