Added events in '__menu' template
authorMarcel Werk <burntime@woltlab.com>
Tue, 4 Apr 2017 14:50:32 +0000 (16:50 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 4 Apr 2017 14:50:32 +0000 (16:50 +0200)
Closes #2183

com.woltlab.wcf/templates/__menu.tpl

index 2384e00b53f78581f036fe81c48c05d035a1072b..0520f3ea1153f8598a3c56367cfc674f99000f78 100644 (file)
@@ -1,5 +1,7 @@
 <nav>
        <ol class="boxMenu">
+               {event name='menuBefore'}
+               
                {foreach from=$menuItemNodeList item=menuItemNode}
                        <li class="{if $menuItemNode->isActiveNode()}active{/if}{if $menuItemNode->hasChildren()} boxMenuHasChildren{/if}" data-identifier="{@$menuItemNode->identifier}">
                                <a href="{$menuItemNode->getURL()}" class="boxMenuLink"{if $menuItemNode->isExternalLink()}{if EXTERNAL_LINK_REL_NOFOLLOW} rel="nofollow"{/if}{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}{/if}>
@@ -15,5 +17,7 @@
                                        {@"</ol></li>"|str_repeat:$menuItemNode->getOpenParentNodes()}
                                {/if}
                {/foreach}
+                                       
+               {event name='menuAfter'}
        </ol>
 </nav>