Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> InfoOrariFieldSet [in template "1315478#1315513#1674222" at line 369, column 26]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #if InfoOrariFieldSet.InfoOrari?? && ... [in template "1315478#1315513#1674222" at line 369, column 21]
----
1<#include "_TEMPLATE_CONTEXT_/1315478/1331017/23609/1656602">
2
3<#assign
4 articleId = .vars['reserved-article-id'].data
5 territorioCategories = getContentVocabularyCategories(articleId, "TERRITORIO", groupId)
6 sliderCategories = []
7 slides = 0
8 hasSlides = false
9 hasGallery = false
10 hasDownloads = false
11 lat = 0
12 lng = 0
13
14 groupedCategories = getNavCircCategories(articleId, groupId)
15/>
16
17<#--
18 Mapping Vimeo -> Bunny Stream.
19 Per aggiungere un video: "ID_VIMEO": "LIBRARY_ID/VIDEO_ID"
20-->
21<#assign vimeoBunnyMapping = {
22 "672700517": "785963/dad9de1f-df1d-4a44-82e2-cf99e56a2111",
23 "1188097108": "785963/42e7079a-f289-421e-9d94-4b37af2b3aa7",
24 "672696883": "785963/df1c9789-f991-4fd6-b205-cd4598be3a24",
25 "651979614": "785963/3ce413ed-b9ff-4e95-a621-f1305d193f17",
26 "651980826": "785963/98b69096-3a94-456b-a9db-04110a9c9f2c",
27 "651978716": "785963/cb27804f-a8b9-4e5d-ad7e-c791675052ad",
28 "651978337": "785963/9efbe957-29f3-4f08-92cb-64c17664eb0d",
29 "651980015": "785963/74bb2cf3-3f82-41c3-96f8-79dcf2e94921",
30 "651981172": "785963/6b3e755b-76d5-442d-99ae-2245fc9e9f19",
31 "651983042": "785963/276001b6-5db0-4dcd-bfa8-77f779622702",
32 "651979166": "785963/8432cc7f-75f2-4f82-81db-147ae2bcae8f",
33 "651980464": "785963/4ea10853-388b-45ac-80d2-b3f90c41729e",
34 "651981586": "785963/c8f02b62-ad38-4dac-8e51-bdb13b0ba3d5",
35 "686771435": "785963/beb1b8e9-37c0-47e4-b654-64aa345f2e80",
36 "672695968": "785963/c7140c71-0647-4f02-a9c2-82f9261f2a74",
37 "672696408": "785963/a4cbae59-6956-482a-9a72-398e14423620",
38 "672697802": "785963/4aa8e0ab-df12-490f-9407-140155c1c858",
39 "672698233": "785963/efc37b03-ccf9-4dc2-b207-ba32fd74ad6e",
40 "672697289": "785963/0caf3e22-7ced-4309-af3c-cfd2b7eed9ac",
41 "1188108772": "785963/af6e63df-70fa-4df0-9047-79ab447b069d",
42 "1189807283": "785963/4e46a605-8efa-48d9-94aa-b9d2d492e7f8",
43 "1188113469": "785963/f4db880d-8e64-4704-bfca-5ad7db64aaa5",
44 "868210912": "785963/d673eee7-cf52-4ef6-8501-da6b9d17ba94",
45 "651982035": "785963/dc05a3ad-7461-4052-9e28-71e96ce2d68c",
46 "672698670": "785963/cf6f3d63-5106-4cc7-b095-5f503c297cfd",
47 "672699123": "785963/c469cae3-a0bd-4084-81f8-48cfc1f79803",
48 "687039327": "785963/6ea2cbed-e487-419e-ba71-ce738356d79e",
49 "708630472": "785963/416976a0-f02f-4b66-8661-278baa851a0c",
50 "764059265": "785963/b38a0c29-a2c3-4b0e-a004-35bc7b2d2c76",
51 "777269946": "785963/dad127a3-00c8-43d2-8598-d4b907fdf054",
52 "651982697": "785963/b2aafab6-d2ba-4659-a2cb-7c429de104cf",
53 "767802331": "785963/36dfc17c-7449-436e-be8e-230b276aee94"
54} />
55
56
57<#if (tourismItem.title.getData())??>
58 <#assign z=portalUtil.setPageTitle(tourismItem.title.getData(),request)>
59</#if>
60
61<#function getBunnyReferenceFromVimeoId vimeoId>
62 <#return vimeoBunnyMapping[vimeoId]!"" />
63</#function>
64
65<#function getBunnyEmbedUrl rawUrl>
66 <#local url = (rawUrl!"")?trim />
67
68 <#if url?contains("player.vimeo.com/") || url?starts_with("videos/") || url?starts_with("/videos/")>
69 <#local vimeoId = url?replace("^.*/?videos?/", "", "r")?keep_before("?")?keep_before("/") />
70 <#local bunnyReference = getBunnyReferenceFromVimeoId(vimeoId) />
71
72 <#-- Se non esiste ancora un mapping, mantiene il vecchio URL Vimeo. -->
73 <#if bunnyReference?has_content>
74 <#local url = bunnyReference />
75 <#else>
76 <#return url />
77 </#if>
78 </#if>
79
80 <#if url?starts_with("https://player.mediadelivery.net/play/")>
81 <#local url = url?replace("https://player.mediadelivery.net/play/", "https://player.mediadelivery.net/embed/") />
82 <#elseif !url?starts_with("https://player.mediadelivery.net/embed/")>
83 <#local parts = url?split("/") />
84 <#if parts?size == 2 && parts[0]?has_content && parts[1]?has_content>
85 <#local url = "https://player.mediadelivery.net/embed/" + parts[0] + "/" + parts[1] />
86 </#if>
87 </#if>
88
89 <#if url?starts_with("https://player.mediadelivery.net/embed/") && !url?contains("?")>
90 <#local url = url + "?autoplay=false&preload=false" />
91 </#if>
92
93 <#return url />
94</#function>
95
96<#-- MASONRY -->
97<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script>
98
99<#list territorioCategories as tCat>
100 <#if tCat.parentCategoryId != 0>
101 <#assign sliderCategories += [tCat.name]>
102 </#if>
103</#list>
104
105<#if tourismItem.geoRef.getData()?has_content>
106 <#assign
107 geoObj = createObject(tourismItem.geoRef.getData())
108 lat = geoObj.getDouble("latitude")
109 lng = geoObj.getDouble("longitude")
110 />
111</#if>
112
113<#if tourismItem.coordinateTestuali.getData()?has_content>
114 <#assign
115 lat = tourismItem.coordinateTestuali.getData()?keep_before(",")?number
116 lng = tourismItem.coordinateTestuali.getData()?keep_after(",")?number
117 />
118</#if>
119
120<#if tourismItem.slideHeader?? && tourismItem.slideHeader.getSiblings()?has_content>
121 <#list tourismItem.slideHeader.getSiblings() as slide>
122 <#if slide.getData()?has_content>
123 <#assign
124 hasSlides = true
125 slides = tourismItem.slideHeader.getSiblings()?size
126 />
127 <#break>
128 </#if>
129 </#list>
130</#if>
131
132<#if tourismItem.ImmagineGallery?? && tourismItem.ImmagineGallery.getSiblings()?has_content>
133 <#list tourismItem.ImmagineGallery.getSiblings() as item>
134 <#if item.getData()?has_content>
135 <#assign hasGallery = true>
136 <#break>
137 </#if>
138 </#list>
139</#if>
140
141<#if tourismItem.downloadsFieldSet.downloadsFieldSetFieldSet?? && tourismItem.downloadsFieldSet.downloadsFieldSetFieldSet.getSiblings()?has_content>
142 <#list tourismItem.downloadsFieldSet.downloadsFieldSetFieldSet.getSiblings() as item>
143 <#if item.downloadUrl.getData()?has_content>
144 <#assign hasDownloads = true>
145 <#break>
146 </#if>
147 </#list>
148</#if>
149
150<!-- Modello punto di interesse -->
151
152<div id="${portletNamespace}" v-cloak>
153
154 <#if themeDisplay.getLayout().getAncestors()?has_content>
155 <section id="breadcrumb" class="mt-4">
156 <div class="container-fluid custom-container d-flex align-items-center">
157 <ol class="breadcrumb tw-space-x-2">
158 <li class="breadcrumb-item">
159 <a href="/" class="breadcrumb-link" title="Home">
160 <span class="breadcrumb-text-truncate tw:text-dark tw:uppercase">Home</span>
161 </a>
162 </li>
163
164 <#list themeDisplay.getLayout().getAncestors()?reverse as ancestor>
165 <li class="breadcrumb-item">
166 <a href="${ancestor.getFriendlyURL()}" class="breadcrumb-link" title="${escape(ancestor.getHTMLTitle(themeDisplay.getLocale()))}">
167 <span class="breadcrumb-text-truncate tw:text-dark tw:uppercase">${escape(ancestor.getHTMLTitle(themeDisplay.getLocale()))}</span>
168 </a>
169 </li>
170 </#list>
171
172 <li class="breadcrumb-item active">
173 <span class="tw:text-green tw:uppercase" title="${tourismItem.title.getData()?js_string}">
174 ${tourismItem.title.getData()}
175 </span>
176 </li>
177 </ol>
178
179 <div class="d-flex align-items-center ml-auto">
180 <button type="button" @click="isFavorite(item.id) ? removeFavorite(item) : setFavorite(item);" class="btn btn-link tw:no-underline" :title="isFavorite(item.id) ? `${getLabel('rimuovi_preferiti', groupId)}` : `${getLabel('aggiungi_preferiti', groupId)}`">
181 <i :class="(isFavorite(item.id) ? 'fas' : 'fal') + ' fa-heart fa-2x tw:text-green'"></i>
182 </button>
183
184 <div class="btn dropdown tw:px-0">
185 <button type="button" class="btn btn-link dropdown-toggle tw:no-underline tw:text-green" data-toggle="dropdown">
186 <i class="fas fa-share-alt fa-2x"></i>
187 </button>
188 <div class="dropdown-menu dropdown-menu-center">
189 <button type="button" @click="customShare('facebook', item.contentJSON.title, item.contentJSON.description, item.contentJSON.previewPicture)" class="dropdown-item tw:space-x-2">
190 <i class="fab fa-facebook-f fa-lg tw:text-green"></i>
191 <span class="tw:text-dark">
192 Facebook
193 </span>
194 </button>
195
196 <button type="button" @click="customShare('twitter', item.contentJSON.title, item.contentJSON.description, item.contentJSON.previewPicture)" class="dropdown-item tw:space-x-2">
197 <i class="fab fa-twitter fa-lg tw:text-green"></i>
198 <span class="tw:text-dark">
199 Twitter
200 </span>
201 </button>
202
203 <button type="button" @click="customShare('pinterest', item.contentJSON.title, item.contentJSON.description, item.contentJSON.previewPicture)" class="dropdown-item tw:space-x-2">
204 <i class="fab fa-pinterest fa-lg tw:text-green"></i>
205 <span class="tw:text-dark">
206 Pinterest
207 </span>
208 </button>
209
210 <button type="button" @click="customShare('whatsapp', item.contentJSON.title, item.contentJSON.description, item.contentJSON.previewPicture)" class="dropdown-item tw:space-x-2">
211 <i class="fab fa-whatsapp fa-lg tw:text-green"></i>
212 <span class="tw:text-dark">
213 WhatsApp
214 </span>
215 </button>
216
217 <button type="button" @click="customShare('telegram', item.contentJSON.title, item.contentJSON.description, item.contentJSON.previewPicture)" class="dropdown-item tw:space-x-2">
218 <i class="fab fa-telegram fa-lg tw:text-green"></i>
219 <span class="tw:text-dark">
220 Telegram
221 </span>
222 </button>
223
224 <button type="button" @click="customShare('print', item.contentJSON.title, item.contentJSON.description, item.contentJSON.previewPicture)" class="dropdown-item tw:space-x-2">
225 <i class="fas fa-print fa-lg tw:text-green"></i>
226 <span class="tw:text-dark">
227 Print
228 </span>
229 </button>
230
231 <a :href="'mailto:inserisci indirizzo email?subject=' + item.contentJSON.title + '&body=${currentUrl} ' + item.contentJSON.description" class="dropdown-item tw:space-x-2">
232 <i class="fas fa-envelope fa-lg tw:text-green"></i>
233 <span class="tw:text-dark">
234 Email
235 </span>
236 </a>
237
238 <button type="button" @click="customShare('link', item.contentJSON.title, item.contentJSON.description, item.contentJSON.previewPicture)" class="dropdown-item tw:space-x-2">
239 <i class="fas fa-link fa-lg tw:text-green"></i>
240 <span class="tw:text-dark">
241 Link
242 </span>
243 </button>
244 </div>
245 </div>
246 </div>
247 </div>
248 </section>
249 </#if>
250
251 <section id="slideshow" class="container-fluid custom-container">
252 <div class="swiper-container">
253 <div class="swiper-wrapper">
254 <#if hasSlides>
255 <#list tourismItem.slideHeader.getSiblings() as slide>
256 <div class="swiper-slide">
257 <img data-src="${getPrefix(slide.getData(), 1920, 730)}" loading="lazy" class="lazyload tw:object-cover" alt="${slide.getAttribute('alt')}"/>
258 <div class="card-img-overlay tw:bg-dark tw:bg-opacity-40"></div>
259
260 <div class="carousel-caption tw:flex tw:text-left tw:transform lg:tw:top-2/4 lg:tw:-translate-y-2/4">
261 <#if tourismItem.testoHeader?? && tourismItem.testoHeader.getData()?has_content>
262 <#assign locationClass = "tw:my-auto">
263 <#else>
264 <#assign locationClass = "tw:mt-auto tw:mb-20">
265 </#if>
266
267 <div class="tw:flex tw:flex-col ${locationClass}">
268 <div class="hcm-bg-capable tw:text-white tw:font-heading tw:uppercase tw:text-2xl tw:mr-auto tw:p-4 tw:rounded-md lg:tw:text-4xl">
269 <#if tourismItem.testoHeader?? && tourismItem.testoHeader.getData()?has_content>
270 <p>${tourismItem.testoHeader.getData()}</p>
271 <div class="dropdown-divider tw:border-green tw:border-t-3 tw:w-3/5 tw:mt-5 tw:mr-auto lg:tw:w-1/5 lg:tw:mt-10"></div>
272 </#if>
273 </div>
274 <#if sliderCategories?has_content>
275 <div class="tw:flex tw:mt-7">
276 <i class="fas fa-map-marker-alt fa-2x tw:text-white"></i>
277 <p class="tw:text-white tw:uppercase tw:font-heading tw:font-medium tw:my-auto tw:ml-3">
278 ${sliderCategories?join(", ")}
279 </p>
280 </div>
281 </#if>
282 </div>
283 </div>
284 </div>
285 </#list>
286 <#else>
287 <div class="swiper-slide">
288 <img data-src="https://via.placeholder.com/1920x730" loading="lazy" class="lazyload tw:object-cover tw:h-full tw:w-full" alt=""/>
289 <div class="card-img-overlay tw:bg-dark tw:bg-opacity-40"></div>
290
291 <div class="carousel-caption tw:flex tw:text-left tw:transform lg:tw:top-2/4 lg:tw:-translate-y-2/4">
292 <#if tourismItem.testoHeader?? && tourismItem.testoHeader.getData()?has_content>
293 <#assign locationClass = "tw:my-auto">
294 <#else>
295 <#assign locationClass = "tw:mt-auto tw:mb-20">
296 </#if>
297
298 <div class="tw:flex tw:flex-col ${locationClass}">
299 <div class="hcm-bg-capable tw:text-white tw:font-heading tw:uppercase tw:text-2xl tw:mr-auto tw:p-4 tw:rounded-md lg:tw:text-4xl">
300 <#if tourismItem.testoHeader?? && tourismItem.testoHeader.getData()?has_content>
301 <p>${tourismItem.testoHeader.getData()}</p>
302 <div class="dropdown-divider tw:border-green tw:border-t-3 tw:w-3/5 tw:mt-5 tw:mr-auto lg:tw:w-1/5 lg:tw:mt-10"></div>
303 </#if>
304 </div>
305
306 <#if territorioCategories?has_content>
307 <div class="tw:flex tw:mt-7">
308 <i class="fas fa-map-marker-alt fa-2x tw:text-white"></i>
309 <p class="tw:text-white tw:uppercase tw:font-heading tw:font-medium tw:my-auto tw:ml-3">
310 <#list territorioCategories as cat>
311 <#if cat.parentCategoryId != 0>
312 ${cat.name}
313
314 <#if cat?has_next>,</#if>
315 </#if>
316 </#list>
317 </p>
318 </div>
319 </#if>
320 </div>
321 </div>
322 </div>
323 </#if>
324 </div>
325 </div>
326 </section>
327
328 <section id="intro-description-image">
329 <div class="d-flex container-fluid custom-container">
330 <div class="tw:flex tw:mt-9 lg:tw:hidden">
331 <button type="button" @click="isFavorite(item.id) ? removeFavorite(item) : setFavorite(item);" class="btn btn-link tw:no-underline" :title="isFavorite(item.id) ? `${getLabel('rimuovi_preferiti', groupId)}` : `${getLabel('aggiungi_preferiti', groupId)}`">
332 <i :class="(isFavorite(item.id) ? 'fas' : 'fal') + ' fa-heart fa-lg tw:text-green'"></i>
333 </button>
334 <button type="button" @click="share(item.contentJSON.title, item.contentJSON.description)" class="btn btn-link tw:no-underline">
335 <i class="fas fa-share-alt fa-lg tw:text-green"></i>
336 </button>
337 </div>
338 </div>
339
340 <#if tourismItem.icona_pagina?? && tourismItem.icona_pagina.getData()?has_content>
341 <div class="d-none flex-justify-end mt-4">
342 <div class="pr-3 pb-3">
343 <div class="sticker sticker-circle sticker-lg">
344 <i class="${tourismItem.icona_pagina.getData()} fa-lg tw:text-dark"></i>
345 </div>
346 </div>
347 </div>
348 </#if>
349
350 <div class="d-flex container-fluid custom-container">
351 <div class="row mt-4 w-100">
352 <div class="col-12 col-lg-7">
353 <div>
354 <#if tourismItem.title?? && tourismItem.title.getData()?has_content>
355 <h1 class="mb-3">${tourismItem.title.getData()}</h1>
356 </#if>
357
358 <#if tourismItem.subTitle?? && tourismItem.subTitle.getData()?has_content>
359 <h3>${tourismItem.subTitle.getData()}</h3>
360 </#if>
361 </div>
362
363 <#if tourismItem.introDescription?? && tourismItem.introDescription.getData()?has_content>
364 <div class="text-dark mt-4">
365 ${tourismItem.introDescription.getData()}
366 </div>
367 </#if>
368
369 <#if InfoOrariFieldSet.InfoOrari?? && InfoOrariFieldSet.InfoOrari.getData()?has_content>
370 <div class="text-dark mt-4">
371 <span style="text-transform: uppercase;">${getLabel('orari')}</span><br/>
372 ${InfoOrariFieldSet.InfoOrari.getData()}
373 <#if InfoOrariFieldSet.InfoOrari.hideExtraInfo??>
374 <#if InfoOrariFieldSet.InfoOrari.hideExtraInfo.getData() != "true">
375 <i>${getLabel('nota-extra-info-orari')}</i>
376 </#if>
377 <#else>
378 <i>${getLabel('nota-extra-info-orari')}</i>
379 </#if>
380 </div>
381 </#if>
382
383
384
385 <@contatti/>
386
387 </div>
388
389 <div class="col-12 col-lg-5">
390 <div id="suggesto-map" class="map-image map-styled tw:z-10 tw:mt-10" style="height: 350px;"></div>
391 </div>
392 </div>
393 </div>
394 </section>
395
396
397 <#-- MASONRY GALLERY -->
398 <#if hasGallery>
399 <section id="gallery" class="mt-4">
400 <div class="container-fluid custom-container">
401 <div class="gallery-grid grid">
402 <#list tourismItem.ImmagineGallery.getSiblings() as pic>
403 <div class="grid-item">
404 <a href="javascript:void(0);" data-toggle="modal" data-target="#lightbox-modal" data-slider="${pic?index}">
405 <img src="${getKitPrefix(pic.getData(), 'tr:w-900,fo-center')}" alt="${pic.getAttribute('alt')!''}" />
406 </a>
407 </div>
408 </#list>
409 </div>
410 </div>
411
412 <div id="lightbox-modal" tabindex="-1" role="dialog" class="modal fade">
413 <div class="modal-dialog modal-full-screen tw:inset-0 tw:border-none tw:shadow-none">
414 <div class="modal-content tw:bg-transparent">
415 <div class="modal-body tw:overflow-hidden">
416 <div class="tw:absolute tw:top-0 tw:right-0 tw:z-5">
417 <button type="button" data-dismiss="modal" class="btn btn-monospaced btn-secondary m-3">
418 <i class="fal fa-times fa-lg"></i>
419 </button>
420 </div>
421
422 <#-- lightbox -->
423 <div id="lightbox-swiper" class="swiper-container h-75 my-auto">
424 <div class="swiper-button-prev tw:w-12 tw:h-12">
425 <span class="sticker sticker-circle hcm-bg-capable tw:bg-green tw:w-full tw:h-full">
426 <span class="sticker-overlay">
427 <i class="fas fa-chevron-left fa-2x tw:text-white"></i>
428 </span>
429 </span>
430 </div>
431
432 <div class="swiper-button-next tw:w-12 tw:h-12">
433 <span class="sticker sticker-circle hcm-bg-capable tw:bg-green tw:w-full tw:h-full">
434 <span class="sticker-overlay">
435 <i class="fas fa-chevron-right fa-2x tw:text-white"></i>
436 </span>
437 </span>
438 </div>
439
440 <div class="swiper-wrapper tw:h-full">
441 <#list tourismItem.ImmagineGallery.getSiblings() as pic>
442 <div class="swiper-slide tw:h-full">
443 <img data-src="${getPrefix(pic.getData(), 1920, '')}" loading="lazy" class="lazyload tw:h-full tw:object-contain tw:mx-auto" alt="${pic.getAttribute('alt')!''}">
444 </div>
445 </#list>
446 </div>
447 </div>
448
449 <#-- thumbnails -->
450 <div id="thumbnail-swiper" class="swiper-container" thumbsSlider="">
451 <div class="swiper-wrapper">
452 <#list tourismItem.ImmagineGallery.getSiblings() as pic>
453 <div class="swiper-slide">
454 <img data-src="${getPrefix(pic.getData(), 300, '')}" loading="lazy" class="lazyload tw:object-cover tw:cursor-pointer tw:h-full tw:w-full" alt="${pic.getAttribute('alt')!''}">
455 </div>
456 </#list>
457 </div>
458 </div>
459 </div>
460 </div>
461 </div>
462 </div>
463 </section>
464 </#if>
465
466 <#if tourismItem.descriptionFieldSet.description?? && tourismItem.descriptionFieldSet.description.getData()?has_content>
467 <section id="description" class="mt-5">
468 <div class="container-fluid custom-container">
469 <p class="tw:inline tw:text-dark tw:font-heading tw:font-extrabold tw:text-2xl tw:uppercase lg:tw:text-4xl">${getLabel('scopri-di-piu-parte1')}</p>
470 <p class="tw:inline tw:text-dark tw:font-heading tw:font-light tw:text-2xl tw:uppercase lg:tw:text-4xl">${getLabel('scopri-di-piu-parte2')}</p>
471 <div class="text-dark mt-5">
472 ${tourismItem.descriptionFieldSet.description.getData()}
473 </div>
474 </div>
475 </section>
476 </#if>
477
478 <#if AudioBlock.CodiceEmbedAudioAltro?? && AudioBlock.CodiceEmbedAudioAltro.data?has_content>
479 <section id="embeds" class="mt-20">
480 <div class="d-flex container-fluid custom-container">
481 <div class="row">
482 <#list AudioBlock.getSiblings() as embed>
483 <div class="col-12 col-lg-6 m-auto">
484 <div class="card">
485 <div class="embed-responsive embed-responsive-16by9 tw:rounded-md">
486 ${htmlUtil.unescape(embed.CodiceEmbedAudioAltro.getData())}
487 </div>
488 <#if (embed.AudioFields.titoloEmbedAudio?? && embed.AudioFields.titoloEmbedAudio.getData()?has_content) || (embed.AudioFields.descrizioneEmbedAudio?? && embed.AudioFields.descrizioneEmbedAudio.getData()?has_content)>
489 <div class="card-body tw:px-0">
490 <#if embed.AudioFields.titoloEmbedAudio?? && embed.AudioFields.titoloEmbedAudio.getData()?has_content >
491 <p class="tw:text-dark tw:uppercase tw:font-heading tw:font-bold tw:text-xl lg:tw:text-2xl mb-4">${embed.AudioFields.titoloEmbedAudio.getData()}</p>
492 </#if>
493 <#if embed.AudioFields.descrizioneEmbedAudio?? && embed.AudioFields.descrizioneEmbedAudio.getData()?has_content>
494 <p class="tw:text-dark tw:font-light">${embed.AudioFields.descrizioneEmbedAudio.getData()}</p>
495 </#if>
496 </div>
497 </#if>
498 </div>
499 </div>
500 </#list>
501 </div>
502 </div>
503 </section>
504 </#if>
505
506 <#if VideoBlock.embed_video?? && VideoBlock.embed_video.data?has_content>
507 <section id="videos" class="mt-5">
508 <div class="d-flex container-fluid custom-container">
509 <div class="row w-100">
510 <#list VideoBlock.getSiblings() as video>
511 <div class="col-12 col-lg-6 offset-lg-2">
512 <div class="card">
513 <div class="embed-responsive embed-responsive-16by9">
514 <iframe class="embed-responsive-item" src="${getBunnyEmbedUrl(video.embed_video.getData())}" loading="lazy" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
515 </div>
516 <#if (video.VideoFields.titoloEmbedVideo?? && video.VideoFields.titoloEmbedVideo.getData()?has_content) || (video.VideoFields.descrizioneEmbedVideo?? && video.VideoFields.descrizioneEmbedVideo.getData()?has_content)>
517 <div class="card-body py-3 px-0">
518 <#if video.VideoFields.titoloEmbedVideo?? && video.VideoFields.titoloEmbedVideo.getData()?has_content >
519 <p class="vid-title">${video.VideoFields.titoloEmbedVideo.getData()}</p>
520 </#if>
521 <#if video.VideoFields.descrizioneEmbedVideo?? && video.VideoFields.descrizioneEmbedVideo.getData()?has_content>
522 <p class="vid-desc">${video.VideoFields.titoloEmbedVideo.getData()}</p>
523 </#if>
524 </div>
525 </#if>
526 </div>
527 </div>
528 </#list>
529 </div>
530 </div>
531 </section>
532 </#if>
533
534 <#if hasDownloads>
535 <section id="downloads">
536 <div class="d-flex container-fluid custom-container mt-20">
537 <div class="sheet tw-bg-light tw:space-y-4 p-3">
538 <#list tourismItem.downloadsFieldSet.downloadsFieldSetFieldSet.getSiblings() as item>
539 <#-- #assign doc = getFileFromUuid(createObject(item.downloadUrl.data).uuid, groupId) -->
540
541 <div class="card tw:bg-transparent tw:border-0 tw:shadow-none">
542 <div class="card-row">
543 <div class="autofit-col">
544 <div class="autofit-section">
545 <i class="fal fa-file-pdf fa-lg tw:text-dark"></i>
546 </div>
547 </div>
548 <div class="autofit-col autofit-col-expand autofit-col-gutters">
549 <div class="autofit-section">
550 <a href="${item.downloadUrl.getData()}" class="tw:text-dark tw:font-bold" download>
551 <#-- ${doc.fileName} -->
552 ${item.downloadText.getData()}
553
554 <span class="tw:font-light muted tw:ml-2">(${getLabel('scarica_qui')})</span>
555 </a>
556 </div>
557 </div>
558 </div>
559 </div>
560 </#list>
561 </div>
562 </div>
563 </section>
564 </#if>
565
566
567 <#macro contatti>
568 <#assign
569 contactNameSz=""
570 street_number1Sz=""
571 localitaSz=""
572 comuneSz=""
573 countrySz=""
574 zipCodeSz=""
575 telSz=""
576 emailSz=""
577 email2Sz=""
578 webSiteSz=""
579 facebookSz=""
580 instagramSz=""
581 thereAreContcats="false"
582 />
583 <#if tourismItem.contactFields.singleContact.contactName?? && tourismItem.contactFields.singleContact.contactName.getData()?has_content>
584 <#assign contactNameSz=tourismItem.contactFields.singleContact.contactName.getData()>
585 <#assign thereAreContcats="true">
586 </#if>
587 <#if tourismItem.contactFields.singleContact.street_number1?? && tourismItem.contactFields.singleContact.street_number1.getData()?has_content>
588 <#assign street_number1Sz=tourismItem.contactFields.singleContact.street_number1.getData()>
589 <#assign thereAreContcats="true">
590 </#if>
591 <#if tourismItem.contactFields.singleContact.localita?? && tourismItem.contactFields.singleContact.localita.getData()?has_content>
592 <#assign localitaSz=tourismItem.contactFields.singleContact.localita.getData()>
593 <#assign thereAreContcats="true">
594 </#if>
595 <#if tourismItem.contactFields.singleContact.comune?? && tourismItem.contactFields.singleContact.comune.getData()?has_content>
596 <#assign comuneSz=tourismItem.contactFields.singleContact.comune.getData()>
597 <#assign thereAreContcats="true">
598 </#if>
599 <#if tourismItem.contactFields.singleContact.country?? && tourismItem.contactFields.singleContact.country.getData()?has_content>
600 <#assign countrySz=tourismItem.contactFields.singleContact.country.getData()>
601 <#assign thereAreContcats="true">
602 </#if>
603 <#if tourismItem.contactFields.singleContact.zipCode?? && tourismItem.contactFields.singleContact.zipCode.getData()?has_content>
604 <#assign zipCodeSz=tourismItem.contactFields.singleContact.zipCode.getData()>
605 <#assign thereAreContcats="true">
606 </#if>
607 <#if tourismItem.contactFields.singleContact.tel?? && tourismItem.contactFields.singleContact.tel.getSiblings()?has_content>
608 <#assign telSz=tourismItem.contactFields.singleContact.tel.getSiblings()>
609 <#assign thereAreContcats="true">
610 </#if>
611 <#if tourismItem.contactFields.singleContact.email?? && tourismItem.contactFields.singleContact.email.getData()?has_content>
612 <#assign emailSz=tourismItem.contactFields.singleContact.email.getData()>
613 <#assign thereAreContcats="true">
614 </#if>
615 <#if tourismItem.contactFields.singleContact.email2?? && tourismItem.contactFields.singleContact.email2.getData()?has_content>
616 <#assign email2Sz=tourismItem.contactFields.singleContact.email2.getData()>
617 <#assign thereAreContcats="true">
618 </#if>
619 <#if tourismItem.contactFields.singleContact.webSite?? && tourismItem.contactFields.singleContact.webSite.getData()?has_content>
620 <#assign webSiteSz=tourismItem.contactFields.singleContact.webSite.getData()>
621 <#assign thereAreContcats="true">
622 </#if>
623 <#if tourismItem.contactFields.singleContact.facebook?? && tourismItem.contactFields.singleContact.facebook.getData()?has_content>
624 <#assign facebookSz=tourismItem.contactFields.singleContact.facebook.getData()>
625 <#assign thereAreContcats="true">
626 </#if>
627 <#if tourismItem.contactFields.singleContact.instagram?? && tourismItem.contactFields.singleContact.instagram.getData()?has_content>
628 <#assign instagramSz=tourismItem.contactFields.singleContact.instagram.getData()>
629 <#assign thereAreContcats="true">
630 </#if>
631
632 <#assign acapo="false">
633 <#if thereAreContcats == "true">
634 <div class="text-dark mt-4">
635 <#if contactNameSz != "">
636 ${contactNameSz}
637 <#assign acapo="true">
638 </#if>
639 <#if street_number1Sz != "">
640 <#if acapo == "true"><br/></#if>
641 ${street_number1Sz}
642 <#assign acapo="true">
643 </#if>
644 <#if localitaSz != "">
645 <#if acapo == "true"><br/></#if>
646 ${localitaSz}
647 <#assign acapo="true">
648 </#if>
649
650 <#if zipCodeSz != "" || comuneSz != "" || countrySz != "">
651 <#if acapo == "true"><br/></#if>
652 ${zipCodeSz} ${comuneSz} ${countrySz}
653 <#assign acapo="true">
654 </#if>
655
656 <#if telSz?has_content>
657 <#assign telExists = false>
658
659 <#list telSz as tel>
660 <#if tel.getData()?has_content>
661 <#assign telExists = true>
662 <#break>
663 </#if>
664 </#list>
665
666 <#if telExists>
667 <#if acapo == "true"><br/></#if>
668
669 <div class="card-row tw:space-x-2">
670 <div class="autofit-col mb-auto">
671 <div class="autofit-section">
672 <p class="tw:text-dark tw:text-base mb-0">${getLabel('tel')}:</p>
673 </div>
674 </div>
675 <div class="autofit-col autofit-col-expand">
676 <div class="autofit-section">
677 <#list telSz as tel>
678 <p class="tw:text-dark tw:text-base mb-0">${tel.getData()}</p>
679 </#list>
680 </div>
681 </div>
682 </div>
683
684 <#assign acapo="true">
685 </#if>
686 </#if>
687 <#if emailSz != "">
688 <#if acapo == "true"><br/></#if>
689 ${getLabel('email')}: <a href="mailto:${emailSz}" >${emailSz}</a>
690 <#if email2Sz != "">
691 <a href="mailto:${email2Sz}" style="margin-left: 20px;">${email2Sz}</a>
692 </#if>
693 <#assign acapo="true">
694 </#if>
695
696
697 <#if webSiteSz != "" || facebookSz != "" || instagramSz != "">
698 <#if acapo == "true"><br/></#if>
699 <#if webSiteSz != "">
700 <a href="${webSiteSz}" title="${webSiteSz}" alt="${webSiteSz}" target="_blank">${getLabel('sito-web')}</a>
701 </#if>
702 <#if facebookSz != "">
703 <a href="${facebookSz}" title="${facebookSz}" alt="${facebookSz}" target="_blank"><i class="fab fa-facebook-f" style="margin-left: 20px;"></i></a>
704 </#if>
705 <#if instagramSz != "">
706 <a href="${instagramSz}" title="${instagramSz}" alt="${instagramSz}" target="_blank"><i class="fab fa-instagram" style="margin-left: 20px;"></i></a>
707 </#if>
708
709 </#if>
710
711 </div>
712 </#if>
713 </#macro>
714</div>
715
716<script src="https://s3-eu-west-1.amazonaws.com/mkspresstage.suggesto.eu/components/securityV2.js"></script>
717
718<script src="https://s3-eu-west-1.amazonaws.com/mkspresstage.suggesto.eu/components/initVueApp.js"></script>
719<script src="https://s3-eu-west-1.amazonaws.com/mkspresstage.suggesto.eu/mixins/js/favorites.js"></script>
720<script src="https://s3-eu-west-1.amazonaws.com/mkspresstage.suggesto.eu/mixins/js/share.js"></script>
721
722<script>
723 var ${portletNamespace}_custom_hook = {
724 data: {
725 title: "${tourismItem.title.getData()?js_string}",
726 item: {
727 id: "${articleId}",
728 contentJSON: {
729 title: "${tourismItem.title.getData()?js_string}",
730 description: "${tourismItem.introDescription.getData()?js_string}",
731 geoRef: '${tourismItem.geoRef.getData()}',
732 previewPicture: "${tourismItem.previewPicture.getData()}",
733 viewUrl: window.location.href
734 }
735 },
736 loading: true,
737 coords: {
738 lat: "${lat}",
739 lng: "${lng}"
740 },
741 regionLat: "44.3921388",
742 regionLng: "7.5211695",
743 slider: null,
744 gallery: null,
745 thumbnails: null,
746 lightbox: null,
747 map: null
748 },
749 mounted(){
750 var that = this;
751
752 if(this.coords.lat != 0 && this.coords.lng != 0){
753 this.createMap();
754 }
755
756 if(${hasSlides?c}){
757 this.initSlider();
758 }
759
760 if(${hasGallery?c}){
761 this.initGallery();
762
763 $("#lightbox-modal").on("shown.bs.modal", function(e){
764 that.lightbox.update();
765 that.thumbnails.update();
766 that.lightbox.slideTo($(e.relatedTarget).data("slider"));
767 that.lightbox.update();
768 });
769
770 $("#lightbox-modal .swiper-wrapper").on("click", function(e){
771 if($(e.target).attr("class").includes("swiper-slide")){
772 $("#lightbox-modal").modal("hide");
773 }
774 });
775 }
776
777 this.loading = false;
778 },
779 methods: {
780 createMap: function(){
781 var map = new SuggestoMap("suggesto-map"),
782 maskImage = "${images_folder}/cuneo-mask-styled.png",
783 maskBounds = [[ 44.86534447171959, 6.845056749880314 ], [ 44.04193085127058, 8.226587511599066 ]],
784 location = [
785 parseFloat(this.coords.lat),
786 parseFloat(this.coords.lng)
787 ],
788 mapData = {
789 tilelayer: "none",
790 tilelayers: [''],
791 mapcenter: [
792 parseFloat(this.regionLat),
793 parseFloat(this.regionLng)
794 ],
795 zoom: 9,
796 zoomControl: false,
797 attributionControl: false,
798 markersFilter: "*",
799 gestureHandling: false,
800 fitBounds: false,
801 markers: [],
802 layers: []
803 };
804
805 map.sm.createMap(mapData);
806 map.sm.disableMapTouch();
807
808 var marker = L.circleMarker(location, {
809 radius: 3,
810 color: "#000",
811 fillOpacity: 1
812 }).addTo(map.sm.lmap);
813
814 var icon = L.divIcon({
815 iconSize: -10,
816 html: this.title.toUpperCase()
817 });
818
819 L.marker(location, {
820 icon: icon
821 }).addTo(map.sm.lmap);
822
823 L.imageOverlay(maskImage, maskBounds).addTo(map.sm.lmap);
824 L.imageOverlay(maskImage, maskBounds).bringToFront();
825
826 this.map = map;
827 },
828 initSlider: function(){
829 this.slider = new Swiper("#slideshow .swiper-container", {
830 loop: ${(slides > 1)?c},
831 effect: "fade",
832 speed: 3000,
833 allowTouchMove: false,
834 autoplay: {
835 delay: 3000,
836 disableOnInteraction: false,
837 },
838 fadeEffect: {
839 crossFade: true,
840 },
841 });
842 },
843 initGallery: function(){
844 this.gallery = new Swiper("#gallery .swiper-container", {
845 slidesPerView: 1,
846 spaceBetween: 25,
847 centerSlides: true,
848 centerInsufficientSlides: true,
849 navigation: {
850 prevEl: ".btn-prev",
851 nextEl: ".btn-next",
852 },
853 breakpoints: {
854 768: {
855 slidesPerView: 2,
856 spaceBetween: 25,
857 },
858 992: {
859 slidesPerView: 3,
860 spaceBetween: 25,
861 },
862 },
863 });
864
865 this.thumbnails = new Swiper("#thumbnail-swiper", {
866 spaceBetween: 10,
867 slidesPerView: 2,
868 centerInsufficientSlides: true,
869 freeMode: true,
870 watchSlidesVisibility: true,
871 watchSlidesProgress: true,
872 breakpoints: {
873 768: {
874 slidesPerView: 3
875 },
876 992: {
877 slidesPerView: 4
878 },
879 1200: {
880 slidesPerView: 5
881 }
882 },
883 });
884
885 this.lightbox = new Swiper("#lightbox-swiper", {
886 spaceBetween: 10,
887 autoHeight: true,
888 observer: true,
889 observeSlideChildren: true,
890 keyboard: {
891 enabled: true
892 },
893 navigation: {
894 nextEl: ".swiper-button-next",
895 prevEl: ".swiper-button-prev"
896 },
897 thumbs: {
898 swiper: this.thumbnails
899 }
900 });
901 },
902 customShare: function(type, title, description, image = ""){
903 if(type == "facebook"){
904 var winHeight = 450,
905 winWidth = 600,
906 winTop = window.screen.height / 2 - winHeight / 2,
907 winLeft = window.screen.width / 2 - winWidth / 2,
908 params = "scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=" + winWidth + ",height=" + winHeight + ",left=" + winLeft + ",top=" + winTop,
909 link = "http://www.facebook.com/sharer.php?s=100&p[title]=" + encodeURIComponent(title) + "&p[summary]=" + encodeURIComponent(description) + "&p[url]=" + window.location.href + "&p[images][0]=" + image;
910
911 window.open(link, "Facebook", params);
912 }
913
914 if(type == "twitter"){
915 var link = "https://twitter.com/intent/tweet?text=" + encodeURIComponent(title) + "&url=" + encodeURIComponent(window.location.href);
916
917 window.open(link, "_blank").focus();
918 }
919
920 if(type == "pinterest"){
921 var link = "https://pinterest.com/pin/create/button/?url=" + encodeURIComponent(window.location.href) + "&description=" + encodeURIComponent(title);
922
923 window.open(link, "_blank").focus();
924 }
925
926 if(type == "whatsapp"){
927 var link = "https://wa.me?text=" + encodeURIComponent(title + ": " + window.location.href);
928
929 window.open(link, "_blank").focus();
930 }
931
932 if(type == "telegram"){
933 var link = "https://t.me/share/url?url=" + window.location.href + "&text=" + encodeURIComponent(title);
934
935 window.open(link, "_blank").focus();
936 }
937
938 if(type == "print"){
939 window.print();
940 }
941
942 if(type == "link"){
943 this.legacyShare();
944 }
945 }
946 }
947 };
948
949 document.addEventListener("DOMContentLoaded", function(){
950 var app = initVueApp(
951 "#${portletNamespace}",
952 "${portletNamespace}",
953 [d40_favorites, d40_share, ${portletNamespace}_custom_hook]
954 );
955 });
956
957 var groupedCategories = '${groupedCategories?js_string}';
958 var contentCoords = [${lat}, ${lng}];
959 console.log("espongo " + groupedCategories);
960</script>
it_IT
Cosa
fare
it_IT
Esperienze
it_IT
Dove
dormire
it_IT
Offerte
it_IT
Info