{name from=news_item assign=name} {include file='breadcrumbs.htm' last=$name}

{$name}

{$date = $news_item->date|default:$news_item->created|default:''} {$y = substr($date, 0, 4)} {$d = substr($date, 8, 2)} {$date = min(max(1, intval(substr($date, 5, 2))), 12) - 1} {$m = [ 'янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек' ]} {$m = $m[$date]}
{if !empty($news_item->images)} {/if} {body from=news_item}

Комментарии

{function ideaShowComments} {foreach $items as $comment}

{$comment->name}

{$comment->number} | {$comment->date}

{$comment->comment}

{if !empty($comment->discussion)} {ideaShowComments items=$comment->discussion} {/if}
{/foreach} {/function} {ideaShowComments items=$news_item->comments}
{if !empty($error)} {include 'common/message.htm' msgTitle='Ошибка!' msgText=$error msgClass=danger} {/if} {if !empty($message)} {include 'common/message.htm' msgTitle='Сообщение' msgText=$message msgClass=info} {/if}

Оставьте свой отзыв