<?php
/* Smarty version 4.5.2, created on 2024-05-13 10:35:20
  from '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/modules/slider.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_6641a69895b3f8_93428779',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '501aad089612c4e52a2d27a1e32f97d8638c9348' => 
    array (
      0 => '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/modules/slider.tpl',
      1 => 1715578144,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6641a69895b3f8_93428779 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/yzb.loc/includes/smarty_plugins/function.fetch_banners.php','function'=>'smarty_function_fetch_banners',),));
echo smarty_function_fetch_banners(array('assign'=>'banners','limit'=>10,'section'=>$_smarty_tpl->tpl_vars['section']->value['sectionId']),$_smarty_tpl);
if (!empty($_smarty_tpl->tpl_vars['banners']->value)) {?><section class="flex:col"><div class="intro"><div class="swiper intro-slider_js"><div class="swiper-wrapper"><?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['banners']->value, 'banner', false, NULL, 'banners', array (
  'first' => true,
  'index' => true,
));
$_smarty_tpl->tpl_vars['banner']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['banner']->value) {
$_smarty_tpl->tpl_vars['banner']->do_else = false;
$_smarty_tpl->tpl_vars['__smarty_foreach_banners']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_banners']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_banners']->value['index'];
?><div class="swiper-slide"><div class="intro__item"><div class="intro__item-info" data-swiper-parallax="60%"><div class="text-tmp color-white title-48 all-center"><?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_banners']->value['first']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_banners']->value['first'] : null)) {?><h1><?php echo $_smarty_tpl->tpl_vars['banner']->value['title'];?>
</h1><?php } else { ?><h2><?php echo $_smarty_tpl->tpl_vars['banner']->value['title'];?>
</h2><?php }
echo $_smarty_tpl->tpl_vars['banner']->value['summary'];?>
</div><?php if (!empty($_smarty_tpl->tpl_vars['banner']->value['url'])) {?><a class="btn accent-2 large" href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['banner']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
">Подробнее</a><?php }?></div><div class="intro__item-bg" data-swiper-parallax="90%"><picture><source srcset="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['banner']->value['images']['medium'], ENT_QUOTES, 'UTF-8', true);?>
" media="(max-width: 550px)" /><source srcset="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['banner']->value['images']['medium'], ENT_QUOTES, 'UTF-8', true);?>
" media="(max-width: 768px)" /><source srcset="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['banner']->value['images']['large'], ENT_QUOTES, 'UTF-8', true);?>
" media="(max-width: 1024px)" /><source srcset="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['banner']->value['images']['original'], ENT_QUOTES, 'UTF-8', true);?>
" media="(max-width: 1440px)" /><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['banner']->value['images']['original'], ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo $_smarty_tpl->tpl_vars['banner']->value['title'];?>
" /></picture></div></div></div><?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?></div></div><div class="intro__pagination"></div><div class="intro__decor"><svg width="1920" height="235" viewBox="0 0 1920 235" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 0C640 156.667 1280 156.667 1920 0C1920 156.667 1920 235 1920 235C640 235 0 235 0 235C0 78.3333 0 0 0 0Z" fill="white" /></svg></div></div></section><?php }
}
}
