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

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

{if $bAllowSubscribe and $oUserCurrent} getStatus()}checked="checked"{/if} type="checkbox" id="comment_subscribe" class="input-checkbox" onchange="ls.subscribe.toggle('{$sTargetType}_new_comment','{$iTargetId}','',this.checked);"> {/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} {if $oConfig->GetValue('view.tinymce')} {else} {include file='window_load_img.tpl' sToLoad='form_comment_text'} {/if}

{$sNoticeCommentAdd}

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