Sfoglia il codice sorgente

dsidebar anche desktop

master
Mattia MWG 5 anni fa
parent
commit
96ce01c1c8
  1. 40
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/templates/navigation.ftl
  2. 2
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/templates/sidebar.ftl
  3. 40
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/templates/navigation.ftl
  4. 2
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/templates/sidebar.ftl

40
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/templates/navigation.ftl

@ -1,43 +1,3 @@
<nav class="${nav_css_class} main-menu" id="navigation" role="navigation">
<ul 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>
<#if title == "Home">
<li class="hidden">home</li>
<#else>
<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">
<#assign seq = title?split(" ") />
<#if seq?size gt 1 >
<#assign seq_size = seq?size-1 />
<#assign title_next = "">
<#list seq[1..seq_size] as item >
<#assign title_next = title_next + item >
</#list>
<#assign title = "<b>"+seq[0]+"</b>"+'<br class="visible-sm visible-xs"/><span class="title_down">'+title_next+'</span>'>
<#else>
<#assign title = "<b>"+title+"</b>">
</#if>
<span>${title}</span>
</a>
</li>
</#if>
</#list>
</ul>
</nav>
<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"] />

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

@ -1,6 +1,6 @@
<div id="sidebar-wrapper">
<div class="navbar-collapse sidebar-wrapper__page visible-sm visible-xs" id="navbar-collapse-page-public">
<div class="navbar-collapse sidebar-wrapper__page" id="navbar-collapse-page-public">
<ul class="nav navbar-nav page-nav">
<li class="dropdown">
<#assign reserved_menu = theme.getSetting("reserved_menu")>

40
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/templates/navigation.ftl

@ -1,43 +1,3 @@
<nav class="${nav_css_class} main-menu" id="navigation" role="navigation">
<ul 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>
<#if title == "Home">
<li class="hidden">home</li>
<#else>
<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">
<#assign seq = title?split(" ") />
<#if seq?size gt 1 >
<#assign seq_size = seq?size-1 />
<#assign title_next = "">
<#list seq[1..seq_size] as item >
<#assign title_next = title_next + item >
</#list>
<#assign title = "<b>"+seq[0]+"</b>"+'<br class="visible-sm visible-xs"/><span class="title_down">'+title_next+'</span>'>
<#else>
<#assign title = "<b>"+title+"</b>">
</#if>
<span>${title}</span>
</a>
</li>
</#if>
</#list>
</ul>
</nav>
<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"] />

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

@ -1,6 +1,6 @@
<div id="sidebar-wrapper">
<div class="navbar-collapse sidebar-wrapper__page visible-sm visible-xs" id="navbar-collapse-page-public">
<div class="navbar-collapse sidebar-wrapper__page" id="navbar-collapse-page-public">
<ul class="nav navbar-nav page-nav">
<li class="dropdown">
<#assign reserved_menu = theme.getSetting("reserved_menu")>

Caricamento…
Annulla
Salva