From 27efb0e429817141e6009f0aefc79bdea17890fa Mon Sep 17 00:00:00 2001 From: Eltrac <45323514+BigCoke233@users.noreply.github.com> Date: Thu, 11 Jul 2019 18:55:48 +0800 Subject: =?UTF-8?q?=F0=9F=99=89=20The=20first=20release=20of=20Miracles=20?= =?UTF-8?q?=F0=9F=99=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/comments.php | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++ includes/footer.php | 88 ++++++++++++++++++++++++++++++++++++++ includes/head.php | 66 +++++++++++++++++++++++++++++ includes/header.php | 67 +++++++++++++++++++++++++++++ 4 files changed, 335 insertions(+) create mode 100644 includes/comments.php create mode 100644 includes/footer.php create mode 100644 includes/head.php create mode 100644 includes/header.php (limited to 'includes') diff --git a/includes/comments.php b/includes/comments.php new file mode 100644 index 0000000..303349c --- /dev/null +++ b/includes/comments.php @@ -0,0 +1,114 @@ +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为子级,否则是父级 +?> +