forked from axhello/Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.php
42 lines (40 loc) · 2 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="wrapper"><!-- #wrapper start -->
<div class="container">
<div class="row"><!-- #row start -->
<div class="col-md-8"><!-- #md-8 start -->
<div class="main"><!-- #main start -->
<div class="bread">
<div class="crumbs_patch">
<a href="<?php $this->options->siteUrl(); ?>">Home</a> »
<?php if ($this->is('index')): ?><!-- 页面为首页时 -->
Index
<?php elseif ($this->is('post')): ?><!-- 页面为文章单页时 -->
<?php $this->category(); ?> » <?php $this->title() ?>
<?php else: ?><!-- 页面为其他页时 -->
<?php $this->archiveTitle(' » ','',''); ?>
<?php endif; ?>
</div>
</div>
<div class="boxcont"> <!-- article start -->
<article class="post">
<header class="post-head">
<h3 class="post-title"><?php $this->title() ?></h3>
<span style="color: #aaa">发布于</span> <time datetime="<?php $this->date('c') ?>" class="post-time"><?php $this->date('Y年m月d日'); ?></time>
</header>
<section class="post-content">
<?php $this->content(); ?>
</section>
<footer class="post-foot-warp">
<ul class="post-tag fl">
<li><span class="glyphicon glyphicon-tags" aria-hidden="true"></span><?php $this->tags('</li><li>', true, '<a>None</a>') ?></li>
</ul>
</footer>
</article>
</div><!-- article end -->
<?php $this->need('comments.php'); ?>
</div><!-- #main end -->
</div><!-- #md-8 end -->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>