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 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 includes/comments.php (limited to 'includes/comments.php') 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为子级,否则是父级 +?> +
  • +
    +
    +
    + gravatar('100', ''); ?> +
    +
    +

    author(); ?>

    +

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

    +
    + content(); ?> +

    + reply(); ?> +

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

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

    + have()): ?> +
    + listComments(); ?> + pageNav('', ''); ?> +
    + + +
    + +allow('comment')): ?> +
    +
    + cancelReply(); ?> +
    + +

    + +
    + +
    +

    + +

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

    user->screenName(); ?>. »

    + + + +
    +

    + + +

    +

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

    +

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

    +
    + +
    +

    +

    +

    +

    + +

    +
    +
    +
    + + +

    评论已关闭'); ?>

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