{* *}{strip} {* *} {inputValue from=post_parent_id assign=parentId} {* *}

{**} Отзывы

{if !empty($items)} {* *} {function localListComments level=1} {foreach $items as $item} {inputValue from='item->comment_id' assign=id}
{* *} {inputValue from='item->name'} | {echoVar from='item->date'} {* *}
{$item->comment|default:''|escape|nl2br}
Ответить
{* *} {if !empty($item->discussion)} {localListComments items = $item->discussion level = $level + 1} {/if}
{/foreach} {/function} {* *} {localListComments level=1} {else}
Нет отзывов!
{/if} {* *} {if !empty($message)}
{$message}
{else} {* *} {if !empty($error)}
{$error}
{/if} {/if} {* *}
Ответить на выделенный комментарий" : ">Написать комментарий"}
{* *} {* *} {* *} {* *} {* *} {* *}
{* *} {if !empty($message) || !empty($error)} {capture assign=otherJS} {echoVar from=otherJS} {/capture} {$otherJS = $otherJS scope=global} {/if} {/strip}