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 />

    评论已关闭'); ?>