1<#--
2Web content templates are used to lay out the fields defined in a web
3content structure.
4
5Please use the left panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7-->
8<#assign
9 layoutId = request['theme-display']["plid"]
10 serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()
11 httpServletRequest = serviceContext.getRequest()
12 layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")
13 layoutLong = getterUtil.getLong(layoutId)
14 layout = layoutService.getLayout(layoutLong)
15 stringaNomi = layout.getName(locale)
16 pageURL = stringaNomi?lower_case?replace(" ","-")
17 friendlyURL = layout.getFriendlyURL(locale)
18 dqfu = staticUtil["com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"]
19 rfu = staticUtil["com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil"]
20 assetVocabularyLocalService = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil"]
21 avClass = staticUtil["com.liferay.portal.kernel.util.ClassResolverUtil"].resolveByPortalClassLoader("com.liferay.asset.kernel.model.AssetVocabulary")
22 q0 = dqfu.forClass(avClass)
23 vocIdCriteria = rfu.eq("name", "Topic")
24 vocIdCriteria = rfu.and(vocIdCriteria,rfu.eq("companyId", layout.getCompanyId()))
25 vocIdCriteria = rfu.and(vocIdCriteria,rfu.eq("groupId", getterUtil.getLong(layout.getGroupId())))
26 V0 = q0.add(vocIdCriteria)
27 VocListDQ = assetVocabularyLocalService.dynamicQuery( q0 )
28
29 assetCategoryLocalService = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]
30 acClass = staticUtil["com.liferay.portal.kernel.util.ClassResolverUtil"].resolveByPortalClassLoader("com.liferay.asset.kernel.model.AssetCategory")
31 rfu1 = staticUtil["com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil"]
32
33 actionURL = portletURLFactory.create(httpServletRequest, "1_WAR_miurmulticategoriesnavigator100SNAPSHOT", layoutLong , "ACTION_PHASE")
34 q1 = dqfu.forClass( acClass )
35 catNameCriteria = rfu1.eq("name", "${stringaNomi}")
36 catNameCriteria = rfu1.and(catNameCriteria,rfu1.eq("vocabularyId", VocListDQ[0].vocabularyId))
37 v1 = q1.add(catNameCriteria)
38 CatListDQ = assetCategoryLocalService.dynamicQuery(q1)
39
40 wState = actionURL.setWindowState("normal")
41 pMode = actionURL.setPortletMode("view")
42 moreInfo='Tutti i Comunicati'
43 etabs_num='etabs-two'
44
45/>
46<#if CatListDQ?has_content>
47 <#assign urlCategory = actionURL.setParameter("categoryIds", "${CatListDQ[0].categoryId}")/>
48<#else>
49 <#assign urlCategory = actionURL.setParameter("categoryIds", "${CatListDQ}")/>
50</#if>
51
52
53<#if Tab_Name.getSiblings()?has_content && (Tab_Name.getSiblings()?size -1) == 3>
54 <#assign etabs_num='etabs-three' />
55</#if>
56<#assign
57 css_active = ''
58 tab='tab tab-icon'
59 tab_container_home = ''
60 css_panel_active = ''
61 css_panel_ministro_active = ''
62 count = 0
63/>
64<#assign
65 currentLayout = themeDisplay.getLayout()
66 name = currentLayout.getName(locale)
67/>
68
69
70<div class="tab-container ${tab_container_home}" id="tab-container">
71 <ul class="etabs ${etabs_num}">
72 <#if Tab_Name.getSiblings()?has_content>
73 <#list Tab_Name.getSiblings() as cur_Tab_Name >
74 <#if (count > 2) >
75 <#break>
76 </#if>
77 <#if count == 0 >
78 <#assign
79 css_active = 'active'
80 aria_expanded = 'true'
81 aria_selected = 'true'
82 />
83 </#if>
84 <li class="${tab} ${css_active}" id="${cur_Tab_Name.getData()?lower_case}">
85 <a class="${css_active}" href="#content-${cur_Tab_Name.getData()?lower_case}" aria-expanded="${aria_expanded}" aria-selected="${aria_selected}"
86 aria-label="${cur_Tab_Name.getData()} del Ministro" title="${cur_Tab_Name.getData()} del Ministro">
87 <#if !getterUtil.getBoolean(portlet_il_ministro_.getData())>
88 <#if cur_Tab_Name.getData()?lower_case == 'notizie' >
89 <span class="icon news"></span>
90 <#else>
91 <span class="icon ${cur_Tab_Name.getData()?lower_case}"></span>
92 </#if>
93 </#if>
94 ${cur_Tab_Name.getData()}
95 </a>
96 </li>
97 <#assign
98 count = count +1
99 css_active = ''
100 aria_expanded = 'false'
101 aria_selected = 'false'
102 />
103 </#list>
104 </#if>
105 </ul>
106 <#assign countPanel = 0 />
107 <div class="panel-container">
108 <#list Tab_Name.getSiblings() as cur_Tab_Name >
109 <#if countPanel == 0 >
110 <#assign css_panel_active = 'active' />
111 </#if>
112 <div class="${css_panel_active} content" id="content-${cur_Tab_Name.getData()?lower_case}">
113 <div class="list-data">
114 <ul>
115 <li>
116 <#assign
117 VOID=freeMarkerPortletPreferences.setValue("portletSetupShowBorders", "false")
118 currentPageName=friendlyURL?replace('/','')?replace('-','')
119 />
120 <@liferay_portlet["runtime"]
121 defaultPreferences = "${freeMarkerPortletPreferences}"
122 portletName = "com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_${currentPageName}_${cur_Tab_Name.getData()}"
123 queryString=""
124 />
125 </li>
126 </ul>
127 <#if !getterUtil.getBoolean(portlet_il_ministro_.getData()) >
128 <#if cur_Tab_Name.getData()?lower_case == 'notizie' >
129 <#assign
130 moreInfo = 'Leggi le '+ cur_Tab_Name.getData()?lower_case
131 href = cur_Tab_Name.getData()?replace(" ","-")?lower_case
132 moreURL = actionURL.toString()?replace(friendlyURL, "/news")
133 />
134 </#if>
135 <#if cur_Tab_Name.getData()?lower_case == 'eventi' >
136 <#assign
137 moreInfo = 'Tutti gli '+ cur_Tab_Name.getData()?lower_case
138 href = 'calendario'
139 moreURL = actionURL.toString()?replace(friendlyURL, "/calendario")
140 />
141 </#if>
142 <#if cur_Tab_Name.getData()?lower_case =='servizi' >
143 <#assign
144 moreInfo = 'Tutti i '+ cur_Tab_Name.getData()?lower_case
145 href = 'servizi-dalla-a-alla-z'
146 moreURL = actionURL.toString()?replace(friendlyURL, "/servizi-dalla-a-alla-z")
147 />
148 </#if>
149 <#if cur_Tab_Name.getData()?lower_case == 'normativa' >
150 <#assign
151 moreInfo = 'Leggi le normative'
152 href = cur_Tab_Name.getData()?replace(" ","-")?lower_case
153 moreURL = actionURL.toString()?replace(friendlyURL, "/normativa")
154 />
155 </#if>
156 <hr>
157 <div class="row gutter text-right">
158 <div class="col-sm-12">
159 <a href="${moreURL}" class="read-all margin-right-15">${moreInfo}</a>
160 </div>
161 </div>
162 </#if>
163 </div>
164 </div>
165 <#assign
166 countPanel = 1
167 css_panel_active = ''
168 />
169 </#list>
170 </div>
171</div>
172<script>
173 $(document).ready(function(){
174 $(".tab-container").easytabs({animate:!1,animationSpeed:100,updateHash:!1})
175 if($('.post-title').length > 0) {
176 $('.post-title').detach().insertAfter('.breadcrumbs')
177 }
178 })
179</script>