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

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.1',
  'unifunc' => 'content_6566580cb08928_13067293',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '1221b67ba1c58b71d3da31532ddd87525699aff8' => 
    array (
      0 => '/Users/nikolaimv/Sites/it-academy.loc/themes/template-ru/header.tpl',
      1 => 1701202756,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:modules/meta.tpl' => 1,
    'file:modules/link.tpl' => 1,
    'file:modules/socials.tpl' => 1,
  ),
),false)) {
function content_6566580cb08928_13067293 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.fetch_sections.php','function'=>'smarty_function_fetch_sections',),1=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.logo.php','function'=>'smarty_function_logo',),2=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.explode.php','function'=>'smarty_modifier_explode',),));
?>
<!DOCTYPE html>
<html lang="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['website_language'], ENT_QUOTES, 'UTF-8', true);?>
">
<head>
	<?php $_smarty_tpl->_subTemplateRender("file:modules/meta.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
    <?php $_smarty_tpl->_subTemplateRender("file:modules/link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

</head>

<body>

<?php echo smarty_function_fetch_sections(array('assign'=>'headerMenus','status'=>"V",'topMenu'=>1,'level'=>1),$_smarty_tpl);?>

<header class="header header_js">
	<div class="flex:col-max">
		<div class="header__inner">
            <?php echo smarty_function_logo(array('link'=>true,'classLink'=>"header__logo"),$_smarty_tpl);?>

			<nav class="header__nav">
				<ul>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['headerMenus']->value, 'headerMenu', false, 'key', 'headerMenus', array (
));
$_smarty_tpl->tpl_vars['headerMenu']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['headerMenu']->value) {
$_smarty_tpl->tpl_vars['headerMenu']->do_else = false;
?>
						<li><a href="<?php if (!empty($_smarty_tpl->tpl_vars['headerMenu']->value['externalLink'])) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['headerMenu']->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['headerMenu']->value['fileName'], ENT_QUOTES, 'UTF-8', true);
}?>"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['headerMenu']->value['alias'], ENT_QUOTES, 'UTF-8', true);?>
</a></li>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
				</ul>
			</nav>

			<div class="header__lang">
				<ul>
					<li>
						<button><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/icons/lang/ru.svg" alt="Ру"> Ру</button>
						<ul>
							<li><a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uz/"><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/icons/lang/uz.svg" alt="Uz"> Uz</a></li>
							<li><a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/en/"><img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/icons/lang/en.svg" alt="En"> En</a></li>
						</ul>
					</li>
				</ul>
			</div>

			<button class="burger-btn burger-btn_short menu-call_js">
				<span class="burger-btn__item"></span>
			</button>
		</div>
	</div>

	<div class="header-mob header-mob_js">
		<div class="header-mob__inner">
			<div class="header-mob__head">
                <?php echo smarty_function_logo(array('link'=>true,'classLink'=>"header-mob__logo"),$_smarty_tpl);?>

				<div class="header-mob__lang">
					<ul>
						<li><span>Ру</span></li>
						<li><a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uz/">Uz</a></li>
						<li><a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/en/">En</a></li>
					</ul>
				</div>
			</div>

			<div class="header-mob__menu">
				<ul>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['headerMenus']->value, 'headerMenu', false, 'key', 'headerMenus', array (
));
$_smarty_tpl->tpl_vars['headerMenu']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['headerMenu']->value) {
$_smarty_tpl->tpl_vars['headerMenu']->do_else = false;
?>
					<li><a href="<?php if (!empty($_smarty_tpl->tpl_vars['headerMenu']->value['externalLink'])) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['headerMenu']->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['headerMenu']->value['fileName'], ENT_QUOTES, 'UTF-8', true);
}?>"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['headerMenu']->value['alias'], ENT_QUOTES, 'UTF-8', true);?>
</a></li>
					<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
				</ul>
			</div>

			<div class="header-mob__footer">
				<div class="header-mob__list">
					<ul>
						<li><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['address'], ENT_QUOTES, 'UTF-8', true);?>
</li>
						<li><a href="mailto:<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['email'], ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['email'], ENT_QUOTES, 'UTF-8', true);?>
</a></li>
                        <?php $_smarty_tpl->_assignInScope('phones', smarty_modifier_explode(", ",$_smarty_tpl->tpl_vars['config']->value['phone']));?>
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['phones']->value, 'phone', false, NULL, 'phones', array (
));
$_smarty_tpl->tpl_vars['phone']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['phone']->value) {
$_smarty_tpl->tpl_vars['phone']->do_else = false;
?>
							<li><a href="tel:<?php echo htmlspecialchars((string)call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'strip_phone' ][ 0 ], array( $_smarty_tpl->tpl_vars['phone']->value )), ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars((string)call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'format_phone' ][ 0 ], array( $_smarty_tpl->tpl_vars['phone']->value )), ENT_QUOTES, 'UTF-8', true);?>
</a></li>
                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
					</ul>
				</div>
				<div class="social"><?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>
	</div>

</header>

<?php }
}
