Fixed sub menu items
authorMarcel Werk <burntime@woltlab.com>
Wed, 29 Feb 2012 18:34:07 +0000 (19:34 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 29 Feb 2012 18:34:07 +0000 (19:34 +0100)
com.woltlab.wcf/template/mainMenuSubMenu.tpl

index cfc498d69bd819320e3171e63554a80606ae2c01..cbe4a4234a4a13874d979facffb08a26daaa16a3 100644 (file)
@@ -1,5 +1,5 @@
 {foreach from=$__wcf->getPageMenu()->getMenuItems('header') item=menuItem}
-       {if $__wcf->getPageMenu()->getMenuItems($menuItem->menuItem)|count > 0}
+       {if $__wcf->getPageMenu()->getMenuItems($menuItem->menuItem)|count > 0 && $__wcf->getPageMenu()->getActiveMenuItem() == $menuItem->menuItem}
                <div class="wcf-menu">
                        <ul>
                                {foreach from=$__wcf->getPageMenu()->getMenuItems($menuItem->menuItem) item=subMenuItem}