diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-02-29 00:42:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-29 00:42:19 +0800 |
| commit | bab8270a251bf1fd937223878e653594c6b93308 (patch) | |
| tree | a427b4fe62526aa8806bef03a503a809fbf28b73 /includes/comments.php | |
| parent | b2d49ce08ea3874210dfa4e00f0b708baef09ca2 (diff) | |
🔖 Add: 显示审核提示
Diffstat (limited to 'includes/comments.php')
| -rw-r--r-- | includes/comments.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/includes/comments.php b/includes/comments.php index 5bed2d5..7f1da91 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -32,7 +32,13 @@ echo $commentClass; </div>
<p class="comment-meta">
<span class="comment-author"><?php $comments->author(); ?></span>
- <span class="comment-date"><?php $comments->date('Y-m-d H:i'); ?></span>
+ <span class="comment-date">
+ <?php if ('waiting' == $comments->status) { ?>
+ <em class="comment-waiting">您的评论正在等待审核!</em>
+ <?php } else { ?>
+ <?php $comments->date('Y-m-d H:i'); ?>
+ <?php } ?>
+ </span>
</p>
</div>
</div>
@@ -70,10 +76,6 @@ echo $commentClass; <!-- 判断设置是否允许对当前文章进行评论 -->
<?php if($this->allow('comment')): ?>
<div id="<?php $this->respondId(); ?>" class="respond comment-box-id" data-commentUrl="<?php $this->commentUrl() ?>">
- <div class="cancel-comment-reply">
- <?php $comments->cancelReply(); ?>
- </div>
-
<!-- 输入表单开始 -->
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form">
<!-- 如果当前用户已经登录 -->
@@ -95,6 +97,7 @@ echo $commentClass; </p>
<p class="comment-submit-box">
<div title="OwO" class="OwO"></div>
+ <div class="cancel-comment-reply"><?php $comments->cancelReply(); ?></div>
<button type="submit" onclick="return MiraclesComment.submitComment();" class="comment-submit submit"><?php _e('评论'); ?></button>
</p>
</form>
|
