-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.php
47 lines (36 loc) · 1.52 KB
/
post.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 if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<?php $this->need('sidebar.php'); ?>
<article class="content">
<div class="crumbs_patch">
<a href="<?php $this->options->siteUrl(); ?>">Home</a> »</li>
<?php if ($this->is('index')): ?><!-- 页面为首页时 -->
Latest Post
<?php elseif ($this->is('post')): ?><!-- 页面为文章单页时 -->
<?php $this->category(); ?> » <?php $this->title() ?>
<?php else: ?><!-- 页面为其他页时 -->
<?php $this->archiveTitle(' » ','',''); ?>
<?php endif; ?>
</div>
<div class="post_read">
<h2 ><?php $this->title() ?></h2>
<div class="post_info">
<span>
<?php _e('作者: '); $this->author(); ?>
<?php _e('时间: '); $this->date('F j, Y'); ?>
<?php _e('分类: '); ?><?php $this->category(','); ?>
</span>
</div>
<div class="post_content">
<?php $this->content(); ?>
</div>
<ul class="post-near">
<li>上一篇: <?php $this->thePrev('%s','没有了'); ?></li>
<li>下一篇: <?php $this->theNext('%s','没有了'); ?></li>
</ul>
<div class="hh"></div>
<?php $this->need('comments.php'); ?>
</div>
</article>
</div><!-- end #main-->
<?php $this->need('footer.php'); ?>