<% @props.horizontal = ( @item.getType(@location) == "horizontal" ) # temporary @props.treelike = (@item.treelike( @th ) && !@props.horizontal); @props.top = true; menuId = @item.getMenu(); if menuId == 'main' && @page.adminPage( @th ) menuId = 'adminarea' menuClass = if @props.treelike then "menu-treelike" else "navbar-nav" %> {BEGIN menuitems_<%- menuId %>} {END menuitems_<%- menuId %>}