<article class="single-post panel">
<!--文章页面的头图-->
<?php if (!Content::isImageCategory($this->categories)) echo Content::exportHeaderImg($this); ?>
<!--文章内容-->
<div id="post-content" class="wrapper-lg">
<!-- 文章顶部ggad -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-8073927669897848"
data-ad-slot="4884971263"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<!-- end文章顶部ggad -->
<div class="entry-content l-h-2x">
<?php echo Content::postContent($this,$this->user->hasLogin());
?>
</div>
<?php if ($this->options->adContentPost != ""): ?>
<!--文章页脚的广告位-->
<?php $this->options->adContentPost(); ?>
<?php endif; ?>
<!-- 相关文章 -->
<div id="relatedPosts" style="box-shadow: 4px 6px 16px 0px #ddd; padding-left: 2rem; padding-top: 0.8rem; padding-bottom: 1.25rem;">
<h2>相关文章</h2>
<ul class="tocify-header nav nav-list">
<?php $this->related(10)->to($relatedPosts); ?>
<?php if ($relatedPosts->have()): ?>
<?php while ($relatedPosts->next()): ?>
<li class="tocify-item">
<a href="<?php $relatedPosts->permalink(); ?>" title="<?php $relatedPosts->title(); ?>"><?php $relatedPosts->title(); ?></a>
</li>
<?php endwhile; ?>
<?php else : ?>
<li>无相关文章</li>
<?php endif; ?>
</ul>
</div>
<!-- end 相关文章 -->
<!--文章的页脚部件:打赏和其他信息的输出-->
<?php echo Content::exportPostFooter($this->modified,$this->options->timezone - idate("Z"),$this); ?>
<?php if (!empty($this->options->featuresetup) && in_array('payforauthorinpost', $this->options->featuresetup)): ?>
<!--打赏模块-->
<?php echo Content::exportPayForAuthors(); ?>
<?php endif; ?>
<!--/文章的页脚部件:打赏和其他信息的输出-->
</div>
</article>
最后修改:2020 年 08 月 05 日
© 允许规范转载
相关文章