<?php
/* Smarty version 4.5.2, created on 2024-05-15 07:11:18
  from '/home/life/public_html/yzb.lifestyle.uz/themes/template-ru/section-news.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_66446016b38da6_08675530',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e47b37982c4c9b857bbc7449f940bb69a882af9c' => 
    array (
      0 => '/home/life/public_html/yzb.lifestyle.uz/themes/template-ru/section-news.tpl',
      1 => 1715584884,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:header.tpl' => 1,
    'file:modules/banner.tpl' => 1,
    'file:items/news.tpl' => 4,
    'file:modules/pagination.tpl' => 1,
    'file:blocks/contacts.tpl' => 1,
    'file:footer.tpl' => 1,
  ),
),false)) {
function content_66446016b38da6_08675530 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>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['section']->value['name'],'keywords'=>$_smarty_tpl->tpl_vars['section']->value['keywords'],'description'=>$_smarty_tpl->tpl_vars['section']->value['description']), 0, false);
?>

<?php echo smarty_function_fetch_articles(array('perPage'=>10,'assign'=>'news','assignPagination'=>'pagination','page'=>$_smarty_tpl->tpl_vars['page']->value,'section'=>$_smarty_tpl->tpl_vars['section']->value['sectionId'],'path'=>$_smarty_tpl->tpl_vars['section']->value['path'],'seFriendly'=>true,'image'=>true,'articleId'=>null),$_smarty_tpl);?>


<main class="main">

		<?php $_smarty_tpl->_subTemplateRender("file:modules/banner.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
	
	<section class="flex:col pad-tb-50 over-hide">
		<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><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['section']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</h2></div>
				</div>

				<div class="grid:fr-1 g-gap-20">
					<?php if ((isset($_smarty_tpl->tpl_vars['page']->value)) && $_smarty_tpl->tpl_vars['page']->value == 1) {?>
						<div class="news">
							<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['news']->value, 'new', false, NULL, 'news', array (
  'first' => true,
  'iteration' => true,
  'index' => true,
));
$_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;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['index'];
if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['first']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['first'] : null)) {?>
																<?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 class="news__col">
								<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['news']->value, 'new', false, NULL, 'news', array (
  'first' => true,
  'iteration' => true,
  'index' => true,
));
$_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;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['index'];
if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration'] : null) > 1 && (isset($_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration'] : null) < 5) {?>
																		<?php $_smarty_tpl->_subTemplateRender("file:items/news.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"gorizontal",'position'=>"left",'truncateTitle'=>34,'truncateSummary'=>100), 0, true);
?>
																	<?php }
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
							</div>

						</div>

						<div class="news news-col">
							<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['news']->value, 'new', false, NULL, 'news', array (
  'first' => true,
  'iteration' => true,
  'index' => true,
));
$_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;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['index'];
if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration'] : null) > 4) {?>
																<?php ob_start();
if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration'] : null)%2 != 0) {
echo "right";
} else {
echo "left";
}
$_prefixVariable1=ob_get_clean();
$_smarty_tpl->_subTemplateRender("file:items/news.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"gorizontal",'position'=>$_prefixVariable1,'truncateTitle'=>44,'truncateSummary'=>100), 0, true);
?>
															<?php }
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
						</div>
					<?php } else { ?>
						<div class="news news-col">
							<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['news']->value, 'new', false, NULL, 'news', array (
  'first' => true,
  'iteration' => true,
  'index' => true,
));
$_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;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['index'];
?>
																<?php ob_start();
if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_news']->value['iteration'] : null)%2 != 0) {
echo "right";
} else {
echo "left";
}
$_prefixVariable2=ob_get_clean();
$_smarty_tpl->_subTemplateRender("file:items/news.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"gorizontal",'position'=>$_prefixVariable2,'truncateTitle'=>44,'truncateSummary'=>100), 0, true);
?>
															<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
						</div>
					<?php }?>

										<?php $_smarty_tpl->_subTemplateRender("file:modules/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('class'=>"pagination x-right"), 0, false);
?>
									</div>
			</div>
		</div>
	</section>

		<?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);
}
}
