{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}
{* БЛОК АВАТАРА *}
{if isset($c.avatar) && $c.avatar != ''} {$c.comment_author_name|escape} {else}
{$c.first_letter|default:'?'|upper}
{/if}
{* Информация об авторе и дате *}
{$c.comment_author_name|stripslashes|escape} {$c.comment_published} {if $smarty.const.UGROUP==1} • IP:{$c.comment_author_ip} {/if} {if isset($c.comment_changed) && $c.comment_changed > 1} ред. {$c.comment_changed} {/if}
{* Текст комментария *}
{$c.comment_text|stripslashes|nl2br}
{* Доп. поля (Сайт, Город) *} {if $c.comment_author_website || $c.comment_author_city}
{if $c.comment_author_website}
{$c.comment_author_website}
{/if} {if $c.comment_author_city}
{$c.comment_author_city}
{/if}
{/if} {* Вывод изображения (ИСПРАВЛЕНО ДЛЯ MULTIPLE) *} {if !empty($c.comment_file)}
{assign var="photos" value=","|explode:$c.comment_file} {foreach from=$photos item=photo} {if $photo|trim} {/if} {/foreach}
{/if}
{* ФУТЕР *}
{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}