{include file="header.tpl" title=$article.title keywords=$article.keywords description=$article.description}

<main class="main">

	<section class="flex:col pad-t-static pad-b-50">
		<div class="flex:col-max">
			<div class="grid:fr-1 g-gap-40 max-width-1024">
				<div class="text-tmp title-46 title-dec-32">
					<h1>{$article.title}</h1>
                    {$article.content nofilter}
				</div>
			</div>
		</div>
	</section>


	{* Другие новости *}
    {fetch_articles limit=4 assign=news image=true section=$article.section.sectionId articleId=$article.articleId}
	{if !empty($news)}
	<section class="flex:col pad-t-50 pad-b-100 bg-white">
		<div class="flex:col-max">
			<div class="grid:fr-1 g-gap-40">
				<div class="text-tmp title-46 title-dec-32 all-center"><h2>Другие новости</h2></div>
				<div class="grid:fr-4 g-gap-20 max">
                    {foreach from=$news item=new}
					<a class="news-card" href="{$SITE_URL}{$new.url}">
						<div class="news-card__img"><img src="{$new.image.original}" alt="{$new.title}"></div>
						<div class="news-card__info">
							<ul>
								<li>{$new.title}</li>
								<li>{$new.publishedOn|date_format:$config.date_format_custom}</li>
							</ul>
						</div>
					</a>
					{/foreach}
				</div>
			</div>
		</div>
	</section>
	{/if}
    {* /Другие новости *}

</main>




{include file="footer.tpl"}