<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:g="http://www.w3.org/1999/html"
      data-namespace-typo3-fluid="true">
<nav class="navbar navbar-default navbar-main">
    <f:render section="mainmenu" arguments="{nav:navMain}"/>
</nav>
<f:section name="mainmenu">
    <ul class="nav navbar-nav level1" role="menubar"><f:for each="{nav}" as="navItem"><li class="nav-item{f:if(condition: navItem.active, then: ' active')}{f:if(condition: navItem.current, then: ' current')}{f:if(condition: navItem.children, then: ' dropdown')}"><f:if condition="{navItem.children}"><f:then><a class="nav-link dropdown-toggle" id="dropdownToggler{navItem.title}" tabindex="{i.index}" data-toggle="dropdown" data-uid="{navItem.data.uid}" aria-haspopup="true" aria-expanded="false" href="{navItem.link}">{navItem.title}</a></f:then><f:else><a class="nav-link" href="{navItem.link}" role="menuitem" data-uid="{navItem.data.uid}">{navItem.title}</a></f:else></f:if><f:if condition="{navItem.children}"><f:render section="submenu" arguments="{submenu: navItem.children, dropdownToggler:navItem.title}"/></f:if></li></f:for></ul>
</f:section>
<f:section name="submenu">
    <ul class="dropdown-menu level2" aria-labelledby="dropdownToggler{dropdownToggler}"><f:for each="{submenu}" as="subItem"><li class="flyout"><a class="dropdown-item {f:if(condition: subItem.active, then: ' active')}{f:if(condition: subItem.current, then: ' current')}{f:if(condition: subItem.children, then: ' flyout-toggle')}" href="{subItem.link}" title="{f:if(condition: subItem.data.abstract, then: subItem.data.abstract, else: subItem.data.description)}" data-uid="{subItem.data.uid}" data-toggle="flyout" role="menuitem" tabindex="-1">{subItem.title}</a></li></f:for></ul>
</f:section>


