-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.php
49 lines (45 loc) · 2.39 KB
/
index.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
<?php
/**
* 移植自WordPress默认主题Twenty Twelve
* 本人只负责移植,一切版权都归原作者所有
*
* @package Twenty Twelve
* @author 怡红公子
* @version 1.2
* @link http://imnerd.org
*/
$this->need('header.php');
?>
<div id="primary" class="site-content">
<div id="content" role="main">
<?php while($this->next()): ?>
<article class="post type-post status-publish format-standard hentry category-uncategorized">
<header class="entry-header">
<h1 class="entry-title">
<a href="<?php $this->permalink() ?>" title="链向 <?php $this->title() ?> 的固定链接" rel="bookmark">
<?php $this->title() ?>
</a>
</h1>
<div class="comments-link">
<a href="<?php $this->permalink() ?>#comments" title="<?php $this->title() ?> 上的评论">
<?php $this->commentsNum('暂无回复', '沙发被抢', '%d 条回复'); ?>
</a>
</div>
</header>
<div class="entry-content">
<?php $this->content('继续阅读→') ?>
</div>
<footer class="entry-meta">
本条目发布于 <a href="<?php $this->permalink() ?>" title="<?php $this->date('G:i') ?>" rel="bookmark"><time class="entry-date" datetime="<?php $this->date('c'); ?>"><?php $this->date('Y 年 m 月 j 日'); ?></time></a>。属于<a href="#" title="查看 中的全部文章" rel="category"><?php $this->category(',') ?></a> 分类。<span class="by-author">作者是<span class="author vcard"><a class="url fn n" href="#" title="查看所有由 <?php $this->author(); ?> 发布的文章" rel="author"><?php $this->author(); ?></a></span>。</span>
</footer>
</article>
<?php endwhile; ?>
<nav id="nav-below" class="navigation" role="navigation">
<h3 class="assistive-text">文章导航</h3>
<?php $this->pageLink('<span class="meta-nav">←</span> 较新文章','prev'); ?>
<?php $this->pageLink('早期文章<span class="meta-nav">→</span>','next'); ?>
</nav>
</div><!-- #content -->
</div><!-- #primary -->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>