{set $calendar = $_modx->runSnippet('!eventsCalendar2',['parents' => '8267,8423,153,137,165,209,149,61'])} {include 'HEAD_N'} {include 'HEADER_N'}
{set $publishedon = $_modx->resource.publishedon} {set $period_akcii = $_modx->resource.period_akcii} {set $tags = $_modx->resource.tags|split}
{set $img['url'] = $_modx->resource.img} {set $imgclass = $_modx->resource.imgclass} {set $img_akcii = $_modx->resource.img_akcii} {if $img['url']==''} {set $img = $_modx->runSnippet('getImages') ?: ['src' => '/assets/images/заглушка.png', 'desc' => '']} {set $imgclass =''} {/if}
{$img['description']}
resource.publishedon | date_format:"%b"} {$_modx->resource.publishedon | date_format:"%Y"}">
{$_modx->resource.content}
{if $tags} Теги: {foreach $tags as $tag} {set $name = $_modx->runSnippet('tagName',['tag'=>$tag])} {if $tag@last} {set $delim = ''} {else} {set $delim = ', '} {/if} {$name}{$delim} {/foreach} {/if}
{include 'block_news'}
{set $comments=$_modx->runSnippet('TicketComments',[ 'allowGuest' =>1, 'autoPublishGuest' => 0, 'fastMode' => 1, 'limit' => 10, 'enableCaptcha' => 0, 'tplCommentForm' => 'newsCommentForm', 'tplCommentFormGuest' => 'newsCommentForm', 'tplCommentGuest' => 'newsCommentItem', 'tplCommentAuth' => 'newsCommentItem', 'tplComments' => 'newsCommentWrapper' ])} {$comments}
{include 'newsSidebar'}
{include 'FOOTER_N'}