Added template events in user menu
authorAlexander Ebert <ebert@woltlab.com>
Wed, 4 Feb 2015 15:11:15 +0000 (16:11 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 4 Feb 2015 15:11:15 +0000 (16:11 +0100)
com.woltlab.wcf/templates/userPanel.tpl

index d3bdd15c1cb1c2f9025fcdd95d0b9ea0556114ad..96bfb5811af3865f17670dfa2b40bbb98361868c 100644 (file)
@@ -33,6 +33,8 @@
                                                </div>
                                        </li>
                                        
+                                       {event name='userMenuItemsBefore'}
+                                       
                                        {foreach from=$__wcf->getUserMenu()->getMenuItems('') item=menuCategory}
                                                <li class="dropdownDivider"></li>
                                                <li class="interactiveDropdownUserMenuItem">
@@ -51,6 +53,8 @@
                                                        </div>
                                                </li>
                                        {/foreach}
+                                       
+                                       {event name='userMenuItemsAfter'}
                                </ul>
                        </div>
                        <a class="interactiveDropdownShowAll" href="{link controller='Logout'}t={@SECURITY_TOKEN}{/link}" onclick="WCF.Dropdown.Interactive.Handler.close('userMenu'); WCF.System.Confirmation.show('{lang}wcf.user.logout.sure{/lang}', $.proxy(function (action) { if (action == 'confirm') window.location.href = $(this).attr('href'); }, this)); return false;">{lang}wcf.user.logout{/lang}</a>