| 1 | <nav aria-label="{$menuTitle}"> |
| 2 | <ol class="boxMenu"> |
| 3 | {event name='menuBefore'} |
| 4 | |
| 5 | {foreach from=$menuItemNodeList item=menuItemNode} |
| 6 | <li class="{if $menuItemNode->isActiveNode()}active{/if}{if $menuItemNode->hasChildren()} boxMenuHasChildren{/if}" data-identifier="{@$menuItemNode->identifier}"> |
| 7 | <a {anchorAttributes url=$menuItemNode->getURL() appendClassname=false} class="boxMenuLink"{if $menuItemNode->isActiveNode()} aria-current="page"{/if}> |
| 8 | <span class="boxMenuLinkTitle">{$menuItemNode->getTitle()}</span> |
| 9 | {if $menuItemNode->getOutstandingItems() > 0} |
| 10 | <span class="boxMenuLinkOutstandingItems badge badgeUpdate" aria-label="{lang}wcf.page.menu.outstandingItems{/lang}">{#$menuItemNode->getOutstandingItems()}</span> |
| 11 | {/if} |
| 12 | {if $menuIdentifier == 'com.woltlab.wcf.MainMenu' && $menuItemNode->hasChildren() && $menuItemNode->getDepth() == 1} |
| 13 | {icon name='caret-down' type='solid'} |
| 14 | {/if} |
| 15 | </a> |
| 16 | |
| 17 | {if $menuItemNode->hasChildren()}<ol class="boxMenuDepth{@$menuItemNode->getDepth()}">{else}</li>{/if} |
| 18 | |
| 19 | {if !$menuItemNode->hasChildren() && $menuItemNode->isLastSibling()} |
| 20 | {@"</ol></li>"|str_repeat:$menuItemNode->getOpenParentNodes()} |
| 21 | {/if} |
| 22 | {/foreach} |
| 23 | |
| 24 | {event name='menuAfter'} |
| 25 | </ol> |
| 26 | </nav> |