-
Notifications
You must be signed in to change notification settings - Fork 33
/
archive.php
41 lines (36 loc) · 1.97 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
<?php $this->need('header.php'); ?>
<div id="main">
<div id="content-container" class="<?php if ($this->options->sidebarDisplay != 'full'): ?><?php if ($this->options->sidebarDisplay == 'left'): ?> layout-left<?php else: ?> layout-right<?php endif; ?><?php else: ?>layout-full<?php endif; ?>">
<div id="content" role="main">
<?php if ($this->have()): ?>
<?php while ($this->next()): ?>
<article class="post">
<header>
<h1 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
<p class="post-info"><?php $this->category(' / '); ?> Posted by <a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a><span class="comments"> / <a href="<?php $this->permalink(); ?>#comments"><?php $this->commentsNum('0', '1', '%d'); ?></a> comments</span></p>
<div class="post-date"><span><?php dateConvert($this->date->month); ?></span><span><?php $this->date('d'); ?></span></div>
</header>
<section class="post-content">
<?php $this->content('Read More »'); ?>
</section>
<footer></footer>
</article>
<?php endwhile; ?>
<?php else: ?>
<article class="post">
<header>
<h1 class="post-title"><?php _e('没有找到内容'); ?></h1>
</header>
</article>
<?php endif; ?>
<nav id="pagination">
<?php $this->pageNav(); ?>
</nav><!--=E #pagination -->
</div><!--=E #content -->
<?php if ($this->options->sidebarDisplay != 'full'): ?>
<?php $this->need('sidebar.php'); ?>
<?php endif; ?>
<div class="clear"></div>
</div><!--=E #content-container -->
</div><!--=E #main -->
<?php $this->need('footer.php'); ?>