{add_block group='toolbar' name='toolbar_comment.tpl' aPagingCmt=$aPagingCmt iTargetId=$iTargetId sTargetType=$sTargetType iMaxIdComment=$iMaxIdComment } {* {if $oUserCurrent} {/if} *}

{$iCountComment} {$iCountComment|declension:$aLang.comment_declension:'russian'}

{if $bAllowSubscribe and $oUserCurrent} {/if}
{* {if $oUserCurrent}
{/if} *} {assign var="nesting" value="-1"} {foreach from=$aComments item=oComment name=rublist} {assign var="cmtlevel" value=$oComment->getLevel()} {if $cmtlevel>$oConfig->GetValue('module.comment.max_tree')} {assign var="cmtlevel" value=$oConfig->GetValue('module.comment.max_tree')} {/if} {if $nesting < $cmtlevel} {elseif $nesting > $cmtlevel} {section name=closelist1 loop=$nesting-$cmtlevel+1}
{/section} {elseif not $smarty.foreach.rublist.first} {/if}
{include file='comment.tpl'} {assign var="nesting" value=$cmtlevel} {if $smarty.foreach.rublist.last} {section name=closelist2 loop=$nesting+1}
{/section} {/if} {/foreach} {include file='comment_paging.tpl' aPagingCmt=$aPagingCmt} {if $bAllowNewComment} {$sNoticeNotAllow} {else} {if $oUserCurrent} {include file='editor.tpl' sImgToLoad='form_comment_text' sSettingsTinymce='ls.settings.getTinymceComment()' sSettingsMarkitup='ls.settings.getMarkitupComment()'}

{$sNoticeCommentAdd}

{hook run='form_add_comment_begin'} {hook run='form_add_comment_end'}
{else} {$aLang.comment_unregistered} {/if} {/if}