<li id="toTopLink" class="toTopLink"><a href="#top" title="{lang}wcf.global.scrollUp{/lang}" class="balloonTooltip"><img src="{icon size='S'}toTop{/icon}" alt="" /> <span class="invisible">{lang}wcf.global.scrollUp{/lang}</span></a></li>
{if $__wcf->getPageMenu()->getMenuItems('footer')|count > 0}
{foreach from=$__wcf->getPageMenu()->getMenuItems('footer') item=menuItem}
- <li><a href="{$menuItem->menuItemLink}">{$menuItem->menuItem} ({#$menuItem->getProcessor()->getNotifications()})</a></li>
+ <li><a href="{$menuItem->getProcessor()->getLink()}">{$menuItem->menuItem} ({#$menuItem->getProcessor()->getNotifications()})</a></li>
{/foreach}
{/if}
</ul>
<nav id="mainMenu" class="mainMenu">
<ul>
{foreach from=$__wcf->getPageMenu()->getMenuItems('header') item=menuItem}
- <li{if $__wcf->getPageMenu()->getActiveMenuItem() == $menuItem->menuItem} class="activeMenuItem"{/if}><a href="{$menuItem->menuItemLink}">{lang}{$menuItem->menuItem}{/lang}{if $menuItem->getProcessor()->getNotifications()} <span class="badge">{#$menuItem->getProcessor()->getNotifications()}</span>{/if}</a>
+ <li{if $__wcf->getPageMenu()->getActiveMenuItem() == $menuItem->menuItem} class="activeMenuItem"{/if}><a href="{$menuItem->getProcessor()->getLink()}">{lang}{$menuItem->menuItem}{/lang}{if $menuItem->getProcessor()->getNotifications()} <span class="badge">{#$menuItem->getProcessor()->getNotifications()}</span>{/if}</a>
{if $__wcf->getPageMenu()->getMenuItems($menuItem->menuItem)|count > 0}
<ul>
{foreach from=$__wcf->getPageMenu()->getMenuItems($menuItem->menuItem) item=subMenuItem}
- <li><a href="{$subMenuItem->menuItemLink}">{lang}{$subMenuItem->menuItem}{/lang}</a>{if $subMenuItem->getProcessor()->getNotifications()} <span class="badge">{#$subMenuItem->getProcessor()->getNotifications()}</span>{/if}</li>
+ <li><a href="{$subMenuItem->getProcessor()->getLink()}">{lang}{$subMenuItem->menuItem}{/lang}</a>{if $subMenuItem->getProcessor()->getNotifications()} <span class="badge">{#$subMenuItem->getProcessor()->getNotifications()}</span>{/if}</li>
{/foreach}
</ul>
{/if}
public function getNotifications() {
return 0;
}
+
+ /**
+ * @see wcf\system\menu\page\IPageMenuItemProvider::getLink()
+ */
+ public function getLink() {
+ // explicit call to satisfy our interface
+ return $this->getDecoratedObject()->getLink();
+ }
}
/**
* Returns the number of notifications for the associated menu item.
*
- * @return boolean
+ * @return integer
*/
public function getNotifications();
+
+ /**
+ * Returns the href of the associated menu item.
+ *
+ * @return string
+ */
+ public function getLink();
}