<?php
/* Smarty version 4.3.1, created on 2023-11-29 01:35:48
  from '/Users/nikolaimv/Sites/it-academy.loc/themes/template-uz/article-news.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.1',
  'unifunc' => 'content_65664f24cd6e67_91187087',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '706380dbca3b3a3598dd9ac81951b2f585a80c69' => 
    array (
      0 => '/Users/nikolaimv/Sites/it-academy.loc/themes/template-uz/article-news.tpl',
      1 => 1701203278,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:header.tpl' => 1,
    'file:footer.tpl' => 1,
  ),
),false)) {
function content_65664f24cd6e67_91187087 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.fetch_articles.php','function'=>'smarty_function_fetch_articles',),1=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
$_smarty_tpl->_subTemplateRender("file:header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('title'=>$_smarty_tpl->tpl_vars['article']->value['title'],'keywords'=>$_smarty_tpl->tpl_vars['article']->value['keywords'],'description'=>$_smarty_tpl->tpl_vars['article']->value['description']), 0, false);
?>

<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><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</h1>
                    <?php echo $_smarty_tpl->tpl_vars['article']->value['content'];?>

				</div>
			</div>
		</div>
	</section>


	    <?php echo smarty_function_fetch_articles(array('limit'=>4,'assign'=>'news','image'=>true,'section'=>$_smarty_tpl->tpl_vars['article']->value['section']['sectionId'],'articleId'=>$_smarty_tpl->tpl_vars['article']->value['articleId']),$_smarty_tpl);?>

	<?php if (!empty($_smarty_tpl->tpl_vars['news']->value)) {?>
	<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">
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['news']->value, 'new');
$_smarty_tpl->tpl_vars['new']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['new']->value) {
$_smarty_tpl->tpl_vars['new']->do_else = false;
?>
					<a class="news-card" href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['new']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
">
						<div class="news-card__img"><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['new']->value['image']['original'], ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['new']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
"></div>
						<div class="news-card__info">
							<ul>
								<li><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['new']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</li>
								<li><?php echo htmlspecialchars((string)smarty_modifier_date_format($_smarty_tpl->tpl_vars['new']->value['publishedOn'],$_smarty_tpl->tpl_vars['config']->value['date_format_custom']), ENT_QUOTES, 'UTF-8', true);?>
</li>
							</ul>
						</div>
					</a>
					<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
				</div>
			</div>
		</div>
	</section>
	<?php }?>
    
</main>




<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
