<?php
/* Smarty version 4.5.2, created on 2024-05-13 10:35:20
  from '/Users/nikolaimv/Sites/yzb.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_6641a69880ca81_54480462',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'eaecd811c2bf906cd5c40d70a3bd40f7db79f513' => 
    array (
      0 => '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/header.tpl',
      1 => 1715577358,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:modules/meta.tpl' => 1,
    'file:modules/link.tpl' => 1,
    'file:modules/recaptcha.tpl' => 1,
    'file:modules/menu.tpl' => 2,
    'file:modules/lang.tpl' => 1,
    'file:modules/socials.tpl' => 1,
  ),
),false)) {
function content_6641a69880ca81_54480462 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/yzb.loc/includes/smarty_plugins/function.fetch_sections.php','function'=>'smarty_function_fetch_sections',),1=>array('file'=>'/Users/nikolaimv/Sites/yzb.loc/includes/smarty_plugins/function.logo.php','function'=>'smarty_function_logo',),2=>array('file'=>'/Users/nikolaimv/Sites/yzb.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);
?>
	<?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 <?php if (((isset($_smarty_tpl->tpl_vars['section']->value)) && $_smarty_tpl->tpl_vars['section']->value['parentId'] == 3) || (isset($_smarty_tpl->tpl_vars['article']->value))) {?>sticky<?php }?>">
	<div class="flex:col-max">
		<div class="header__inner">
						<?php echo smarty_function_logo(array('link'=>true,'classLink'=>"header__logo logo"),$_smarty_tpl);?>

			
			<div class="header__item-first">
				<nav class="header__nav">
										<?php $_smarty_tpl->_subTemplateRender("file:modules/menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
									</nav>

				<div class="header__item">
					<div class="header__contacts">
						<button class="header__contacts-btn">
							<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
								<path d="M757.231-160q-101.154 0-207.385-50.654-106.231-50.653-197.385-142.192-91.154-91.539-141.807-197.385Q160-656.077 160-757.231q0-18.33 12-30.549Q184-800 202-800h98.923q16.308 0 28.462 10.269t16.461 26.346L365.692-668q2.77 16.769-1 29.308-3.769 12.538-13.307 20.538l-87.77 81.846q24.616 44.693 54.424 83.039 29.807 38.346 63.576 72.654 34.847 34.846 75 64.807 40.154 29.962 88.154 56.577l85.539-87.077q9.769-10.538 21.961-13.884 12.192-3.347 26.962-1.347l84.154 17.231q16.308 4 26.461 16.423Q800-315.462 800-299.385V-202q0 18-12.22 30-12.219 12-30.549 12ZM244.846-573.846l76.769-70.616q3.846-3.077 5-8.461 1.154-5.385-.384-10l-17.77-84.769q-1.538-6.154-5.384-9.231t-10-3.077H211q-4.615 0-7.692 3.077t-3.077 7.692q1.154 41 12.846 85.616 11.692 44.615 31.769 89.769Zm338 333.384q40.539 20.077 86.423 29.693 45.885 9.615 79.962 10.307 4.615 0 7.692-3.076 3.077-3.077 3.077-7.693v-80.307q0-6.154-3.077-10-3.077-3.847-9.231-5.385l-74-15.154q-4.615-1.538-8.077-.384-3.461 1.153-7.307 5l-75.462 76.999Zm-338-333.384Zm338 333.384Z" />
							</svg>
						</button>

						<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)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><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['operating_mode'], ENT_QUOTES, 'UTF-8', true);?>
</li>
						</ul>
					</div>

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

					<button class="burger-btn burger-btn_short header-btn_js">
						<span class="burger-btn__item"></span>
					</button>
				</div>
			</div>
		</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'=>"logo"),$_smarty_tpl);?>

				
				<div class="footer__list-phone">
					<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)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>Консультации и расчёт</li>
					</ul>
				</div>
			</div>

			<div class="header-mob__common">
				<div class="header-mob__nav tab_js accard_js">
										<?php $_smarty_tpl->_subTemplateRender("file:modules/menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
									</div>
			</div>

			<div class="header-mob__footer">

				<div class="footer__list-mail">
					<ul>
						<li>Электронная почта:</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>
					</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('path'=>"/images/icons/social/"), 0, false);
?>
									</div>
			</div>
		</div>
	</div>
	</header>
<?php }
}
