<?php
/* Smarty version 4.5.2, created on 2024-05-11 11:40:52
  from '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/modules/menu.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_663f12f4397c00_91614279',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'fb98290bc7678fe8cffb1d8a2088104c1c881b40' => 
    array (
      0 => '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/modules/menu.tpl',
      1 => 1715409524,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_663f12f4397c00_91614279 (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',),));
?>
<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;
echo smarty_function_fetch_sections(array('assign'=>'subHeaderMenus','from'=>$_smarty_tpl->tpl_vars['headerMenu']->value['sectionId'],'status'=>"V",'topMenu'=>1,'level'=>2),$_smarty_tpl);
if (!empty($_smarty_tpl->tpl_vars['subHeaderMenus']->value)) {?><li><button><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['headerMenu']->value['alias'], ENT_QUOTES, 'UTF-8', true);?>
</button><ul><?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['subHeaderMenus']->value, 'subHeaderMenu', false, NULL, 'subHeaderMenus', array (
));
$_smarty_tpl->tpl_vars['subHeaderMenu']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['subHeaderMenu']->value) {
$_smarty_tpl->tpl_vars['subHeaderMenu']->do_else = false;
?><li><a href="<?php if (!empty($_smarty_tpl->tpl_vars['subHeaderMenu']->value['externalLink'])) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['subHeaderMenu']->value['externalLink'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['subHeaderMenu']->value['url'], ENT_QUOTES, 'UTF-8', true);
}?>"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['subHeaderMenu']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</a></li><?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?></ul></li><?php } else { ?><li><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['headerMenu']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
" <?php if ((isset($_smarty_tpl->tpl_vars['section']->value['sectionId'])) && $_smarty_tpl->tpl_vars['headerMenu']->value['sectionId'] == $_smarty_tpl->tpl_vars['section']->value['sectionId']) {?>class="active"<?php }?>><?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><?php }
}
