#set($count = 0)
#foreach($menu in $menuModel.getMenus())
    #if ($menu.isPermitted($req))
       #foreach( $item in $menu.getMenuItems())
           #if ($menu.isPermitted($req))
               #if ($count > 0)
               &nbsp;|&nbsp;
               #end
               <a href="$item.getUrl( $ctx )">$text.getString($item.getName())</a>
               #set($count = $count + 1)
           #end
       #end
    #end
#end

