{foreach from=$thread->getCommentsSortedByDate() item=oComment} {$commentrenderer->render($context, $oComment, $thread)} {/foreach} {if ($thread->getState()!=DISCUSSION_CLOSED)}