关于评论的判断

This commit is contained in:
浪子
2024-05-17 18:23:58 +08:00
parent 46f50de81b
commit 965dd0fc7f
8 changed files with 22 additions and 16 deletions
+6 -3
View File
@@ -78,8 +78,11 @@
</nav>
</ul>
</article>
<?php $this->need('comments.php'); ?>
<!-- 判断如果禁止评论则不显示评论的div -->
<?php if ($this->allow('comment')): ?>
<?php $this->need('comments.php'); ?>
<?php endif; ?>
<!-- 可以使用第三方评论-->
<?php $this->options->twikoo(); ?>
</main>
<?php $this->need('footer.php'); ?>