sito per le richieste......
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.
 
 
 
 
 

89 righe
3.3 KiB

<nav class="${nav_css_class} main-menu" id="navigation" role="navigation">
<ul class="hidden-xs hidden-sm" aria-label="<@liferay.language key=" site-pages
" />" role="menubar">
<#list nav_items as nav_item>
<#assign title = nav_item.getName() >
<#assign nav_item_attr_selected = "" />
<#assign nav_item_css_class = "" />
<#if nav_item.isSelected()>
<#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()}" href="${nav_item.getURL()}" ${nav_item.getTarget()} role="menuitem">
<span>${title}</span>
</a>
</li>
</#list>
</ul>
</nav>
<h2 class="page-title">
<a href="${site_default_url}">
<img class="img-site" alt="${logo_description}" src="${images_folder}/etoscana-white-text.png"/>
</a>
</h2>
<div class="subheader-right">
<#if user_name != "" >
<div class="name-user">
<span class="fa fa-user-circle"></span>
${user_name}
</div>
<div class="info-user">
<#assign organizationservice = serviceLocator.findService('com.liferay.portal.service.OrganizationLocalService') />
<#assign organizations = organizationservice.getUserOrganizations(user_id) >
<#assign org_names = "">
<#if organizations?has_content>
<#list organizations as org>
<#assign org_names = org_names+" - ${org.getName()}">
</#list>
</#if>
<#if org_names?has_content>
<p class="info-user__location">${org_names?substring(3)}</p>
</#if>
<#assign userGroupRoleService = serviceLocator.findService('com.liferay.portal.service.UserGroupRoleLocalService') />
<#assign roles = userGroupRoleService.getUserGroupRoles(user_id) >
<#assign role_names = "">
<#if roles?has_content>
<#list roles as role>
<#assign roleName = role.getRole().getName()>
<#if !roleName?matches('.*Owner') >
<#assign roleName = roleName?replace('portos_', '')?replace('_',' ')?capitalize>
<#if !role_names?contains(roleName) >
<#assign role_names = role_names+", ${roleName}">
</#if>
</#if>
</#list>
</#if>
<#if role_names?has_content>
<p class="info-user__occupazione">${role_names?substring(2)}</p>
</#if>
</div>
<div class="header-separator"></div>
</#if>
<div class="notification-header">
<span class="notification-header__icon fa fa-bell-o"></span>
<#assign liferay_portlet = PortalJspTagLibs["/WEB-INF/tld/liferay-portlet-ext.tld"] />
<#assign portlet_id = "2_WAR_notificationsportlet" />
${theme.runtime(portlet_id)}
</div>
<span class="btn btn-danger button-menu-right">
<span class="toggle">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</span>
</span>
</div>