This commit is contained in:
浪子
2024-06-27 19:59:47 +08:00
parent 18421aab6f
commit 52e5a313c8
22 changed files with 2581 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('part/head.php');?>
<?php $this->need('part/header.php'); ?>
<div class="container">
<article class="post-wrap page">
<div class="post-wrap">
<h2 class="post-title">-&nbsp;&nbsp;<?php $this->title() ?>&nbsp;&nbsp;-</h2>
<section class="post-content">
<?php $this->content(); ?>
</section>
<!-- 判断如果允许评论则显示评论的div -->
<?php if ($this->allow('comment')): ?>
<!-- 如果启用了 twikoo 选项,显示 twikoo 评论系统 -->
<?php if ($this->options->twikoo): ?>
<?php $this->options->twikoo(); ?>
<?php else: ?>
<!-- 否则调用自带的评论模板 -->
<?php $this->need('comments.php'); ?>
<?php endif; ?>
<?php endif; ?>
</div>
</article>
</div>
<?php $this->need('part/footer.php'); ?>