protected function renderList($parent_id = 0, $depth = 0)
{
$out = $parent_id ? '' : $this->renderCheckActions();
$comments = $this->options['depth'] > 0 ? $this->getReplies($parent_id) : $this->comments;
if (!count($comments)) {
return $out;
}
foreach ($comments as $comment) {
$out .= $this->renderItem($comment, $depth);
}
if (!$out) {
return '';
}
$class = "CommentList";
if ($this->options['depth'] > 0) {
$class .= " CommentListThread";
} else {
$class .= " CommentListNormal";
}
if ($this->options['useGravatar']) {
$class .= " CommentListHasGravatar";
}
if ($parent_id) {
$class .= " CommentListReplies";
}
$out = "<ul class='{$class}'>{$out}\n</ul><!--/CommentList-->";
return $out;
}