{if $data.comments} {literal} {/literal}

{if $data.intime < ($smarty.const.NOW - 60*60*24*$smarty.const.COMMENT_DAYS)}Комментарии отключены ({$data.commentcount}){else}Комментарии ({$data.commentcount}){/if}

 

{foreach from=$comments item=comment name=myComments} {math equation="x * y" x=$comment.level y=30 assign="indent"} {if $indent > $smarty.const.COMMENT_TREE_DEPTH * 30} {assign var="indent" value="210"} {/if}
{if $comment.deleted} {#comDeleted#} {else}

{if $comment.admin}{#authorReply#}{else}{if $comment.senderURL}{$comment.senderName}{else}{$comment.senderName}{/if}{/if}

{$comment.content}
{$comment.intime|date_format:'%d.%m.%Y в %H:%M'} [ {#link#} {if (($data.intime > ($smarty.const.NOW - 60*60*24*$smarty.const.COMMENT_DAYS)) and ($comment.level < $smarty.const.COMMENT_TREE_DEPTH) and ($smarty.const.COMMENT_TREE)) or $smarty.session.admin} : {#reply#} {/if} {* this is weird, as I have to blend admin options our of sight *} {* this is the only feasible way to do so -- comment them out *} {* in case non-admin follows the link it yields a 404 *} {dynamic} {if !$smarty.session.admin} {/if} {/dynamic} ]
{/if}

{/foreach} {if $data.intime > ($smarty.const.NOW - 60*60*24*$smarty.const.COMMENT_DAYS)}

{#addComm#}


{#name#}:
{#mail#}*:
URL:
Комментарий:
{#tags#}
*{#note#}

{dynamic} {if $smarty.const.ANTISPAM and !$smarty.session.admin} Анти-спам
{get_spam_challenge}
{/if} {/dynamic}

{/if}
{/if}