-
Notifications
You must be signed in to change notification settings - Fork 90
/
post.php
34 lines (32 loc) · 1.65 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div id="main" class="col-mb-12 col-8 col-offset-2">
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="post-header">
<h3 class="post-title"><a href="<?php $this->permalink() ?>" class="post-link"><?php $this->title() ?></a></h3>
<div class="post-meta">
<span class="post-meta-label post-meta-views"><?php Contents::getPostView($this); ?>次阅读</span>
<span class="post-meta-label post-meta-cate"><?php $this->category(' • '); ?></span>
<span class="post-meta-label post-meta-date"><?php $this->date(); ?></span>
</div>
</div>
<div class="post-body">
<div class="post-content">
<?php $this->content(); ?>
</div>
<?php Contents::getPostOther($this); ?>
<div class="post-update"><i class="iconfont icon-aria-date"></i> 最后一次更新于<?php echo date($this->options->postDateFormat,$this->modified) ?></div>
</div>
<div class="post-tags">
<?php $this->tags(' ', true, '<a>None</a>'); ?>
<a class="post-zan"><i class="iconfont icon-aria-like"></i></a>
<?php //Typecho_Widget::widget('Zan_Action')->showZan($this->cid); ?>
</div>
<div class="post-footer nextprev">
<?php Contents::theNextPrev($this); ?>
</div>
</article>
<?php $this->need('comments.php'); ?>
</div><!-- end #main-->
<?php if($this->fields->showTOC) $this->need('TOC.php'); ?>
<?php $this->need('footer.php'); ?>