From e6f3df7eaf6881a303358289dadb904824872d45 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Wed, 7 Oct 2020 20:40:09 +0800 Subject: bring back the 1.x files to master --- saying.php | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 saying.php (limited to 'saying.php') diff --git a/saying.php b/saying.php new file mode 100644 index 0000000..3fcf651 --- /dev/null +++ b/saying.php @@ -0,0 +1,69 @@ +need('includes/head.php'); +$this->need('includes/header.php'); +function threadedComments($comments, $options) { + $commentClass = ''; + if ($comments->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', ''); ?>author(); ?>
+ date('Y-m-d H:i'); ?> +

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

+ +

+

+ +

+
+
+ + comments()->to($comments); ?> + listComments(array( + 'before' => '
', + 'after' => '
', + 'avatarSize' => 200, + 'dateFormat' => 'Y-m-d H:i' + )); ?> +
+ pageNav('', ''); ?> +
+
+
+need('includes/footer.php'); ?> \ No newline at end of file -- cgit v1.2.3