{foreach from=$__wcf->getBoxHandler()->getBoxes('mainMenu')[0]->getMenu()->getMenuItemNodeList() item=menuItemNode}
<li class="menuOverlayItem">
{assign var=__outstandingItems value=$menuItemNode->getMenuItem()->getOutstandingItems()}
- <a href="{$menuItemNode->getMenuItem()->getURL()}" class="menuOverlayItemLink{if $__outstandingItems} menuOverlayItemBadge{/if}">
+ <a href="{$menuItemNode->getMenuItem()->getURL()}" class="menuOverlayItemLink{if $__outstandingItems} menuOverlayItemBadge{/if}{if $menuItemNode->isActiveNode()} active{/if}">
<span class="menuOverlayItemTitle">{lang}{$menuItemNode->getMenuItem()->title}{/lang}</span>
{if $__outstandingItems}
<span class="badge badgeUpdate">{#$__outstandingItems}</span>
var moreLink = elCreate('a');
elAttr(moreLink, 'href', '#');
- moreLink.className = 'menuOverlayItemLinkIcon';
+ moreLink.className = 'menuOverlayItemLinkIcon' + (item.classList.contains('active') ? ' active' : '');
moreLink.innerHTML = '<span class="icon icon24 fa-angle-right"></span>';
moreLink.addEventListener(WCF_CLICK_EVENT, callbackLink);
wrapper.appendChild(moreLink);
<?php
namespace wcf\data\menu\item;
-use wcf\data\page\Page;
use wcf\data\DatabaseObject;
+use wcf\data\page\Page;
use wcf\data\page\PageCache;
use wcf\system\exception\SystemException;
use wcf\system\page\handler\ILookupPageHandler;
}
}
+.menuOverlayItemLink.active,
+.menuOverlayItemLinkIcon.active {
+ background-color: rgb(41, 128, 185);
+}
+
.menuOverlayTitle {
color: rgb(204, 204, 204);
overflow: hidden;