Added proper support for font size and color
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / __menu.tpl
1 <nav>
2 <ol class="boxMenu">
3 {foreach from=$menuItemNodeList item=menuItemNode}
4 <li class="{if $menuItemNode->isActiveNode()}active{/if}{if $menuItemNode->hasChildren()} boxMenuHasChildren{/if}">
5 <a href="{$menuItemNode->getURL()}" class="boxMenuLink">
6 <span class="boxMenuLinkTitle">{lang}{$menuItemNode->title}{/lang}</span>
7 {if $menuItemNode->getOutstandingItems() > 0}
8 <span class="boxMenuLinkOutstandingItems badge badgeUpdate">{#$menuItemNode->getOutstandingItems()}</span>
9 {/if}
10 </a>
11
12 {if $menuItemNode->hasChildren()}<ol class="boxMenuDepth{@$menuItemNode->getDepth()}">{else}</li>{/if}
13
14 {if !$menuItemNode->hasChildren() && $menuItemNode->isLastSibling()}
15 {@"</ol></li>"|str_repeat:$menuItemNode->getOpenParentNodes()}
16 {/if}
17 {/foreach}
18 </ol>
19 </nav>