关于评论的判断
This commit is contained in:
@@ -9,7 +9,12 @@
|
||||
<?php $this->content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php $this->need('comments.php'); ?>
|
||||
<!-- 判断如果禁止评论则不显示评论的div -->
|
||||
<?php if ($this->allow('comment')): ?>
|
||||
<?php $this->need('comments.php'); ?>
|
||||
<?php endif; ?>
|
||||
<!-- 可以使用第三方评论-->
|
||||
<?php $this->options->twikoo(); ?>
|
||||
</section>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
|
||||
Reference in New Issue
Block a user