From 028abdbc4238d55835fff67ad653477dd9db6836 Mon Sep 17 00:00:00 2001 From: Eltrac <45323514+BigCoke233@users.noreply.github.com> Date: Sat, 24 Aug 2019 17:21:01 +0800 Subject: =?UTF-8?q?Perf:=20=E5=AD=90=E8=AF=84=E8=AE=BA=E5=B7=A6=E4=BE=A7?= =?UTF-8?q?=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comments.php | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 comments.php diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..3458ac9 --- /dev/null +++ b/comments.php @@ -0,0 +1,124 @@ +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(''); ?> + + content(); ?> +
+

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

+ children) { ?> +
+ threadedComments($options); ?> +
+ +
+
+
+
+ +
+ comments()->to($comments); ?> +

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

+ have()): ?> +
+ listComments(array( + 'before' => '
', + 'after' => '
', + 'avatarSize' => 200, + 'dateFormat' => 'Y-m-d H:i' + )); ?> +
+
+ pageNav('', ''); ?> +
+ + +
+ +allow('comment')): ?> +
+
+ cancelReply(); ?> +
+ +

+ +
+ +
+

+ +

+
+ + user->hasLogin()): ?> + +

user->screenName(); ?>. »

+ + + +
+

+ + +

+

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

+

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

+
+ +
+

+

+

+

+ +

+
+
+
+ + +

评论已关闭'); ?>

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