{** * Комментарии * * @param string $sTargetType * @param integer $iTargetId * @param array $aComments * @param boolean $bForbidAdd * @param string $sHeading * @param integer $iCountComment * @param boolean $bAllowSubscribe * * @styles css/comments.css *} {$sComponent = 'comments'} {block 'comment-list-options'} {$iTargetId = $smarty.local.iTargetId} {$sTargetType = $smarty.local.sTargetType} {$iCountComment = $smarty.local.iCountComment} {$bForbidAdd = $smarty.local.bForbidAdd} {if $bForbidAdd} {$mods = "$mods forbid"} {/if} {/block} {add_block group='toolbar' name='components/comment/toolbar.comment.tpl' target='.js-comment'}
{lang name='comments.comments_declension' count=$iCountComment plural=true}
{$sNoticeCommentAdd|default:$aLang.comments.form.title}
{else} {include 'components/alert/alert.tpl' mods='info' text=$aLang.comments.alerts.unregistered} {/if} {/if} {* Форма добавления комментария *} {if $oUserCurrent && ( ! $bForbidAdd || ( $bForbidAdd && $iCountComment ) )} {include './comment-form.tpl' sTargetType=$sTargetType iTargetId=$iTargetId} {/if}