<?php
/* Smarty version 4.5.2, created on 2024-04-15 10:02:55
  from '/Users/nikolaimv/Sites/admin.panel.11.loc/themes/template-ru/header.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_661cb4ff7e4ab3_84469037',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '638b0a464d96a65b1437843eeba8f57e31bd410d' => 
    array (
      0 => '/Users/nikolaimv/Sites/admin.panel.11.loc/themes/template-ru/header.tpl',
      1 => 1710947417,
      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_661cb4ff7e4ab3_84469037 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/admin.panel.11.loc/includes/smarty_plugins/function.fetch_sections.php','function'=>'smarty_function_fetch_sections',),1=>array('file'=>'/Users/nikolaimv/Sites/admin.panel.11.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.explode.php','function'=>'smarty_modifier_explode',),2=>array('file'=>'/Users/nikolaimv/Sites/admin.panel.11.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),));
?>
<!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 echo smarty_function_fetch_sections(array('assign'=>'headerMenus','status'=>"V",'topMenu'=>1,'level'=>1),$_smarty_tpl);?>

<header class="header header_js <?php if ((isset($_smarty_tpl->tpl_vars['section']->value['sectionId'])) && $_smarty_tpl->tpl_vars['section']->value['sectionId'] != 1) {?>static<?php }?>">
	<div class="flex:col-max">

		<div class="header__inner">

			<div class="header__item">
				<div class="header__logos">
					<a class="header__logo" href="https://marketing.uz/">
						<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/logo/7b2b8a278daf.webp" alt="Marketing">
					</a>
					<a class="header__logo" href="https://raqobat.gov.uz/ru/">
						<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/logo/4118b574764d.webp" alt="Комитет по развитию конкуренции и защите прав потребителей">
					</a>
									</div>

				<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['alias'], ENT_QUOTES, 'UTF-8', true);?>
</a></li>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
					</ul>
				</nav>
			</div>

			<div class="header__item">
				<div class="header__lang">
					<ul>
						<li>
							<button>Ру</button>

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

				<div class="header__social">
					<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>

				<div class="header__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 (
  'first' => true,
  'index' => true,
));
$_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;
$_smarty_tpl->tpl_vars['__smarty_foreach_phones']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_phones']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_phones']->value['index'];
if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_phones']->value['first']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_phones']->value['first'] : null)) {?>
							<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>
					</ul>
				</div>
			</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>

	<div class="header-mob header-mob_js">
		<div class="header-mob__inner">

			<div class="header-mob__head">

				<div class="header__logos">
					<a class="header__logo" href="https://marketing.uz/">
						<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/logo/7b2b8a278daf.webp" alt="Marketing">
					</a>
					<a class="header__logo" href="https://raqobat.gov.uz/ru/">
						<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/logo/4118b574764d.webp" alt="Комитет по развитию конкуренции и защите прав потребителей">
					</a>
					<a class="header__logo" href="https://www.sqb.uz/individuals/">
						<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/logo/SQB.svg" alt="SQB">
					</a>
				</div>

				<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>
					</ul>
				</div>

			</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['alias'], 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__social">
					<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, true);
?></div>
				</div>

				<div class="header__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 (
  'first' => true,
  'index' => true,
));
$_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;
$_smarty_tpl->tpl_vars['__smarty_foreach_phones']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_phones']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_phones']->value['index'];
?>
							<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);?>
						<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>
					</ul>
				</div>
			</div>

		</div>
	</div>
</header><?php }
}
