From 9003731927ce69e9cd264e73720d8508033f4794 Mon Sep 17 00:00:00 2001 From: Eltrac <45323514+BigCoke233@users.noreply.github.com> Date: Wed, 22 Jan 2020 18:26:38 +0800 Subject: =?UTF-8?q?=F0=9F=91=8D=20Perf:=20=E4=BC=98=E5=8C=96=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E7=99=BB=E5=BD=95=E6=A0=B7=E5=BC=8F=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comments.php | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 comments.php (limited to 'comments.php') diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..61021ef --- /dev/null +++ b/comments.php @@ -0,0 +1,110 @@ +authorId) { + if ($comments->authorId == $comments->ownerId) { + $commentClass .= ' comment-by-author'; //如果是文章作者的评论添加 .comment-by-author 样式 + } else { + $commentClass .= ' comment-by-user'; //如果是评论作者的添加 .comment-by-user 样式 + } + } + $commentLevelClass = $comments->_levels > 0 ? ' comment-child' : ' comment-parent'; //评论层数大于0为子级,否则是父级 +?> +
+
+
+ gravatar('100', ''); ?> +
+
+
+ + reply(''); ?> + + coid); $comments->content(); ?> +
+

+ author(); ?> + date('Y-m-d H:i'); ?> +

+
+
+ children) { ?> +
+ threadedComments($options); ?> +
+ +
+ + +
+ comments()->to($comments); ?> + fields->commentShow == 0)://如果显示评论列表 ?> + have())://如果有评论 则显示 ?> +
+

commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?>

+ listComments(array( + 'before' => '
', + 'after' => '
', + 'avatarSize' => 200, + 'dateFormat' => 'Y-m-d H:i' + )); ?> +
+ pageNav('', ''); ?> +
+
+ + + + allow('comment')): ?>
博主已关闭本页面的评论显示allow('comment')): ?>,您评论后将不会看到您的评论内容
+ + +
+ + allow('comment')): ?> +
+
+ cancelReply(); ?> +
+ + +
+ + user->hasLogin()): ?> + +

user->screenName(); ?>. »

+ + + +
+ + options->commentsRequireMail): ?> required /> + options->commentsRequireURL): ?> required /> +
+ + +

+ +

+

+

+ +

+
+
+ + +
+ + + +
+
+ \ No newline at end of file -- cgit v1.2.3