First
This commit is contained in:
@@ -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">- <?php $this->title() ?> -</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'); ?>
|
||||
|
||||
Reference in New Issue
Block a user