-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathpost.php
68 lines (64 loc) · 3.79 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
60
61
62
63
64
65
66
67
68
<?php $this->need('header.php'); ?>
<?php
$hidden_sidebar = !empty($this->options->ShowBlock) && in_array('SidebarHiddenInDetail', $this->options->ShowBlock, true);
?>
<div id="m-container" class="container">
<div class="row ml-0 mr-0">
<div class="pl-0 pr-0 col-md-<?php echo $hidden_sidebar? '12' : '8' ?>">
<div id="article-list">
<article class="post-article clearfix">
<div>
<h2 class="title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
<p class="post-big-info">
<span class="badge badge-skin"><i class="fa fa-fw fa-user"></i> <a href="<?php $this->author->permalink(); ?>" rel="author"><?php $this->author(); ?></a></span>
<span class="badge badge-skin"><i class="fa fa-fw fa-tags"></i> <?php $this->category(','); ?></span>
<span class="badge badge-skin"><i class="fa fa-fw fa-calendar"></i> <?php $this->date('Y-m-d'); ?></span>
<?php if (class_exists('TeStat_Plugin') && isset($this->options->plugins['activated']['TeStat'])): ?>
<span class="badge badge-skin"><i class="fa fa-fw fa-eye"></i> <?php $this->viewsNum(); ?> 次浏览</span>
<span class="badge badge-skin"><i class="fa fa-fw fa-thumbs-o-up"></i> <span class="like-num-show"><?php $this->likesNum(); ?></span> 次点赞</span>
<?php endif; ?>
</p>
</div>
<div class="article-content clearfix">
<?php $this->content(); ?>
</div>
<?php if($this->allow('ping')): ?>
<div class="article-copyright">
<div class="article-license">
<img height="24" src="<?php $this->options->themeUrl('img/creativecommons-cc.png'); ?>" class="mb5"><br>
<div class="license-item text-muted">
本文由 <a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a> 创作,采用 <a class="alert-link" target="_blank" href="http://creativecommons.org/licenses/by/3.0/cn">知识共享署名 3.0</a>,可自由转载、引用,但需署名作者且注明文章出处。
</div>
</div>
</div>
<?php endif; ?>
<?php if(class_exists('Reward_Plugin') && isset($this->options->plugins['activated']['Reward'])): ?>
<?php
$extra_str = '';
if (class_exists('TeStat_Plugin') && isset($this->options->plugins['activated']['TeStat'])) {
$extra_str = '<button class="btn btn-info btn-like" type="button" data-cid="' . $this->cid . '"><i class="fa fa-fw fa-thumbs-o-up"></i> 仅点赞 <span class="like-num-show">' . $this->likesNum . '</span></button>';
}
?>
<?php Reward_Plugin::show_reward($extra_str); ?>
<?php Reward_Plugin::show_modal(); ?>
<?php endif; ?>
</article>
</div>
<?php if (!empty($this->options->ShowBlock) && in_array('ShowPostBottomBar', $this->options->ShowBlock, true)): ?>
<div class="block">
<ul class="post-near">
<li>上一篇: <?php $this->thePrev('%s','没有了'); ?></li>
<li>下一篇: <?php $this->theNext('%s','没有了'); ?></li>
</ul>
</div>
<?php endif; ?>
<?php $this->need('comments.php'); ?>
</div>
<?php if (!$hidden_sidebar): ?>
<div class="col-md-4">
<?php $this->need('sidebar.php'); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php $this->need('footer.php');