<?php
/* Smarty version 4.5.2, created on 2024-05-17 05:51:38
  from '/home/life/public_html/yzb.lifestyle.uz/themes/template-ru/article-news.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_6646f06a6631c3_60125063',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e3b1969b60a52372047d8f1d8ba685d624662bae' => 
    array (
      0 => '/home/life/public_html/yzb.lifestyle.uz/themes/template-ru/article-news.tpl',
      1 => 1715925095,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:header.tpl' => 1,
    'file:items/news.tpl' => 1,
    'file:blocks/contacts.tpl' => 1,
    'file:footer.tpl' => 1,
  ),
),false)) {
function content_6646f06a6631c3_60125063 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/life/public_html/yzb.lifestyle.uz/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),1=>array('file'=>'/home/life/public_html/yzb.lifestyle.uz/includes/smarty_plugins/function.fetch_articles.php','function'=>'smarty_function_fetch_articles',),));
$_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-tb-50 pos-rel">
		<div class="flex:col-max">
			<div class="grid:fr-1 g-gap-40">
				<a class="btn-back" href="#" onclick="window.history.back();return false;">Назад</a>

				<div class="text-tmp title-48 title-tt-up">
					<h1><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</h1>
					<p><time><?php echo htmlspecialchars((string)smarty_modifier_date_format($_smarty_tpl->tpl_vars['article']->value['publishedOn'],$_smarty_tpl->tpl_vars['config']->value['date_format_custom']), ENT_QUOTES, 'UTF-8', true);?>
</time></p>
					<?php if ((isset($_smarty_tpl->tpl_vars['article']->value['image']['original']))) {?>
						<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['image']['original'], ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
">
					<?php }?>
				</div>

				<div class="flex:row max-w-1000 x-center">
					<div class="news-social">
						<div class="social accent-theme">
							<ul>
								<li><a href="https://t.me/share/url?url=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
&text=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['summary'], ENT_QUOTES, 'UTF-8', true);?>
" target="_blank"><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/icons/social/telegram.svg" alt=""></a></li>
								<li><a href="https://www.facebook.com/sharer.php?u=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
" target="_blank"><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/icons/social/facebook.svg" alt=""></a></li>
								<li><a href="https://www.instapaper.com/edit?url=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
&title=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
" target="_blank"><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/icons/social/instagram.svg" alt=""></a></li>
							</ul>
						</div>
					</div>

					<div class="text-tmp title-28 title-tt-up">
						<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'page_break' ][ 0 ], array( $_smarty_tpl->tpl_vars['article']->value['content'],null ));?>

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


	<?php echo smarty_function_fetch_articles(array('limit'=>4,'assign'=>'news','assignPagination'=>'pagination','section'=>5,'image'=>true,'articleId'=>$_smarty_tpl->tpl_vars['article']->value['articleId']),$_smarty_tpl);
if (!empty($_smarty_tpl->tpl_vars['news']->value)) {?>
	<section class="flex:col pad-tb-50 block-shadow">
		<div class="flex:col-max">
			<div class="grid:fr-1 g-gap-40">
				<div class="block-head">
					<div class="text-tmp title-40 title-tt-up title-accent-2"><h2>Рекомендуемы статьи</h2></div>
				</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;
?>
												<?php $_smarty_tpl->_subTemplateRender("file:items/news.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>'','position'=>"right",'truncateTitle'=>64,'truncateSummary'=>200), 0, true);
?>
											<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
				</div>
			</div>
		</div>
	</section>
	<?php }?>

		<?php $_smarty_tpl->_subTemplateRender("file:blocks/contacts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
	
</main>


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