<nav class="contentHeaderNavigation">
<ul>
+ {if $action == 'edit'}
+ {*
+ Technically this dropdown should check whether the number of menu items is larger than one,
+ but this is non-trivial with the iterator. It's unlikely that there's only a single menu item,
+ thus we let this slip.
+ *}
+ <li class="dropdown">
+ <a class="button dropdownToggle"><span class="icon icon16 fa-sort"></span> <span>{lang}wcf.acp.menu.item.button.choose{/lang}</span></a>
+ <div class="dropdownMenu">
+ <ul class="scrollableDropdownMenu">
+ {foreach from=$menuItemNodeList item='menuItemNode'}
+ <li{if $menuItemNode->itemID == $itemID} class="active"{/if}><a href="{link controller='MenuItemEdit' object=$menuItemNode}{/link}">{if $menuItemNode->getDepth() > 1}{@" "|str_repeat:($menuItemNode->getDepth() - 1)}{/if}{$menuItemNode->getTitle()}</a></li>
+ {/foreach}
+ </ul>
+ </div>
+ </li>
+ {/if}
<li><a href="{link controller='MenuItemList' id=$menuID}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.item.list{/lang}</span></a></li>
{event name='contentHeaderNavigation'}
<item name="wcf.acp.menu.link.systemCheck"><![CDATA[Systemüberprüfung]]></item>
<item name="wcf.acp.menu.link.devtools.missingLanguageItem.list"><![CDATA[Fehlende Texte]]></item>
<item name="wcf.acp.menu.link.log.email"><![CDATA[E-Mails]]></item>
+ <item name="wcf.acp.menu.item.button.choose"><![CDATA[Menüpunkt wählen]]></item>
</category>
<category name="wcf.acp.modificationLog">
<item name="wcf.acp.modificationLog.list"><![CDATA[Globales Änderungsprotokoll]]></item>
<item name="wcf.acp.menu.link.systemCheck"><![CDATA[System Check]]></item>
<item name="wcf.acp.menu.link.devtools.missingLanguageItem.list"><![CDATA[Missing Phrases]]></item>
<item name="wcf.acp.menu.link.log.email"><![CDATA[Emails]]></item>
+ <item name="wcf.acp.menu.item.button.choose"><![CDATA[Choose Menu Item]]></item>
</category>
<category name="wcf.acp.modificationLog">
<item name="wcf.acp.modificationLog.list"><![CDATA[Global Modification Log]]></item>