1<script>
2jQuery(document).ready(function() {
3 $('#isa-navigation-bar .searchHeader').on('keypress',function(e) {
4 if(e.which == 13) {
5 window.location.href = '${ricercapage.getFriendlyUrl()}?q=' + $('.searchHeader').val();
6 }
7 });
8
9 $('#isa-navigation-bar .dropdown').on('hide.bs.dropdown', function (){
10 $(this).find('img').attr('src',"${menu_img.getData()}");
11 });
12
13 $('#isa-navigation-bar .dropdown').on('show.bs.dropdown', function (){
14 $(this).find('img').attr('src',"${menu_img.menu_img_revert.getData()}");
15 });
16});
17</script>
18<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")>
19<#assign currentLayout = themeDisplay.getLayout() />
20<#assign currentLayoutPlid = currentLayout.getLayoutId() />
21<#assign currentLayoutParentPlid = currentLayout.getParentLayoutId() />
22<#if currentLayoutParentPlid != 0>
23 <#assign layoutParent = layoutLocalService.fetchLayout(groupId, false, currentLayoutParentPlid) />
24 <#assign currentLayoutAncestorPlid = layoutParent.getParentLayoutId() />
25<#else>
26 <#assign currentLayoutAncestorPlid = 0 />
27</#if>
28
29<div class="collapse" id="collapse">
30 <div class="row">
31 <#if link_superiore.getSiblings()?has_content>
32 <#list link_superiore.getSiblings() as cur_label_superiore>
33 <#if cur_label_superiore.link_interno_superiore.getData()?has_content>
34
35 <a class="col-12" href="${cur_label_superiore.link_interno_superiore.getFriendlyUrl()}">
36 <p class="float-right">${cur_label_superiore.getData()}</p>
37 </a>
38
39 <#else>
40
41 <a class="col-12" href="${cur_label_superiore.link_esterno_superiore.getData()}">
42 <p class="float-right">${cur_label_superiore.getData()}</p>
43 </a>
44
45 </#if>
46 </#list>
47 </#if>
48 <#if label_contattaci.link_interno_contattaci.getData()?has_content>
49 <a class="text_black col-12" href="${label_contattaci.link_interno_contattaci.getFriendlyUrl()}">
50 <p class="float-right">${label_contattaci.getData()}</p>
51 </a>
52 <#else>
53 <a class="text_black col-12" href="${label_contattaci.link_esterno_contattaci.getData()}">
54 <p class="float-right">${label_contattaci.getData()}</p>
55 </a>
56 </#if>
57 </div>
58</div>
59<div id="link-container" class="row position-relative">
60 <a class="link-logo-intesa col-5 col-sm-4 col-md-3 col-lg-3 p-md-0" href="${HomePageLink.getData()}">
61 <div id="logo-intesa"></div>
62 </a>
63 <div class="header-center-container">
64 <div class="row justify-content-center header-center-primo-livello">
65 <#if ricercapage.getFriendlyUrl()?? && ricercapage.getFriendlyUrl()?has_content>
66 <input class="searchHeader col-sm-4" type="text" value="Ricerca nel sito" onclick="this.value = ''" name="searchTextField"/>
67 </#if>
68 <div id="header_link_primo_livello" class="navbar-nav-scroll justify-content-center full">
69 <ul class="navbar-nav bd-navbar-nav row">
70 <#if link_superiore.getSiblings()?has_content>
71 <#list link_superiore.getSiblings() as cur_label_superiore>
72 <#if cur_label_superiore.link_interno_superiore.getData()?has_content>
73 <li class="nav-item">
74 <a href="${cur_label_superiore.link_interno_superiore.getFriendlyUrl()}"
75 class="nav-link">
76 ${cur_label_superiore.getData()}
77 </a>
78 </li>
79 <#else>
80 <li class="nav-item">
81 <a href="${cur_label_superiore.link_esterno_superiore.getData()}"
82 class="nav-link">
83 ${cur_label_superiore.getData()}
84 </a>
85 </li>
86 </#if>
87 </#list>
88 </#if>
89 <#if label_contattaci.link_interno_contattaci.getData()?has_content>
90 <li class="nav-item">
91 <a href="${label_contattaci.link_interno_contattaci.getFriendlyUrl()}"
92 class="text_black nav-link">
93 ${label_contattaci.getData()}
94 </a>
95 </li>
96 <#else>
97 <li class="nav-item">
98 <a href="${label_contattaci.link_esterno_contattaci.getData()}"
99 class="text_black nav-link">
100 ${label_contattaci.getData()}
101 </a>
102 </li>
103 </#if>
104 </ul>
105 </div>
106 </div>
107 <div id="header_link_secondo_livello" class="full">
108 <ul class="navbar-nav bd-navbar-nav row justify-content-center">
109 <#if link_inferiore.getSiblings()?has_content>
110 <#list link_inferiore.getSiblings() as cur_label_inferiore>
111 <#if cur_label_inferiore.link_interno_inferiore.getData()?has_content>
112 <#assign layout = layoutLocalService.fetchLayoutByFriendlyURL(groupId, false, cur_label_inferiore.link_interno_inferiore.getFriendlyUrl()?replace("/web/intesa-sanpaolo-assicura-staging", "")?replace("/web/intesa-sanpaolo-assicura", "")) />
113 <#if currentLayoutParentPlid==layout.getLayoutId() || currentLayoutPlid==layout.getLayoutId() || currentLayoutAncestorPlid==layout.getLayoutId()>
114 <li class="nav-item">
115 <a href="${cur_label_inferiore.link_interno_inferiore.getFriendlyUrl()}"
116 class="text_dark_gray nav-link" style="color: #2C9469; <#if cur_label_inferiore?index == 0>padding-left: 0!important;</#if>">
117 ${cur_label_inferiore.getData()}
118 </a>
119 </li>
120 <#else>
121 <li class="nav-item">
122 <a href="${cur_label_inferiore.link_interno_inferiore.getFriendlyUrl()}"
123 class="text_dark_gray nav-link" <#if cur_label_inferiore?index == 0>style="padding-left: 0!important;"</#if>>
124 ${cur_label_inferiore.getData()}
125 </a>
126 </li>
127 </#if>
128 <#else>
129 <li class="nav-item">
130 <a href="${cur_label_inferiore.link_esterno_inferiore.getData()}"
131 class="text_dark_gray nav-link">
132 ${cur_label_inferiore.getData()}
133 </a>
134 </li>
135 </#if>
136 </#list>
137 <#if area_clienti.getData()?has_content>
138 <#if area_clienti.link_interno_clienti.getData()?has_content>
139 <#assign layout = layoutLocalService.fetchLayoutByFriendlyURL(groupId, false, area_clienti.link_interno_clienti.getFriendlyUrl()?replace("/web/intesa-sanpaolo-assicura-staging", "")?replace("/web/intesa-sanpaolo-assicura", "")) />
140 <#if currentLayoutParentPlid==layout.getLayoutId() || currentLayoutPlid==layout.getLayoutId() || currentLayoutAncestorPlid==layout.getLayoutId()>
141 <li class="nav-item">
142 <a href="${area_clienti.link_interno_clienti.getFriendlyUrl()}"
143 class="text_dark_gray nav-link" style="color: #2C9469;">
144 ${area_clienti.getData()}
145 </a>
146 </li>
147 <#else>
148 <li class="nav-item">
149 <a href="${area_clienti.link_interno_clienti.getFriendlyUrl()}"
150 class="text_dark_gray nav-link">
151 ${area_clienti.getData()}
152 </a>
153 </li>
154 </#if>
155 <#else>
156 <li class="nav-item">
157 <a href="${area_clienti.link_esterno_clienti.getData()}"
158 class="text_dark_gray nav-link">
159 ${area_clienti.getData()}
160 </a>
161 </li>
162 </#if>
163 </#if>
164 </#if>
165 </ul>
166 </div>
167 </div>
168 <#if (link_superiore.getSiblings()?size > 1)>
169 <div id="header_menu" class="mobile col-3 col-sm-4">
170 <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapse" aria-expanded="false" aria-controls="collapse">
171 <#if menu_img.menu_img_mobile.getData()?? && menu_img.menu_img_mobile.getData() != "">
172 <img alt="${menu_img.menu_img_mobile.getAttribute("alt")}"
173 data-fileentryid="${menu_img.menu_img_mobile.getAttribute("fileEntryId")}"
174 src="${menu_img.menu_img_mobile.getData()}" />
175 </#if>
176 </button>
177 </div>
178 </#if>
179 <div id="header_menu" class="full">
180 <div class="dropdown">
181 <button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown">
182 <#if menu_img.getData()?has_content>
183 <img alt="${menu_img.getAttribute("alt")}"
184 data-fileentryid="${menu_img.getAttribute("fileEntryId")}"
185 src="${menu_img.getData()}" />
186 </#if>
187
188 </button>
189 <#if menu_img.label_menu.getSiblings()?has_content>
190 <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
191 <#list menu_img.label_menu.getSiblings() as cur_menu>
192 <#if cur_menu.link_interno_menu.getData()?has_content>
193 <a class="dropdown-item" href="${cur_menu.link_interno_menu.getFriendlyUrl()}">
194 ${cur_menu.getData()}</a>
195
196 <#else>
197 <a class="dropdown-item" href="${cur_menu.link_esterno_menu.getData()}">
198 ${cur_menu.getData()} </a>
199
200 </#if>
201 </#list>
202 </div>
203 </#if>
204 </div>
205 </div>
206</div>
207<div class="row block-navbar mobile">
208 <#if area_clienti.getData()?has_content>
209 <button class="col-12 p-0 d-md-none" id="area_clienti_mobile">
210 <#if area_clienti.link_interno_clienti.getData()?has_content>
211 <a href="${area_clienti.link_interno_clienti.getFriendlyUrl()}"
212 class="nav-link rounded">
213 ${area_clienti.getData()}
214 </a>
215 <#else>
216 <a href="${area_clienti.link_esterno_clienti.getData()}"
217 class="nav-link rounded">
218 ${area_clienti.getData()}
219 </a>
220 </#if>
221 </button>
222 </#if>
223 <#if (link_inferiore.getSiblings()?size > 1)>
224 <nav id="header_link_secondo_livello" class="navbar navbar-expand-lg col-xs-6 col-md-6 ">
225 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMenu2" aria-controls="navbarMenu2" aria-expanded="false" aria-label="Toggle navigation">
226 <p>Menu</p>
227 </button>
228 <div class="collapse navbar-collapse" id="navbarMenu2">
229 <div class="navbar-nav">
230 <#if link_inferiore.getSiblings()?has_content>
231 <#list link_inferiore.getSiblings() as cur_label_inferiore>
232 <#if cur_label_inferiore.link_interno_inferiore.getData()?has_content>
233 <a href="${cur_label_inferiore.link_interno_inferiore.getFriendlyUrl()}"
234 class="nav-link">
235 ${cur_label_inferiore.getData()}
236 </a>
237 <#else>
238 <a href="${cur_label_inferiore.link_esterno_inferiore.getData()}"
239 class="nav-link">
240 ${cur_label_inferiore.getData()}
241 </a>
242 </#if>
243 </#list>
244 </#if>
245 </div>
246 </div>
247 </nav>
248 </#if>
249</div>