\templates\default\controllers\comments\comment.tpl.php
$level = /* (($limit_nesting && $entry['level'] > $limit_nesting) ? $limit_nesting : ($entry['level']-1))*30 */ 1;
\system\controllers\comments\model.php
public function getComments($callback = null){ $user = cmsUser::getInstance(); $this->select('r.score', 'is_rated'); $this->joinUserLeft(); $this->joinLeft('comments_rating', 'r', "r.comment_id = i.id AND r.user_id='{$user->id}'"); if (!$this->order_by){ $this->orderBy('ordering', 'DESC'); } if (!$this->approved_filter_disabled) { $this->filterApprovedOnly(); } $this->useCache('comments.list'); return $this->get('comments', function($item, $model) use ($callback){ 'id' => $item['user_id'], 'nickname' => $item['user_nickname'], 'is_online' => cmsUser::userIsOnline($item['user_id']), 'avatar' => $item['user_avatar'] ); $item = $callback($item, $model); } return $item; }); }