ArticleDetails

Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> tourismItem  [in template "1315478#1315513#1674222" at line 103, column 6]

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

Aggregatore Risorse

it_IT

Cosa

fare

Nessun risultato trovato

it_IT

Esperienze

Nessun risultato trovato

it_IT

Dove

dormire

Nessun risultato trovato

it_IT

Offerte

Nessun risultato trovato

it_IT

Info

Nessun risultato trovato