-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost.php
63 lines (55 loc) · 2.34 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
<?php $this->need('header.php'); ?>
<div class="container ofh">
<div class="content">
<div class="post" id="post">
<div class="hd">
<h2><a href="<?php $this->options->siteUrl(); ?>"><?php $this->title() ?></a></h2>
<div class="meta"><?php _e('编 辑:'); ?><?php $this->author(); ?><em>·</em><?php _e('时 间:'); ?><?php $this->date('Y.m.d'); ?><em>·</em><?php _e('浏 览:'); ?><?php $this->viewsNum(); ?>次<em>·</em><?php _e('公众号:罗格格'); ?></div>
<?php if (isset($this->fields->desc)): ?>
<div class="post-desc">
<span><b>核心内容:</b><?php $this->fields->desc(); ?></span>
</div><?php endif; ?>
</div>
<div class="bd"><?php $this->content(); ?>
<?php if(isset($this->fields->tips)){ ?>
<div class="tips"><?php $this->fields->tips(); ?></div>
<?php }else{ ?>
<?php } ?>
<br>
</div>
<div class="element">
<?php if(isset($this->fields->copyright)){ ?>
<div class="copyright">
<a href="<?php $this->fields->copyright(); ?>" target="_blank">阅读原文</a>
</div>
<?php }else{ ?>
<!-- START donate by moidea.info -->
<div style="text-align: center;"><b>赞 助 支 持</b></div>
<div align="center"><img class="wp-image-558 size-thumbnail" src="<?php $this->options->weixin() ?>" alt="pay_weixin" width="150" height="150"/><img class="wp-image-558 size-thumbnail" src="<?php $this->options->alipay() ?>" alt="pay_weixin" width="150" height="150" /></div>
<!-- END donate by moidea.info -->
<?php } ?>
<div class="tags fl">标签:<?php $this->tags(' ', true, 'none'); ?></div>
<br>
</div>
</div>
</div>
<ul class="post-near">
<li class="fl">上一篇: <?php $this->thePrev('%s','没有了'); ?></li>
<li class="fr">下一篇: <?php $this->theNext('%s','没有了'); ?></li>
</ul>
<div class="post-relate" style="display:none;">
<h3>相关文章</h3>
<ul>
<?php $this->related(8)->to($relatedPosts); ?>
<?php if ($relatedPosts->have()): ?>
<?php while ($relatedPosts->next()): ?>
<li><a href="<?php $relatedPosts->permalink(); ?>" target="_blank" class="hot"><?php $relatedPosts->title(); ?></a></li>
<?php endwhile; ?>
<?php else : ?>
<li>无相关文章</li>
<?php endif; ?>
</ul>
</div>
<?php $this->need('comments.php'); ?>
</div>
<?php $this->need('footer.php'); ?>