<?php
/* Smarty version 4.5.2, created on 2024-05-13 14:10:49
  from '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/section-projects.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_6641d919d933a8_28163555',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '692b7615fa4ee71a84513857cd9347055f9d6c8d' => 
    array (
      0 => '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/section-projects.tpl',
      1 => 1715591444,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:header.tpl' => 1,
    'file:modules/banner.tpl' => 1,
    'file:modules/pagination.tpl' => 1,
    'file:blocks/contacts.tpl' => 1,
    'file:footer.tpl' => 1,
  ),
),false)) {
function content_6641d919d933a8_28163555 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/yzb.loc/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'=>5,'assign'=>'projects','section'=>$_smarty_tpl->tpl_vars['section']->value['sectionId'],'assignPagination'=>'pagination','page'=>$_smarty_tpl->tpl_vars['page']->value,'path'=>$_smarty_tpl->tpl_vars['section']->value['path'],'seFriendly'=>true,'typeContent'=>"projects",'image'=>true),$_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">
		<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-1 g-gap-40">
					<div class="grid:fr-1 g-gap-20">
						<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['projects']->value, 'project');
$_smarty_tpl->tpl_vars['project']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['project']->value) {
$_smarty_tpl->tpl_vars['project']->do_else = false;
?>
							<div class="project-card" data-aos="fade-up" data-aos-duration="500">
								<div class="project-card__img">
									<div class="text-tmp"><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['project']->value['image']['original'], ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['project']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
"></div>
								</div>

								<div class="project-card__info">
									<div class="text-tmp title-40 title-accent">
										<h3><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['project']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</h3>
										<p><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'page_break' ][ 0 ], array( $_smarty_tpl->tpl_vars['project']->value['summary'],0 ));?>
</p>
									</div>

									<div class="project-card__info-lists">
										<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'page_break' ][ 0 ], array( $_smarty_tpl->tpl_vars['project']->value['summary'],1 ));?>

									</div>

									<a class="btn accent transparent" href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['project']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
">Подробнее</a>
								</div>
							</div>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
					</div>

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