HEX
Server: Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 mod_fcgid/2.3.9 PHP/5.4.16
System: Linux dvm.vladweb.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: region-gk.ru (1016)
PHP: 8.2.27
Disabled: NONE
Upload Files
File: /home/temp/yarusvl.ru/compiled/orienta/ec5c41f620ac59cef5fbd2089c2f2ad049d137ee_0.file.menu.tpl.php
<?php
/* Smarty version 3.1.34-dev-7, created on 2023-05-25 13:14:51
  from '/home/yarusvl_ru_usr/data/www/yarusvl.ru/tpls/orienta/html/menu.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.34-dev-7',
  'unifunc' => 'content_646ed2ab3870d2_35594626',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ec5c41f620ac59cef5fbd2089c2f2ad049d137ee' => 
    array (
      0 => '/home/yarusvl_ru_usr/data/www/yarusvl.ru/tpls/orienta/html/menu.tpl',
      1 => 1684984485,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_646ed2ab3870d2_35594626 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->smarty->ext->_tplFunction->registerTplFunctions($_smarty_tpl, array (
  'menu_items_tree' => 
  array (
    'compiled_filepath' => '/home/yarusvl_ru_usr/data/www/yarusvl.ru/compiled/orienta/ec5c41f620ac59cef5fbd2089c2f2ad049d137ee_0.file.menu.tpl.php',
    'uid' => 'ec5c41f620ac59cef5fbd2089c2f2ad049d137ee',
    'call_name' => 'smarty_template_function_menu_items_tree_1576523834646ed2ab30b000_89164896',
  ),
));
if ($_smarty_tpl->tpl_vars['menu_items']->value) {?>

    
    <?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, 'menu_items_tree', array('menu_items'=>$_smarty_tpl->tpl_vars['menu_items']->value,'level'=>1), true);?>


<?php }
}
/* smarty_template_function_menu_items_tree_1576523834646ed2ab30b000_89164896 */
if (!function_exists('smarty_template_function_menu_items_tree_1576523834646ed2ab30b000_89164896')) {
function smarty_template_function_menu_items_tree_1576523834646ed2ab30b000_89164896(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

        <?php if ($_smarty_tpl->tpl_vars['menu_items']->value) {?>
            <?php if ($_smarty_tpl->tpl_vars['level']->value == 1) {?>
            <ul class="nav navbar-nav navbar-left">
            <?php } elseif ($_smarty_tpl->tpl_vars['level']->value == 2) {?>
            <ul class="dropdown-menu">
            <?php } else { ?>
            <ul class="dropdown-menu sub-menu">
            <?php }?>
                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['menu_items']->value, 'item');
$_smarty_tpl->tpl_vars['item']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->do_else = false;
?>
                    <?php if ($_smarty_tpl->tpl_vars['item']->value->visible == 1) {?>
                        <li class="<?php if ($_smarty_tpl->tpl_vars['item']->value->submenus) {?>dropdown<?php }?>">
                            <?php if ($_smarty_tpl->tpl_vars['level']->value == 1) {?>
                            <?php ob_start();
echo preg_replace('!\s+!u', ' ',$_smarty_tpl->tpl_vars['item']->value->url);
$_prefixVariable1=ob_get_clean();
if ($_SERVER['REQUEST_URI'] != "/".$_prefixVariable1) {?>
                                <a class="<?php if ($_smarty_tpl->tpl_vars['item']->value->submenus) {?>if-click dropdown-toggle<?php }?>" href="<?php if ($_smarty_tpl->tpl_vars['item']->value->url) {
echo $_smarty_tpl->tpl_vars['item']->value->url;?>
 <?php } else {
echo $_smarty_tpl->tpl_vars['lang_link']->value;?>
javascript:;<?php }?>" <?php if (!$_smarty_tpl->tpl_vars['item']->value->submenus && $_smarty_tpl->tpl_vars['item']->value->is_target_blank) {?>target="_blank"<?php }?>>
                                    <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value->name, ENT_QUOTES, 'UTF-8', true);?>

                                <?php if ($_smarty_tpl->tpl_vars['item']->value->submenus) {?><span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span><?php }?></a>
                            <?php } else { ?>
                                <span class="<?php if ($_smarty_tpl->tpl_vars['item']->value->submenus) {?>if-click dropdown-toggle<?php }?>" <?php if (!$_smarty_tpl->tpl_vars['item']->value->submenus && $_smarty_tpl->tpl_vars['item']->value->is_target_blank) {?>target="_blank"<?php }?>>
                                    <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value->name, ENT_QUOTES, 'UTF-8', true);?>

                                <?php if ($_smarty_tpl->tpl_vars['item']->value->submenus) {?><span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span><?php }?></span>
                            <?php }?>
                             <?php } else { ?>
                            <?php ob_start();
echo preg_replace('!\s+!u', ' ',$_smarty_tpl->tpl_vars['item']->value->url);
$_prefixVariable2=ob_get_clean();
if ($_SERVER['REQUEST_URI'] != "/".$_prefixVariable2) {?>
                                <a class="<?php if ($_smarty_tpl->tpl_vars['item']->value->submenus) {?>if-click trigger right-caret<?php }?>" href="<?php if ($_smarty_tpl->tpl_vars['item']->value->url) {
echo $_smarty_tpl->tpl_vars['item']->value->url;?>
 <?php } else {
echo $_smarty_tpl->tpl_vars['lang_link']->value;?>
javascript:;<?php }?>" <?php if (!$_smarty_tpl->tpl_vars['item']->value->submenus && $_smarty_tpl->tpl_vars['item']->value->is_target_blank) {?>target="_blank"<?php }?>>
                                    <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value->name, ENT_QUOTES, 'UTF-8', true);?>

                                </a>                                 
                            <?php } else { ?>
                                <span class="<?php if ($_smarty_tpl->tpl_vars['item']->value->submenus) {?>if-click trigger right-caret<?php }?>" <?php if (!$_smarty_tpl->tpl_vars['item']->value->submenus && $_smarty_tpl->tpl_vars['item']->value->is_target_blank) {?>target="_blank"<?php }?>>
                                    <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value->name, ENT_QUOTES, 'UTF-8', true);?>

                                </span>                                 
                            <?php }?>
                             <?php }?>
                            <?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, 'menu_items_tree', array('menu_items'=>$_smarty_tpl->tpl_vars['item']->value->submenus,'level'=>$_smarty_tpl->tpl_vars['level']->value+1), true);?>

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