Added data-identifier attribute to menu items
authorMarcel Werk <burntime@woltlab.com>
Fri, 3 Mar 2017 17:46:28 +0000 (18:46 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 3 Mar 2017 17:46:28 +0000 (18:46 +0100)
Closes #2185

com.woltlab.wcf/templates/__menu.tpl

index 86c0d13f73aa722e2588f2618bd5e35eef160b2d..2384e00b53f78581f036fe81c48c05d035a1072b 100644 (file)
@@ -1,7 +1,7 @@
 <nav>
        <ol class="boxMenu">
                {foreach from=$menuItemNodeList item=menuItemNode}
-                       <li class="{if $menuItemNode->isActiveNode()}active{/if}{if $menuItemNode->hasChildren()} boxMenuHasChildren{/if}">
+                       <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}>
                                        <span class="boxMenuLinkTitle">{lang}{$menuItemNode->title}{/lang}</span>
                                        {if $menuItemNode->getOutstandingItems() > 0}