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/6872ee913a6c70b1af8535c58cab75d8f1c62031_0.file.menu.tpl.php
<?php
/* Smarty version 3.1.34-dev-7, created on 2022-07-19 19:23:24
  from '/var/www/yarusvl.ru/data/www/test.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_62d6780c1ce458_18836377',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '6872ee913a6c70b1af8535c58cab75d8f1c62031' => 
    array (
      0 => '/var/www/yarusvl.ru/data/www/test.yarusvl.ru/tpls/orienta/html/menu.tpl',
      1 => 1611298366,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_62d6780c1ce458_18836377 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->smarty->ext->_tplFunction->registerTplFunctions($_smarty_tpl, array (
  'menu_items_tree' => 
  array (
    'compiled_filepath' => '/var/www/yarusvl.ru/data/www/test.yarusvl.ru/compiled/orienta/6872ee913a6c70b1af8535c58cab75d8f1c62031_0.file.menu.tpl.php',
    'uid' => '6872ee913a6c70b1af8535c58cab75d8f1c62031',
    'call_name' => 'smarty_template_function_menu_items_tree_157914181662d6780c152ce3_16028530',
  ),
));
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_157914181662d6780c152ce3_16028530 */
if (!function_exists('smarty_template_function_menu_items_tree_157914181662d6780c152ce3_16028530')) {
function smarty_template_function_menu_items_tree_157914181662d6780c152ce3_16028530(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) {?>
                                <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 { ?>
                                 <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 }?>
                                <?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_157914181662d6780c152ce3_16028530 */
}