<?php
/* Smarty version 4.3.1, created on 2023-11-29 02:25:13
  from '/Users/nikolaimv/Sites/it-academy.loc/themes/template-ru/footer.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.1',
  'unifunc' => 'content_65665ab9e28d17_97108815',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '0ccb347df9e3e24ad8e6651f8ff78d0010b141de' => 
    array (
      0 => '/Users/nikolaimv/Sites/it-academy.loc/themes/template-ru/footer.tpl',
      1 => 1701206712,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:form/captcha.tpl' => 1,
    'file:modules/socials.tpl' => 1,
  ),
),false)) {
function content_65665ab9e28d17_97108815 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.fetch_section.php','function'=>'smarty_function_fetch_section',),1=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.fetch_articles.php','function'=>'smarty_function_fetch_articles',),2=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.logo.php','function'=>'smarty_function_logo',),3=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.fetch_sections.php','function'=>'smarty_function_fetch_sections',),4=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),5=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.yandex_metrika.php','function'=>'smarty_function_yandex_metrika',),6=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.google_analytics.php','function'=>'smarty_function_google_analytics',),));
?>
<div class="modal-container d-none">

	<div class="modal-courses" id="coursesModal">
		<div class="modal-courses__inner">

			<div class="modal-courses__info">

			</div>

			<div class="modal-courses__form-container">
				<form class="form validation_js" action="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/ajax-course" method="post" id="course">
                    <?php $_smarty_tpl->_subTemplateRender("file:form/captcha.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
					<div class="d-none">
						<input class="courses-job-field_js not-empty not-valid" type="text" name="feedback[course]">
					</div>

					<div class="input">
						<label class="input__label" for>Ф.И.О</label>
						<input type="text" name="feedback[fullName]" data-empty="Обязательно для заполнения">
					</div>

					<div class="input">
						<label class="input__label" for>Телефон</label>
						<input class="phone_js" type="tel" name="feedback[phone]" data-empty="Обязательно для заполнения">
					</div>

					<div class="input">
						<label class="input__label" for>E-mail</label>
						<input class="email_js" type="email" name="feedback[email]" data-empty="Обязательно для заполнения" data-empty-email="Введите E-mail корректно">
					</div>

                    <?php echo smarty_function_fetch_section(array('assign'=>'oznakomlenSection','section'=>7),$_smarty_tpl);
if ($_smarty_tpl->tpl_vars['oznakomlenSection']->value['status'] == 'V') {?>
					<div class="checkbox">
						<label class="checkbox__label">
							<input class="checkbox__input" type="checkbox">
							<span class="checkbox__content">
								<svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">
									<path d="M15.0806 0L5.75806 9.20833L1.91935 5.41667L0 7.3125L5.75806 13L17 1.89583L15.0806 0Z" fill="white" />
								</svg>
							</span>
							<p><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['oznakomlenSection']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
 <a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['oznakomlenSection']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['oznakomlenSection']->value['alias'], ENT_QUOTES, 'UTF-8', true);?>
</a></p>
						</label>
					</div>
                    <?php }?>
					<input type="hidden" name="feedback[subject]"  value="Заявка на курс">
					<button class="btn accent-2 full" type="submit">Подать заявку</button>
				</form>
			</div>

		</div>
	</div>

        <?php echo smarty_function_fetch_section(array('assign'=>'mentorsSection','section'=>4),$_smarty_tpl);
if ($_smarty_tpl->tpl_vars['mentorsSection']->value['status'] == 'V') {?>
        <?php echo smarty_function_fetch_articles(array('limit'=>40,'assign'=>'mentors','image'=>true,'section'=>$_smarty_tpl->tpl_vars['mentorsSection']->value['sectionId']),$_smarty_tpl);?>

        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['mentors']->value, 'mentor');
$_smarty_tpl->tpl_vars['mentor']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['mentor']->value) {
$_smarty_tpl->tpl_vars['mentor']->do_else = false;
?>
			<div class="modal-mentor" id="mentor_<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['mentor']->value['articleId'], ENT_QUOTES, 'UTF-8', true);?>
">
				<div class="modal-mentor__inner">
					<div class="modal-mentor__img"><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['mentor']->value['image']['original'], ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['mentor']->value['title'] ?: ''), ENT_QUOTES, 'UTF-8', true);?>
"></div>
					<div class="modal-mentor__info">
						<ul>
							<li><?php echo $_smarty_tpl->tpl_vars['mentor']->value['title'];?>
</li>
							<li><?php echo $_smarty_tpl->tpl_vars['mentor']->value['alias'];?>
</li>
						</ul>
						<div class="text-tmp"><?php echo $_smarty_tpl->tpl_vars['mentor']->value['summary'];?>
</div>
					</div>
				</div>
			</div>
		<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	<?php }?>
    
</div>

<footer class="footer">
	<div class="flex:col-max">
		<div class="footer__inner">
            <?php echo smarty_function_logo(array('link'=>true,'classLink'=>"footer__logo",'logoUrl'=>((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value)."/images/logo/logo.png"),$_smarty_tpl);?>

			<nav class="footer__nav">
				<ul>
                    <?php echo smarty_function_fetch_sections(array('assign'=>'footerMenus','status'=>"V",'footerMenu'=>1,'level'=>1),$_smarty_tpl);?>

                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['footerMenus']->value, 'footerMenu', false, NULL, 'footerMenus', array (
));
$_smarty_tpl->tpl_vars['footerMenu']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['footerMenu']->value) {
$_smarty_tpl->tpl_vars['footerMenu']->do_else = false;
?>
					<li><a href="<?php if (!empty($_smarty_tpl->tpl_vars['footerMenu']->value['externalLink'])) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['footerMenu']->value['externalLink'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
#<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['footerMenu']->value['fileName'], ENT_QUOTES, 'UTF-8', true);
}?>"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['footerMenu']->value['alias'], ENT_QUOTES, 'UTF-8', true);?>
</a></li>
					<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
				</ul>
			</nav>

			<div class="social white"><?php $_smarty_tpl->_subTemplateRender("file:modules/socials.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?></div>
		</div>

		<div class="footer__copy">
			<div class="footer__copy-item"><p>© <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['website_name'], ENT_QUOTES, 'UTF-8', true);?>
 <?php echo htmlspecialchars((string)smarty_modifier_date_format(time(),"%Y"), ENT_QUOTES, 'UTF-8', true);?>
</p></div>
			<div class="footer__copy-item"><a href="https://www.life-style.uz/" title="Создание и поддержка сайтов в Ташкенте" target="_blank">Создание сайтов - <i>Life Style</i></a></div>
		</div>

	</div>
</footer>
<?php echo '<script'; ?>
 src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/js/vendor/jquery.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/js/vendor/fancybox.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/js/vendor/swiper-bundle.min.js"><?php echo '</script'; ?>
>


<?php echo '<script'; ?>
 src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/js/main.js<?php if (!$_smarty_tpl->tpl_vars['config']->value['compress_js_css']) {?>?v<?php echo htmlspecialchars((string)smarty_modifier_date_format(time(),"%s"), ENT_QUOTES, 'UTF-8', true);
}?>"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="module" src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/js/moduls/moduls.js" async><?php echo '</script'; ?>
>

<?php if ((isset($_smarty_tpl->tpl_vars['section']->value)) && $_smarty_tpl->tpl_vars['section']->value['sectionId'] == 1) {
echo '<script'; ?>
 src="https://api-maps.yandex.ru/2.1/?apikey=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['maps']->value['api_key'], ENT_QUOTES, 'UTF-8', true);?>
&lang=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['website_language'], ENT_QUOTES, 'UTF-8', true);?>
" type="text/javascript"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript">
    ymaps.ready(init);

    function init() {
        const mapNode = document.querySelector('#map')

        if (window.innerWidth > 1366) {
            if (mapNode) {
                let createAtention = document.createElement('div')
                createAtention.classList.add('map-atention')
                createAtention.textContent = "Для масштабирования карты используйте Shift + Scroll"

                mapNode.insertAdjacentElement('beforeend', createAtention)
                mapNode.addEventListener('mouseover', (e) => createAtention.classList.add('hide'))

                mapNode.addEventListener('mouseleave', (e) => createAtention.classList.remove('hide'))
            }
        }

        let arrCords = [
            [<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['maps']->value['coordinates'], ENT_QUOTES, 'UTF-8', true);?>
],
        ]

        let arrText = [
            ["<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['address'], ENT_QUOTES, 'UTF-8', true);?>
"],
        ]

        var sizeZoom = <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['maps']->value['zoom'], ENT_QUOTES, 'UTF-8', true);?>


        if (window.innerWidth < 768) {
            sizeZoom = 12
        }

        var myMap = new ymaps.Map("map", { center: [<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['maps']->value['coordinates'], ENT_QUOTES, 'UTF-8', true);?>
], zoom: sizeZoom, controls: [] }, { suppressMapOpenBlock: true }),
	        myGeoObject = new ymaps.GeoObject();

        if (window.innerWidth > 1366) {
            myMap.behaviors.disable('scrollZoom');
            myMap.events.add('wheel', function (e) {

                if (e.get('shiftKey')) {
                    var delta = e.get('delta');
                    var newZoom = myMap.getZoom() + (delta > 0 ? 1 : -1);
                    myMap.setZoom(newZoom, {
                        checkZoomRange: true
                    });
                }
            });
        }

        for (let index = 0; index < arrCords.length; index++) {
            const element = arrCords[index];
            const text = arrText[index];

            myMap.geoObjects.add(myGeoObject).add(new ymaps.Placemark([element[0], element[1]],
	            { balloonContentHeader: text[0], balloonContentBody: text[1],},
	            { preset: 'islands#icon', iconCaptionMaxWidth: '30', iconColor: '#0e1f31',}
	            )
            ).events
                .add('balloonopen', function (e) {
                    e.get('target').options.set('iconImageHref', 'images/icon/baloon2.png');
                })
                .add('balloonclose', function (e) {
                    e.get('target').options.set('iconImageHref', 'images/icon/baloon.png');
                });
        }
    }
<?php echo '</script'; ?>
>
<?php }?>

<?php if ((isset($_smarty_tpl->tpl_vars['config']->value['yandex_metrika'])) && !empty($_smarty_tpl->tpl_vars['config']->value['yandex_metrika'])) {?>
    <?php echo smarty_function_yandex_metrika(array('code'=>$_smarty_tpl->tpl_vars['config']->value['yandex_metrika']),$_smarty_tpl);?>

<?php }
if ((isset($_smarty_tpl->tpl_vars['config']->value['google_analytics'])) && !empty($_smarty_tpl->tpl_vars['config']->value['google_analytics'])) {?>
    <?php echo smarty_function_google_analytics(array('code'=>$_smarty_tpl->tpl_vars['config']->value['google_analytics']),$_smarty_tpl);?>

<?php }?>

</body>

</html>


<?php }
}
