Sfoglia il codice sorgente

up diff

feature/confronto-sorgenti
E-A B 2 anni fa
parent
commit
f3d062e6b8
  1. 144
      liferay-plugins-sdk-6.2/themes/portos-private-theme/docroot/templates/navigation.ftl
  2. 2
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/templates/header.ftl

144
liferay-plugins-sdk-6.2/themes/portos-private-theme/docroot/templates/navigation.ftl

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

2
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/templates/header.ftl

@ -1,6 +1,6 @@
<div id="heading"> <div id="heading">
<h1 class="site-title"> <h1 class="site-title">
<a class="${logo_css_class}" href="http://pti.regione.sicilia.it/"> <a class="${logo_css_class}" href="http://www.regione.sicilia.it/">
<#assign logo_url = "${images_folder}/logo-rs-testo.png" /> <#assign logo_url = "${images_folder}/logo-rs-testo.png" />
<img class="logo-img hidden-xs" alt="${logo_description}" src="${logo_url}" height="${site_logo_height}" <img class="logo-img hidden-xs" alt="${logo_description}" src="${logo_url}" height="${site_logo_height}"
width="${site_logo_width}"/> width="${site_logo_width}"/>

Caricamento…
Annulla
Salva