diff --git a/comments.php b/comments.php index 47bd1ac..e6f7c00 100644 --- a/comments.php +++ b/comments.php @@ -1,51 +1,120 @@ -
user->screenName(); ?>. »
- - remember('text'); ?> -
- -
+ + remember('text'); ?> +
+ +
commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?>
- - listComments(); ?> - pageNav('« 前一页', '后一页 »'); ?> - - +authorId) { + if ($comments->authorId == $comments->ownerId) { + $commentClass .= ' comment-by-author'; + } else { + $commentClass .= ' comment-by-user'; + } + } + $commentLevelClass = $comments->levels > 0 ? ' comment-child' : ' comment-parent'; + $depth = $comments->levels +1; + if ($comments->url) { + $author = '' . $comments->author . ''; + } else { + $author = $comments->author; + } +?> - allow('comment')): ?> -