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.
55 righe
1.8 KiB
55 righe
1.8 KiB
<#assign aui = taglibLiferayHash["/WEB-INF/tld/aui.tld"] /> |
|
<div id ="footer_sitemap"> |
|
<div class="container-fluid"> |
|
<#if entries?has_content> |
|
<ul class="primary-nav"> |
|
<#list entries as entry> |
|
<#assign layoutURL = portalUtil.getLayoutURL(entry, themeDisplay)> |
|
<#assign data_url = entry.getFriendlyURL(locale)> |
|
<#assign page_class = "page_item level_1"> |
|
<#if data_url == "/home"> |
|
<#assign page_class = page_class+" hidden" /> |
|
</#if> |
|
|
|
<#assign pages = entry.getChildren()> |
|
<#if pages?size gt 0 > |
|
<#assign page_class = " has_children"> |
|
</#if> |
|
|
|
<li class="${page_class}"> |
|
<a href="${layoutURL}" data-url="${data_url}">${entry.getName(locale)}</a> |
|
<@displayPages root = data_url pages = pages level = 2 /> |
|
</li> |
|
|
|
</#list> |
|
</ul> |
|
</#if> |
|
</div> |
|
</div> |
|
|
|
<#macro displayPages |
|
root |
|
pages |
|
level |
|
> |
|
<#if pages?has_content> |
|
<ul class="child-pages"> |
|
<#list pages as page> |
|
<#assign pageLayoutURL = portalUtil.getLayoutURL(page, themeDisplay)> |
|
<#assign data_url = root+page.getFriendlyURL(locale)> |
|
<#assign childPages = page.getChildren()> |
|
<#assign page_class = "page_item "> |
|
<#if childPages?size gt 0 > |
|
<#assign page_class = page_class+" has_children"> |
|
</#if> |
|
<li class="${page_class} level_${level}"> |
|
<a href="${pageLayoutURL}" data-url="${data_url}">${page.getName(locale)} |
|
</a> |
|
|
|
<#assign sub_level = level + 1 > |
|
<@displayPages root = data_url pages = childPages level = sub_level /> |
|
</li> |
|
</#list> |
|
</ul> |
|
</#if> |
|
</#macro> |