<?php
/* Smarty version 4.5.2, created on 2024-08-15 13:16:34
  from '/home/life/public_html/teg.lifestyle.uz/themes/template-ru/header.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_66bdffb2c40835_27119728',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '539e42753702ccc9d42c9214bfb848e44ee91dc3' => 
    array (
      0 => '/home/life/public_html/teg.lifestyle.uz/themes/template-ru/header.tpl',
      1 => 1723727792,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:modules/meta.tpl' => 1,
    'file:modules/link.tpl' => 1,
    'file:modules/recaptcha.tpl' => 1,
    'file:modules/socials.tpl' => 2,
  ),
),false)) {
function content_66bdffb2c40835_27119728 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/life/public_html/teg.lifestyle.uz/includes/smarty_plugins/function.fetch_sections.php','function'=>'smarty_function_fetch_sections',),1=>array('file'=>'/home/life/public_html/teg.lifestyle.uz/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.explode.php','function'=>'smarty_modifier_explode',),2=>array('file'=>'/home/life/public_html/teg.lifestyle.uz/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),3=>array('file'=>'/home/life/public_html/teg.lifestyle.uz/includes/smarty_plugins/function.logo.php','function'=>'smarty_function_logo',),));
?>
<!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);
?>
		<?php $_smarty_tpl->_subTemplateRender("file:modules/recaptcha.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
	</head>

<body>
	
<?php if ((isset($_smarty_tpl->tpl_vars['section']->value)) && $_smarty_tpl->tpl_vars['section']->value['sectionId'] == 1) {?>
<header class="header @seletor">
<?php } else { ?>
<header class="header sticky">
<?php }?>
	
	<?php echo smarty_function_fetch_sections(array('assign'=>'headerMenus','status'=>"V",'topMenu'=>1,'level'=>1),$_smarty_tpl);?>


	<div class="header__item">

		<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('path'=>"/images/icons/social/"), 0, false);
?>
		</div>

		<div class="header__phones">
			<?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;
?>
				<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)smarty_modifier_replace(call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'format_phone' ][ 0 ], array( $_smarty_tpl->tpl_vars['phone']->value )),"+998 ",''), ENT_QUOTES, 'UTF-8', true);?>
</a>
			<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
		</div>

	</div>

	<div class="header__item">

		        <?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 <?php if ((isset($_smarty_tpl->tpl_vars['section']->value['sectionId'])) && $_smarty_tpl->tpl_vars['section']->value['sectionId'] == $_smarty_tpl->tpl_vars['headerMenu']->value['sectionId']) {?>class="active"<?php }?> 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['name'], 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>
					<span>
						Ру
					</span>

				
				</li>
			</ul>

		</div>

		<button class="header__btn header-btn_js">
			<span class="burger-btn burger-btn_short">
				<span class="burger-btn__item"></span>
			</span>
		</button>

	</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__logo"),$_smarty_tpl);?>


			</div>

			<div class="header-mob__content">

				<div class="header-mob__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 <?php if ((isset($_smarty_tpl->tpl_vars['section']->value['sectionId'])) && $_smarty_tpl->tpl_vars['section']->value['sectionId'] == $_smarty_tpl->tpl_vars['headerMenu']->value['sectionId']) {?>class="active"<?php }?> 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['name'], ENT_QUOTES, 'UTF-8', true);?>
</a></li>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
					</ul>
				</div>

			</div>

			<div class="header-mob__footer">

				<div class="header-mob__contacts">

					<ul>
						<?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)smarty_modifier_replace(call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'format_phone' ][ 0 ], array( $_smarty_tpl->tpl_vars['phone']->value )),"+998 ",''), ENT_QUOTES, 'UTF-8', true);?>
</a></li>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
						<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>
						<li><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['address'], ENT_QUOTES, 'UTF-8', true);?>
</li>
					</ul>

				</div>

				<div class="social accent-3">
					<?php $_smarty_tpl->_subTemplateRender("file:modules/socials.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('path'=>"/images/icons/social/"), 0, true);
?>
				</div>

			</div>

		</div>
	</div>

</header><?php }
}
