{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}
{$period_akcii ? $period_akcii : $publishedon | date_format:"%d %B %Y"}
![{$img['description']}]({$img['url']})
resource.publishedon | date_format:"%b"} {$_modx->resource.publishedon | date_format:"%Y"}">
{set $id = $_modx->resource.autor}
{$docs = $_modx->runSnippet('pdoResources',[
'parents' => 30055,
'resources'=> $id,
'tpl'=>'@FILE web/chunks/autor_article.tpl',
'elementsPath'=>'/core/components/',
'includeContent' => 1,
'includeTVs' => 'job,sertifikat,sertifikat2,sertifikat3,education,img,email'
])}
{$_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}