-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.php
59 lines (58 loc) · 2.39 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
48
49
50
51
52
53
54
55
56
57
58
59
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="container">
<div class="row">
<?php if ($this->options->sidebarlr == 'left_side'): ?>
<aside id="kratos-widget-area" class="col-md-4 hidden-xs hidden-sm scrollspy">
<div id="sidebar">
<?php $this->need('sidebar.php'); ?>
</div>
</aside>
<?php endif; ?>
<section id="main" class='<?php echo ($this->options->sidebarlr == 'single') ? 'col-md-12' : 'col-md-8'; ?>'>
<article>
<div class="kratos-hentry kratos-post-inner clearfix">
<header class="kratos-entry-header">
<h1 class="kratos-entry-title text-center"><?php $this->title(); ?></h1>
<div class="kratos-post-meta text-center">
<span>
<i class="fa fa-calendar"></i> <?php $this->date('Y-m-d'); ?>
<i class="fa fa-commenting-o"></i> <?php $this->commentsNum('0', '1', '%d'); ?> 条评论
<i class="fa fa-eye"></i> <?php get_post_view($this); ?> 次阅读
</span>
</div>
</header>
<div class="kratos-post-content">
<?php parseContent($this); ?>
</div>
<footer class="kratos-entry-footer clearfix">
<div class="footer-tag clearfix">
<div class="pull-left"style="text-align:center">
<?php $this->tags(' ', true, '<a>本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可</a>'); ?>
</div>
</div>
</footer>
</div>
<nav class="navigation post-navigation clearfix" role="navigation">
<div class="nav-previous clearfix">
<?php $this->theNext(' %s ','无上一篇文章',array('title' => '上一篇')); ?>
</div>
<div class="nav-next">
<?php $this->thePrev(' %s ','已经是最后了',array('title' => '下一篇')); ?>
</div>
</nav>
<?php $this->need('comments.php'); ?>
</article>
</section>
<?php if ($this->options->sidebarlr == 'right_side'): ?>
<aside id="kratos-widget-area" class="col-md-4 hidden-xs hidden-sm scrollspy">
<div id="sidebar">
<?php $this->need('sidebar.php'); ?>
</div>
</aside>
<?php endif; ?>
</div>
</div>
</div>
<?php $this->need('footer.php'); ?>