Merge remote-tracking branch 'refs/remotes/origin/3.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / userMenuSidebar.tpl
1 {capture assign='sidebarLeft'}
2 {assign var=__userMenuActiveItems value=$__wcf->getUserMenu()->getActiveMenuItems()}
3
4 <script data-relocate="true">
5 $(function() {
6 // mobile safari hover workaround
7 if ($(window).width() <= 800) {
8 $('.sidebar').addClass('mobileSidebar').hover(function() { });
9 }
10 });
11 </script>
12
13 <section class="box">
14 {foreach from=$__wcf->getUserMenu()->getMenuItems('') item=menuCategory}
15 <h2 class="boxTitle">{lang}{$menuCategory->menuItem}{/lang}</h2>
16
17 <nav class="boxContent">
18 <ol class="boxMenu">
19 {foreach from=$__wcf->getUserMenu()->getMenuItems($menuCategory->menuItem) item=menuItem}
20 <li{if $menuItem->menuItem|in_array:$__userMenuActiveItems} class="active"{/if}>
21 <a href="{$menuItem->getProcessor()->getLink()}" class="boxMenuLink"><span class="boxMenuLinkTitle">{@$menuItem}</span></a>
22 </li>
23 {/foreach}
24 </ol>
25 </nav>
26 {/foreach}
27 </section>
28 {/capture}