{assign var = foreach_name value = "menu`$level`"} {foreach from = $menu item = "menuItem" name = $foreach_name}
  • {if empty($menuItem.sub) || ($level + 1) >= 3} {$menuItem.menuTitle} {if ($level + 1) >= 3 && !empty($menuItem.sub)} ยป
      {include file = $DOC->getTemplate('menu_item.tpl') menu = $menuItem.sub level = $level+1}
    {/if} {if not empty($menuItem.fileList) && is_array($menuItem.fileList) && count($menuItem.fileList) && $level eq 1} {/if} {else} {$menuItem.menuTitle}{if $level>1}{**}{/if} {/if} {if not empty($menuItem.fileList) && is_array($menuItem.fileList) && count($menuItem.fileList) && $level neq 1} {foreach from = $menuItem.fileList item = "file"}
    {$file.title} ({$file.exp})
    {/foreach} {/if}
  • {/foreach}