<?php
/* Smarty version 3.1.40, created on 2022-07-08 15:40:23
  from '/home/mzpg3195/site.essentielweb/wp-content/plugins/paygreen-woocommerce/templates/block-menu.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.40',
  'unifunc' => 'content_62c84fe71e5910_68020858',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c80fbe1a0e79a463e2519a361a815e4bf631b2d9' => 
    array (
      0 => '/home/mzpg3195/site.essentielweb/wp-content/plugins/paygreen-woocommerce/templates/block-menu.tpl',
      1 => 1657293553,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_62c84fe71e5910_68020858 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="pgnavbar">

    <?php $_smarty_tpl->_subTemplateRender($_smarty_tpl->tpl_vars['template']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('entries'=>$_smarty_tpl->tpl_vars['logo']->value), 0, true);
?>

    <ul class="pgnavbar__menu">
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['entries']->value, 'entry');
$_smarty_tpl->tpl_vars['entry']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['entry']->value) {
$_smarty_tpl->tpl_vars['entry']->do_else = false;
?>
            <?php if ((isset($_smarty_tpl->tpl_vars['entry']->value['children']))) {?>
                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['entry']->value['children'], 'child');
$_smarty_tpl->tpl_vars['child']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['child']->value) {
$_smarty_tpl->tpl_vars['child']->do_else = false;
?>
                    <?php if ($_smarty_tpl->tpl_vars['child']->value['code'] === $_smarty_tpl->tpl_vars['selected']->value) {?>
                        <?php $_smarty_tpl->_assignInScope('selectedChild', true);?>
                        <?php break 1;?>
                    <?php } else { ?>
                        <?php $_smarty_tpl->_assignInScope('selectedChild', false);?>
                    <?php }?>
                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
            <?php } else { ?>
                <?php $_smarty_tpl->_assignInScope('selectedChild', false);?>
            <?php }?>

            <?php if ((isset($_smarty_tpl->tpl_vars['selectedChild']->value)) && $_smarty_tpl->tpl_vars['selectedChild']->value || $_smarty_tpl->tpl_vars['entry']->value['code'] === $_smarty_tpl->tpl_vars['selected']->value) {?>
                <?php $_smarty_tpl->_assignInScope('selectedCss', " pgnavbar__menu__element--selected");?>
            <?php } else { ?>
                <?php $_smarty_tpl->_assignInScope('selectedCss', '');?>
            <?php }?>

            <li class="pgnavbar__menu__element<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selectedCss']->value, ENT_QUOTES, 'UTF-8', true);
if ((isset($_smarty_tpl->tpl_vars['entry']->value['children']))) {?> pgnavbar__menu__element--submenu<?php }?>">
                <?php if ((isset($_smarty_tpl->tpl_vars['entry']->value['href']))) {?>
                    <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['entry']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'pgtrans' ][ 0 ], array( $_smarty_tpl->tpl_vars['entry']->value['title'] ));?>
">
                        <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'pgtrans' ][ 0 ], array( $_smarty_tpl->tpl_vars['entry']->value['name'] ));?>

                    </a>
                <?php } else { ?>
                    <span title="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'pgtrans' ][ 0 ], array( $_smarty_tpl->tpl_vars['entry']->value['title'] ));?>
">
                        <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'pgtrans' ][ 0 ], array( $_smarty_tpl->tpl_vars['entry']->value['name'] ));?>

                    </span>
                <?php }?>

                <?php if ((isset($_smarty_tpl->tpl_vars['entry']->value['children']))) {?>
                    <ul>
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['entry']->value['children'], 'child');
$_smarty_tpl->tpl_vars['child']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['child']->value) {
$_smarty_tpl->tpl_vars['child']->do_else = false;
?>
                            <li class="<?php if ($_smarty_tpl->tpl_vars['child']->value['code'] === $_smarty_tpl->tpl_vars['selected']->value) {?>pg-selected<?php }?>">
                                <a
                                    href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['child']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
"
                                    title="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'pgtrans' ][ 0 ], array( $_smarty_tpl->tpl_vars['child']->value['title'] ));?>
"
                                >
                                    <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'pgtrans' ][ 0 ], array( $_smarty_tpl->tpl_vars['child']->value['name'] ));?>

                                </a>
                            </li>
                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    </ul>
                <?php }?>
            </li>
        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    </ul>

    <?php if (!empty($_smarty_tpl->tpl_vars['shops']->value) && count($_smarty_tpl->tpl_vars['shops']->value) > 1) {?>
        <div class="pgtooltip pgnavbar__shop-select">
            <button
                type="button"
                class="pgbtnIcon pgbtnIcon--secondary"
                data-js="tooltip"
                data-target="#shopSelectTooltip"
            >
                <i class="rgni-shop"></i>
            </button>

            <div
                id="shopSelectTooltip"
                class="pgtooltip__content pgtooltip__content--secondary pgtooltip__content--right"
            >
                <div class="pgform__field">
                    <label for="shopSelect" class="pgform__field__label">
                        <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'pgtrans' ][ 0 ], array( 'misc.backoffice.menu.shop_selector.label' ));?>

                    </label>

                    <select id="shopSelect">
                        <option selected="selected">
                            <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentShop']->value->getName(), ENT_QUOTES, 'UTF-8', true);?>

                        </option>

                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['shops']->value, 'shop');
$_smarty_tpl->tpl_vars['shop']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['shop']->value) {
$_smarty_tpl->tpl_vars['shop']->do_else = false;
?>
                            <?php if ($_smarty_tpl->tpl_vars['shop']->value->id() !== $_smarty_tpl->tpl_vars['currentShop']->value->id()) {?>
                                <option value="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'toback' ][ 0 ], array( 'backoffice.shop.select',array('id'=>$_smarty_tpl->tpl_vars['shop']->value->id(),'selected'=>$_smarty_tpl->tpl_vars['selected']->value) ));?>
">
                                    <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop']->value->getName(), ENT_QUOTES, 'UTF-8', true);?>

                                </option>
                            <?php }?>
                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    </select>
                </div>
            </div>
        </div>
    <?php }?>
</div><?php }
}
