-<nav>
+<nav aria-label="{$menuTitle}">
<ol class="boxMenu">
{event name='menuBefore'}
{foreach from=$menuItemNodeList item=menuItemNode}
<li class="{if $menuItemNode->isActiveNode()}active{/if}{if $menuItemNode->hasChildren()} boxMenuHasChildren{/if}" data-identifier="{@$menuItemNode->identifier}">
- <a href="{$menuItemNode->getURL()}" class="boxMenuLink"{if $menuItemNode->isExternalLink()}{if EXTERNAL_LINK_REL_NOFOLLOW} rel="nofollow"{/if}{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}{/if}>
+ <a href="{$menuItemNode->getURL()}" class="boxMenuLink"{if $menuItemNode->isExternalLink()}{if EXTERNAL_LINK_REL_NOFOLLOW} rel="nofollow"{/if}{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}{/if}{if $menuItemNode->isActiveNode()} aria-current="page"{/if}>
<span class="boxMenuLinkTitle">{lang}{$menuItemNode->title}{/lang}</span>
{if $menuItemNode->getOutstandingItems() > 0}
<span class="boxMenuLinkOutstandingItems badge badgeUpdate">{#$menuItemNode->getOutstandingItems()}</span>
* @return string
*/
public function getContent() {
- WCF::getTPL()->assign(['menuItemNodeList' => $this->getMenuItemNodeList()]);
+ WCF::getTPL()->assign([
+ 'menuItemNodeList' => $this->getMenuItemNodeList(),
+ 'menuTitle' => $this->getTitle()
+ ]);
return WCF::getTPL()->fetch('__menu');
}