Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
37 righe
1.6 KiB
37 righe
1.6 KiB
<nav class="${nav_css_class}" id="navigation" role="navigation"> |
|
<ul aria-label="<@liferay.language key="site-pages" />" role="menubar"> |
|
<#list nav_items as nav_item> |
|
<#assign nav_item_attr_has_popup = "" /> |
|
<#assign nav_item_attr_selected = "" /> |
|
<#assign nav_item_css_class = "" /> |
|
|
|
<#if nav_item.isSelected()> |
|
<#assign nav_item_attr_has_popup = "aria-haspopup='true'" /> |
|
<#assign nav_item_attr_selected = "aria-selected='true'" /> |
|
<#assign nav_item_css_class = "selected" /> |
|
</#if> |
|
|
|
<li ${nav_item_attr_selected} class="${nav_item_css_class}" id="layout_${nav_item.getLayoutId()}" role="presentation"> |
|
<a aria-labelledby="layout_${nav_item.getLayoutId()}" ${nav_item_attr_has_popup} href="${nav_item.getURL()}" ${nav_item.getTarget()} role="menuitem"><span>${nav_item.icon()} ${nav_item.getName()}</span></a> |
|
|
|
<#if nav_item.hasChildren()> |
|
<ul class="child-menu" role="menu"> |
|
<#list nav_item.getChildren() as nav_child> |
|
<#assign nav_child_attr_selected = "" /> |
|
<#assign nav_child_css_class = "" /> |
|
|
|
<#if nav_item.isSelected()> |
|
<#assign nav_child_attr_selected = "aria-selected='true'" /> |
|
<#assign nav_child_css_class = "selected" /> |
|
</#if> |
|
|
|
<li ${nav_child_attr_selected} class="${nav_child_css_class}" id="layout_${nav_child.getLayoutId()}" role="presentation"> |
|
<a aria-labelledby="layout_${nav_child.getLayoutId()}" href="${nav_child.getURL()}" ${nav_child.getTarget()} role="menuitem">${nav_child.getName()}</a> |
|
</li> |
|
</#list> |
|
</ul> |
|
</#if> |
|
</li> |
|
</#list> |
|
</ul> |
|
</nav> |