diff options
| author | 阔落 <45323514+BigCoke233@users.noreply.github.com> | 2019-04-06 15:00:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-06 15:00:31 +0800 |
| commit | 890b239d7eb2a1aca2b3ce81d8efdd0665d30310 (patch) | |
| tree | fd72b0ca3ca07fde6d44f3fcb76e5555aa3a8b64 /includes/comments.php | |
| parent | e01e9619adee76fa254a8c23201142ae10b6221a (diff) | |
优化
Diffstat (limited to 'includes/comments.php')
| -rw-r--r-- | includes/comments.php | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/includes/comments.php b/includes/comments.php index ee6e771..39d1a3f 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -64,7 +64,15 @@ <!-- 评论开始 -->
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div id="comments" class="responsesWrapper">
-
+ <?php
+ $parameter = array(
+ 'parentId' => $this->hidden ? 0 : $this->cid,
+ 'parentContent' => $this->row,
+ 'respondId' => $this->respondId,
+ 'commentPage' => $this->request->filter('int')->commentPage,
+ 'allowComment' => $this->allow('comment')
+ );
+ ?>
<?php if($this->allow('comment')): ?>
<div id="<?php $this->respondId(); ?>" class="respond item">
<br />
@@ -93,15 +101,26 @@ </form>
</div>
<?php else: ?>
- <h3><?php _e('评论已关闭'); ?></h3>
+ <div class="item"><h3><?php _e('评论已关闭'); ?></h3></div>
<?php endif; ?>
<?php $this->comments()->to($comments); ?>
<?php if ($comments->have()): ?>
- <div class="comment-list-wrap">
- <?php $comments->listComments(); ?>
+ <!-- 解析评论内容 -->
+ <?php
+
+ ?>
+
+ <br />
+ <div class="item">
+ <h3 style="margin-top:-4px;text-align:center;">- <?php $this->commentsNum('评论列表', '已有 1 条评论', '已有 <span class="num">%d</span> 条评论'); ?> -</h3>
+ <hr style="margin:-10px;margin-top:0;" />
+ <div class="comment-list-wrap">
+ <?php $comments->listComments(); ?>
+ </div>
</div>
- <?php $comments->pageNav('« 前一页', '后一页 »'); ?>
+ <br />
+ <?php $comments->pageNav('«', '»'); ?>
<?php endif; ?>
</div>
\ No newline at end of file |
