{foreach from=$subcomments item=c}
{if isset($smarty.request.subaction) && $smarty.request.subaction=='showonly' && isset($smarty.request.comment_id) && $smarty.request.comment_id==$c.Id}
{/if}
{* ----- БЛОК АВАТАРА ----- *} {$avatar_url = "{$ABS_PATH}modules/comment/img/no_avatar.webp"} {if isset($c.avatar) && $c.avatar != ''} {$avatar_url = $c.avatar} {/if}
Аватар пользователя {$c.comment_author_name|stripslashes|escape}
{* Информация об авторе и дате *}
{#COMMENT_USER_ADD#} {$c.comment_author_name|stripslashes|escape} {$c.comment_published} {* НОВОЕ: Динамические поля в мета-данных комментария *} {if $comment_show_f1 == 1 && $c.comment_author_website} {$comment_name_f1|default:#COMMENT_YOUR_SITE#}: {$c.comment_author_website|stripslashes|escape} {/if} {if $comment_show_f2 == 1 && $c.comment_author_city} {$comment_name_f2|default:#COMMENT_YOUR_FROM#}: {$c.comment_author_city|stripslashes|escape} {/if} {if $smarty.const.UGROUP==1} • IP:{$c.comment_author_ip} {/if} {if isset($c.comment_changed) && $c.comment_changed > 1} ({#COMMENT_TEXT_CHANGED#} {$c.comment_changed}){/if}
{* Текст комментария *}
{$c.comment_text|escape}
{if isset($smarty.request.subaction) && $smarty.request.subaction=='showonly' && isset($smarty.request.comment_id) && $smarty.request.comment_id==$c.Id}
{/if} {if isset($comments) && isset($comments[$c.Id])}
{include file="$subtpl" subcomments=$comments[$c.Id] sub=1}
{/if}
{/foreach}