Current path: home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/96/12/72/
?? Go up: /home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/96/12
<?php
/* Smarty version 4.3.1, created on 2024-01-06 03:29:08
from '/home/webdevt/www/schtroumpf.fr/modules/anblog/views/templates/front/category_menu.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.3.1',
'unifunc' => 'content_6598baf4b85f59_51524524',
'has_nocache_code' => false,
'file_dependency' =>
array (
'961272213e7d394ff590d443dd119060d36734f8' =>
array (
0 => '/home/webdevt/www/schtroumpf.fr/modules/anblog/views/templates/front/category_menu.tpl',
1 => 1702566465,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6598baf4b85f59_51524524 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->smarty->ext->_tplFunction->registerTplFunctions($_smarty_tpl, array (
'printList' =>
array (
'compiled_filepath' => '/home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/96/12/72/961272213e7d394ff590d443dd119060d36734f8_2.file.category_menu.tpl.php',
'uid' => '961272213e7d394ff590d443dd119060d36734f8',
'call_name' => 'smarty_template_function_printList_2100578386598baf4b72098_81197582',
),
));
?>
<?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, 'printList', array('level'=>1,'parent'=>1,'items'=>$_smarty_tpl->tpl_vars['tree']->value), true);?>
<?php }
/* smarty_template_function_printList_2100578386598baf4b72098_81197582 */
if (!function_exists('smarty_template_function_printList_2100578386598baf4b72098_81197582')) {
function smarty_template_function_printList_2100578386598baf4b72098_81197582(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>
<ul <?php if ($_smarty_tpl->tpl_vars['parent']->value != 1) {?>id="sub_<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['parent']->value,'htmlall' )), ENT_QUOTES, 'UTF-8');?>
"<?php }?> class="level<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['level']->value,'htmlall' )), ENT_QUOTES, 'UTF-8');?>
category-sub-menu<?php if ($_smarty_tpl->tpl_vars['level']->value == 1) {?> tree dhtml <?php } else { ?> collapse <?php }?>">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['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;
?>
<li id="list_<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['item']->value['id_anblogcat'],'htmlall' )), ENT_QUOTES, 'UTF-8');?>
" class=" <?php if ((isset($_smarty_tpl->tpl_vars['item']->value['menu_class']))) {?> <?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['item']->value['menu_class'], ENT_QUOTES, 'UTF-8');
}?> <?php if ($_smarty_tpl->tpl_vars['item']->value['id_anblogcat'] == $_smarty_tpl->tpl_vars['selected']->value) {?>selected<?php }?>">
<a href="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['item']->value['category_link'],'htmlall' )), ENT_QUOTES, 'UTF-8');?>
" class="category-sub-link" title="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['item']->value['title'],'htmlall' )), ENT_QUOTES, 'UTF-8');?>
">
<?php if (($_smarty_tpl->tpl_vars['item']->value['icon_class'])) {?>
<i class="fa fa-<?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['item']->value['icon_class'], ENT_QUOTES, 'UTF-8');?>
"></i>
<?php }?>
<span><?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['item']->value['title'],'htmlall' )), ENT_QUOTES, 'UTF-8');?>
</span>
</a>
<?php if ((isset($_smarty_tpl->tpl_vars['item']->value['children']))) {?>
<div class="navbar-toggler collapse-icons"
data-toggle="collapse" data-target="#sub_<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['item']->value['id_anblogcat'],'htmlall' )), ENT_QUOTES, 'UTF-8');?>
">
<i class="material-icons add">add</i>
<i class="material-icons remove">remove</i>
</div>
<?php $_smarty_tpl->_assignInScope('level', $_smarty_tpl->tpl_vars['level']->value+1);?>
<?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, 'printList', array('level'=>$_smarty_tpl->tpl_vars['level']->value,'parent'=>$_smarty_tpl->tpl_vars['item']->value['id_anblogcat'],'items'=>$_smarty_tpl->tpl_vars['item']->value['children']), true);?>
<?php } else { ?>
<?php $_smarty_tpl->_assignInScope('level', $_smarty_tpl->tpl_vars['level']->value-1);?>
<?php }?>
</li>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</ul>
<?php
}}
/*/ smarty_template_function_printList_2100578386598baf4b72098_81197582 */
}