Si è verificato un errore nell'elaborarazione del modello.
Expression dlService.getFileEntryByUuidAndGroupId(mainImageUid,groupId) is undefined on line 1183, column 55 in 425118#425156#1843010.
1<#--
2 CONTENUTO_TURISTICO.ftl
3 eCTRLSolutions
4 2016
5-->
6
7
8
9<#assign pathpage="">
10
11
12<style>
13
14.bg_white {
15 background-color: #fff;
16 /*border-bottom: 1px solid #ededed;*/
17 border-bottom:none;
18 border-top: none;
19}
20
21a.button.small.contactform, .button.small.contactform {
22
23 font-size: 20px;
24}
25ul#tools_button {
26 list-style: none;
27 margin: 0 0 20px 0;
28 padding: 0;
29}
30ul#tools_info {
31 list-style: none;
32 padding: 0;
33 margin-bottom: 0px;
34
35}
36ul#tools_info li.info {
37 background: #fff;
38 display: block;
39 padding: 15px 15px 15px 15px;
40 border: 1px solid #ededed;
41 -webkit-border-radius: 5px;
42 -moz-border-radius: 5px;
43 border-radius: 5px;
44 position: relative;
45 color: #555;
46 -moz-transition: all 0.3s;
47 -webkit-transition: all 0.3s ease;
48 transition: all 0.3s ease;
49
50}
51
52ul#tools_2 li.info {
53 background: #fff;
54 display: block;
55 padding: 15px 15px 15px 15px;
56 border: 1px solid #ededed;
57 margin-bottom: 8px;
58 -webkit-border-radius: 5px;
59 -moz-border-radius: 5px;
60 border-radius: 5px;
61 position: relative;
62 color: #555;
63 -moz-transition: all 0.3s;
64 -webkit-transition: all 0.3s ease;
65 transition: all 0.3s ease;
66
67}
68.box_info.nobg {
69
70 background-color: transparent;
71
72}
73
74@media(min-width:768px) {
75.videoframe iframe {
76 height: 315px;
77 width: 560px;
78}
79}
80
81</style>
82
83
84<#assign dlService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService")>
85<#assign fileEntry = staticUtil["com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"]>
86<#assign suggestoAPI = serviceLocator.findService("suggesto-gui-portlet","eu.suggesto.suggestogui.service.suggestoGuiLocalService")>
87
88<#assign
89
90
91 journalServiceAPI = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")
92 suggestoMkspAPI = serviceLocator.findService("suggesto-mksp-portlet", "eu.suggesto.marketspace.service.MkspDockbarLocalService")
93 SuggestoRecommenderServiceAPI = serviceLocator.findService("suggestocs-portlet", "eu.suggesto.servicecs.service.SuggestoRecommenderLocalService")
94 JSONFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"]
95 serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()
96 themeDisplay = serviceContext.getThemeDisplay()
97 request = serviceContext.getRequest()
98
99 srvGroupId = groupId?string
100 serviceName = "mkspLiferay"
101 rLng = "it_IT"
102 defLng = "it_IT"
103 currentLng = themeDisplay.getLanguageId()
104 cdnHost = themeDisplay.getCDNHost()
105 SuggestoMarketspaceAPI = serviceLocator.findService("suggesto-mksp-portlet", "eu.suggesto.marketspace.service.MkspDomainLocalService")
106 domainName = ""
107 locDef = localeUtil.fromLanguageId("it_IT")
108
109 szname = ""
110 geoRefValue = ""
111 lat = ""
112 lng = ""
113/>
114
115
116
117<#assign propostaLabel= suggestoAPI.msg(companyId,groupId,"proposta-da",locale,"it",localeUtil.fromLanguageId("it_IT"))>
118<#assign daprezzoLabel= suggestoAPI.msg(companyId,groupId,"da-prezzo",locale,"it",localeUtil.fromLanguageId("it_IT"))>
119<#assign aprezzoLabel= suggestoAPI.msg(companyId,groupId,"a-prezzo",locale,"it",localeUtil.fromLanguageId("it_IT"))>
120<#assign daldataLabel= suggestoAPI.msg(companyId,groupId,"dal-data",locale,"it",localeUtil.fromLanguageId("it_IT"))>
121<#assign aldataLabel= suggestoAPI.msg(companyId,groupId,"al-data",locale,"it",localeUtil.fromLanguageId("it_IT"))>
122<#assign mapviewLabel= suggestoAPI.msg(companyId,groupId,"vedi-su-mappa",locale,"it",localeUtil.fromLanguageId("it_IT"))>
123<#assign webLabel= suggestoAPI.msg(companyId,groupId,"sito-web",locale,"it",localeUtil.fromLanguageId("it_IT"))>
124<#assign downloadLabel= suggestoAPI.msg(companyId,groupId,"scarica-il-documento",locale,"it",localeUtil.fromLanguageId("it_IT"))>
125<#assign chiediinfoLabel= suggestoAPI.msg(companyId,groupId,"richiedi-informazioni",locale,"it",localeUtil.fromLanguageId("it_IT"))>
126<#assign offertavalidaLabel= suggestoAPI.msg(companyId,groupId,"offerta-valida",locale,"it",localeUtil.fromLanguageId("it_IT"))>
127<#assign inbreveLabel= suggestoAPI.msg(companyId,groupId,"in-breve",locale,"it",localeUtil.fromLanguageId("it_IT"))>
128<#assign webLabel= suggestoAPI.msg(companyId,groupId,"sito-web",locale,"it",localeUtil.fromLanguageId("it_IT"))>
129<#assign nottiLabel= suggestoAPI.msg(companyId,groupId,"notti",locale,"it",localeUtil.fromLanguageId("it_IT"))>
130<#assign prezzoLabel= suggestoAPI.msg(companyId,groupId,"prezzo",locale,"it",localeUtil.fromLanguageId("it_IT"))>
131<#assign aperturaLabel= suggestoAPI.msg(companyId,groupId,"periodo-apertura",locale,"it",localeUtil.fromLanguageId("it_IT"))>
132<#assign adattoLabel= suggestoAPI.msg(companyId,groupId,"adatto-a",locale,"it",localeUtil.fromLanguageId("it_IT"))>
133<#assign cucinaLabel= suggestoAPI.msg(companyId,groupId,"tipo-di-cucina",locale,"it",localeUtil.fromLanguageId("it_IT"))>
134<#assign serviziLabel= suggestoAPI.msg(companyId,groupId,"servizi",locale,"it",localeUtil.fromLanguageId("it_IT"))>
135<#assign tiporistoranteLabel= suggestoAPI.msg(companyId,groupId,"tipo-di-ristorante",locale,"it",localeUtil.fromLanguageId("it_IT"))>
136<#assign tipologiaLabel= suggestoAPI.msg(companyId,groupId,"categoria",locale,"it",localeUtil.fromLanguageId("it_IT"))>
137<#assign aperturaLabel= suggestoAPI.msg(companyId,groupId,"periodo-apertura",locale,"it",localeUtil.fromLanguageId("it_IT"))>
138<#assign orariLabel= suggestoAPI.msg(companyId,groupId,"orari-apertura",locale,"it",localeUtil.fromLanguageId("it_IT"))>
139<#assign chiusuraLabel= suggestoAPI.msg(companyId,groupId,"giorni-chiusura",locale,"it",localeUtil.fromLanguageId("it_IT"))>
140<#assign orarioLabel= suggestoAPI.msg(companyId,groupId,"orario",locale,"it",localeUtil.fromLanguageId("it_IT"))>
141<#assign privacPolicy= suggestoAPI.msg(companyId,groupId,"privacy-policy",locale,"it",localeUtil.fromLanguageId("it_IT"))>
142<#assign aziendeLabel= suggestoAPI.msg(companyId,groupId,"aziende-del-settore",locale,"it",localeUtil.fromLanguageId("it_IT"))>
143<#assign scopriLabel= suggestoAPI.msg(companyId,groupId,"scopri",locale,"it",localeUtil.fromLanguageId("it_IT"))>
144<#assign luogoLabel= suggestoAPI.msg(companyId,groupId,"luogo-dell-evento",locale,"it",localeUtil.fromLanguageId("it_IT"))>
145
146<!-- etichette breadcrumb -->
147<#assign offerteLabel= suggestoAPI.msg(companyId,groupId,"offerte",locale,"it",localeUtil.fromLanguageId("it_IT"))>
148<#assign pofLabel= suggestoAPI.msg(companyId,groupId,"pacchetti-offerta",locale,"it",localeUtil.fromLanguageId("it_IT"))>
149<#assign onedayLabel= suggestoAPI.msg(companyId,groupId,"one-day-tour",locale,"it",localeUtil.fromLanguageId("it_IT"))>
150<#assign cookingLabel= suggestoAPI.msg(companyId,groupId,"cooking-class",locale,"it",localeUtil.fromLanguageId("it_IT"))>
151<#assign dormireLabel= suggestoAPI.msg(companyId,groupId,"dove-dormire",locale,"it",localeUtil.fromLanguageId("it_IT"))>
152<#assign enoLabel= suggestoAPI.msg(companyId,groupId,"enogastronomia",locale,"it",localeUtil.fromLanguageId("it_IT"))>
153<#assign mangiareLabel= suggestoAPI.msg(companyId,groupId,"dove-mangiare",locale,"it",localeUtil.fromLanguageId("it_IT"))>
154<#assign saporiLabel= suggestoAPI.msg(companyId,groupId,"sapori-dell-umbria",locale,"it",localeUtil.fromLanguageId("it_IT"))>
155<#assign tastesgoodLabel= suggestoAPI.msg(companyId,groupId,"umbriatastesgood",locale,"it",localeUtil.fromLanguageId("it_IT"))>
156<#assign vedereLabel= suggestoAPI.msg(companyId,groupId,"da-vedere",locale,"it",localeUtil.fromLanguageId("it_IT"))>
157<#assign suggeritiLabel= suggestoAPI.msg(companyId,groupId,"suggeriti-da-noi",locale,"it",localeUtil.fromLanguageId("it_IT"))>
158<#assign scopriUmbriaLabel= suggestoAPI.msg(companyId,groupId,"scopri-l-umbria",locale,"it",localeUtil.fromLanguageId("it_IT"))>
159<#assign aziendeEnoLabel= suggestoAPI.msg(companyId,groupId,"le-nostre-aziende",locale,"it",localeUtil.fromLanguageId("it_IT"))>
160<#assign aziendeServiziLabel= suggestoAPI.msg(companyId,groupId,"servizi",locale,"it",localeUtil.fromLanguageId("it_IT"))>
161<#assign prodottiLabel= suggestoAPI.msg(companyId,groupId,"prodotti",locale,"it",localeUtil.fromLanguageId("it_IT"))>
162
163
164<#assign szname = "">
165<#if name ??>
166<#if name.getData()?has_content>
167 <#assign szname=name.getData()>
168</#if>
169</#if>
170
171<#assign szclaimText = "">
172<#if claimText ??>
173<#if claimText.getData()?has_content>
174 <#assign szclaimText=claimText.getData()>
175</#if>
176</#if>
177<#if request['theme-display'] ??>
178 <#assign themeDisplay = request['theme-display'] />
179</#if>
180
181<#assign cdnHost = "">
182<#if request['theme-display'] ??>
183 <#assign cdnHost = request['theme-display']['cdn-host'] >
184</#if>
185
186
187
188<!-- categorie vocabolari -->
189<#assign suggestoMkspAPI = serviceLocator.findService("suggesto-mksp-portlet","eu.suggesto.marketspace.service.MkspDockbarLocalService")>
190<#assign defLocale=localeUtil.fromLanguageId("it_IT")>
191<#assign articleId = .vars['reserved-article-id'].data>
192<#assign groupedCategories=suggestoMkspAPI.getGroupedArticleCategories(groupId,articleId,locale,defLocale)>
193
194<#assign sCatNameTC = ""> <#-- tipo di contenuto -->
195<#assign sCatNameT = ""> <#-- tematica -->
196<#assign sCatNameTicon = ""> <#-- tematica colore -->
197<#assign sCatNameDDT = ""> <#-- dove dormire tipo -->
198<#assign sCatNameDDStar = ""> <#-- dove dormire stelle -->
199<#assign sCatNameDDS = ""> <#-- dove dormire servizi -->
200<#assign sCatNameDMT = ""> <#-- dove mangiare tipo -->
201<#assign sCatNameDMC= ""> <#-- dove mangiare cucina -->
202<#assign sCatNameDMS = ""> <#-- dove mangiare servizi -->
203<#assign sCatNameAA = ""> <#-- adatto a -->
204<#assign sCatNameDVT = ""> <#-- da vedere tipologia -->
205<#assign sCatNameGen = ""> <#-- generali -->
206<#assign sCatNameGood = ""> <#-- tastesgood -->
207<#assign sCatNameSugg = ""> <#-- suggerito -->
208<#assign sCatNameProd= ""> <#-- prodotto -->
209<#assign sCatNameAs= ""> <#-- azienda settore -->
210
211<div id="marisa" style="display:none;">
212<#if groupedCategories.length() > 0 >
213 <#list 0..groupedCategories.length()-1 as i>
214 <#assign gc = groupedCategories.getJSONObject(i)>
215 <#assign gcCat = gc.getJSONArray("categories")>${gc}-
216 <#assign vocabularyName = gc.getString("vocabularyName")>
217 <#assign vocabularyID = gc.getString("vocabularyId")>
218
219 <#if vocabularyID== "1849790" > <#-- Tipo di contenuto -->
220 <#assign sep = "">
221 <#list 0..gcCat.length()-1 as y>
222 <#assign sCatTC = gcCat.getJSONObject(y)>
223 <#assign sCatNameTC = sCatNameTC+sep+sCatTC.getString("name")>
224 <#assign sep = ", ">
225 </#list>
226 </#if>
227
228 <#if vocabularyID== "1843029" > <#-- Tematica offerte -->
229 <#list 0..gcCat.length()-1 as y>
230 <#assign sCatT = gcCat.getJSONObject(y)>
231 <#assign sCatNameT = sCatT.getString("name")>
232 <#assign sCatTId = sCatT.getString("categoryId")>
233 <#assign sCatNameTicon = sCatT.getString("icon")>
234 <#if sCatTId == "1843035" > <#-- umbriatastesgood -->
235 <#assign sCatNameGood = "umbriatastesgood">
236 </#if>
237 </#list>
238 </#if>
239 <#if vocabularyID== "1852877" > <#-- Dove dormire tipologia -->
240 <#list 0..gcCat.length()-1 as y>
241 <#assign sCatDDT = gcCat.getJSONObject(y)>
242 <#assign sCatNameDDT = sCatDDT.getString("name")>
243 </#list>
244 </#if>
245 <#if vocabularyID== "1852896" > <#-- Dove dormire stelle -->
246 <#list 0..gcCat.length()-1 as y>
247 <#assign sCatDDStar = gcCat.getJSONObject(y)>
248 <#assign sCatNameDDStar = sCatDDStar.getString("name")>
249 </#list>
250 </#if>
251 <#if vocabularyID== "1852900" > <#-- Dove dormire servizi -->
252 <#assign sep = "">
253 <#list 0..gcCat.length()-1 as y>
254 <#assign sCatDDS = gcCat.getJSONObject(y)>
255 <#assign sCatNameDDS = sCatNameDDS+sep+sCatDDS.getString("name")>
256 <#assign sep = ", ">
257 </#list>
258 </#if>
259 <#if vocabularyID== "1852885" > <#-- Dove mangiare tipologia -->
260 <#assign sep = "">
261 <#list 0..gcCat.length()-1 as y>
262 <#assign sCatDMT = gcCat.getJSONObject(y)>
263 <#assign sCatNameDMT = sCatNameDMT+sep+sCatDMT.getString("name")>
264 <#assign sep = ", ">
265 </#list>
266 </#if>
267 <#if vocabularyID== "1852928" > <#-- Dove mangiare tipo cucina -->
268 <#assign sep = "">
269 <#list 0..gcCat.length()-1 as y>
270 <#assign sCatDMC = gcCat.getJSONObject(y)>
271 <#assign sCatNameDMC = sCatNameDMC+sep+sCatDMC.getString("name")>${sCatDMC.getString("name")},
272 <#assign sep = ", ">
273 </#list>
274 </#if>
275 <#if vocabularyID== "1852936" > <#-- Dove mangiare servizi -->
276 <#assign sep = "">
277 <#list 0..gcCat.length()-1 as y>
278 <#assign sCatDMS = gcCat.getJSONObject(y)>
279 <#assign sCatNameDMS = sCatNameDMS+sep+sCatDMS.getString("name")>
280 <#assign sep = ", ">
281 </#list>
282 </#if>
283 <#if vocabularyID== "1850264" > <#-- Da vedere tipologia -->
284 <#assign sep = "">
285 <#list 0..gcCat.length()-1 as y>
286 <#assign sCatDVT = gcCat.getJSONObject(y)>
287 <#assign sCatNameDVT = sCatNameDVT+sep+sCatDVT.getString("name")>
288 <#assign sep = ", ">
289 </#list>
290 </#if>
291 <#if vocabularyID== "1852919" > <#-- Adatto a -->
292 <#assign sep = "">
293 <#list 0..gcCat.length()-1 as y>
294 <#assign sCatAA = gcCat.getJSONObject(y)>
295 <#assign sCatNameAA = sCatNameAA+sep+sCatAA.getString("name")>
296 <#assign sep = ", ">
297 </#list>
298 </#if>
299 <#if vocabularyID== "2339905" > <#-- prodotto -->
300 <#assign sep = "">
301 <#list 0..gcCat.length()-1 as y>
302 <#assign sCatProd = gcCat.getJSONObject(y)>
303 <#assign sCatNameProd = sCatNameProd+sep+sCatProd.getString("name")>
304 <#assign sCatIdProd = sCatProd.getString("categoryId")>
305 <#assign sep = ", ">
306 </#list>
307 </#if>
308 <#if vocabularyID== "2345963" > <#-- azienda servizi settore -->
309 <#assign sep = "">
310 <#list 0..gcCat.length()-1 as y>
311 <#assign sCatAs = gcCat.getJSONObject(y)>
312 <#assign sCatNameAs = sCatNameProd+sep+sCatAs.getString("name")>
313 <#assign sep = ", ">
314 </#list>
315 </#if>
316 <#if vocabularyID== "1843046" > <#-- generali -->
317 <#list 0..gcCat.length()-1 as y>
318 <#assign sCatGen = gcCat.getJSONObject(y)>
319 <#assign sCatNameGen = sCatGen.getString("name")>
320 <#assign sCatGenId = sCatGen.getString("categoryId")>
321 <#if sCatGenId == "1852168" >
322 <#assign sCatNameSugg = "suggerito">
323 </#if>
324 </#list>
325 </#if>
326 </#list>
327</#if>
328${sCatNameTC}
329</div>
330<!-- End categorie -->
331
332
333
334
335
336<#assign periodFlagStr = "">
337<#if periodFlag ?? >
338 <#if periodFlag.getData()?has_content >
339 <#assign periodFlagStr = periodFlag.getData()>
340 </#if>
341</#if>
342
343<#assign dateFormat = "dd/MM/yyyy" />
344<#assign startDateStr = "">
345<#if startDate ?? >
346 <#if startDate.getData()?has_content >
347 <#assign startDate_DateObj = dateUtil.newDate(getterUtil.getLong(startDate.getData()))>
348 <#if startDate_DateObj ?? >
349 <#assign startDateStr = dateUtil.getDate(startDate_DateObj, dateFormat, locale)>
350 </#if>
351 </#if>
352</#if>
353
354<#assign endDateStr = "">
355<#if endDate ?? >
356 <#if endDate.getData()?has_content >
357 <#assign endDate_DateObj = dateUtil.newDate(getterUtil.getLong(endDate.getData()))>
358 <#if endDate_DateObj ?? >
359 <#assign endDateStr = dateUtil.getDate(endDate_DateObj, dateFormat, locale)>
360 </#if>
361 </#if>
362</#if>
363
364<#assign periodTextStr = "">
365<#if periodText ?? >
366 <#if periodText.getData()?has_content>
367 <#assign periodTextStr = periodText.getData()>
368 </#if>
369</#if>
370
371<#assign thereareTime="false">
372<#if startTime?? >
373 <#if startTime.getSiblings()?has_content>
374 <#list startTime.getSiblings() as cur_t>
375 <#if cur_t.getData()?has_content>
376 <#assign thereareTime="true">
377 </#if>
378 </#list>
379 </#if>
380</#if>
381<#assign thereareDay="false">
382<#if dayOfWeek?? >
383 <#if dayOfWeek.getSiblings()?has_content>
384 <#list dayOfWeek.getSiblings() as cur_d>
385 <#if cur_d.getData()?has_content>
386 <#assign thereareDay="true">
387 </#if>
388 </#list>
389 </#if>
390</#if>
391
392
393<#assign thereareOpend="false">
394<#if openingDate?? >
395 <#if openingDate.getSiblings()?has_content>
396 <#list openingDate.getSiblings() as cur_o>
397 <#if cur_o.getData()?has_content>
398 <#assign thereareOpend="true">
399 </#if>
400 </#list>
401 </#if>
402</#if>
403
404
405<#assign therearedayClosing="false">
406<#if closingDay?? >
407 <#if closingDay.getSiblings()?has_content>
408 <#list closingDay.getSiblings() as cur_cd>
409 <#if cur_cd.getData()?has_content>
410 <#if cur_cd.getData() != "null">
411 <#assign therearedayClosing="true">
412 </#if>
413 </#if>
414 </#list>
415 </#if>
416</#if>
417
418<#assign closingDescStr = "">
419<#if closingDesc ?? >
420 <#if closingDesc.getData()?has_content>
421 <#assign closingDescStr = closingDesc.getData()>
422 </#if>
423</#if>
424
425<#assign openigTimeStr = "">
426<#if openigTime ?? >
427 <#if openigTime.getData()?has_content >
428 <#assign openigTimeStr = openigTime.getData()>
429 </#if>
430</#if>
431
432<#assign priceFromStr = "">
433<#if priceFrom ?? >
434 <#if priceFrom.getData()?has_content >
435 <#if priceFrom.getData() != "null">
436 <#assign priceFromStr = priceFrom.getData()>
437 </#if>
438 </#if>
439</#if>
440<#assign priceToStr = "">
441<#if priceTo ?? >
442 <#if priceTo.getData()?has_content>
443 <#if priceTo.getData() != "null">
444 <#assign priceToStr = priceTo.getData()>
445 </#if>
446 </#if>
447</#if>
448<#assign nightsStr = "">
449<#if nights ?? >
450 <#if nights.getData()?has_content >
451 <#assign nightsStr = nights.getData()>
452 </#if>
453</#if>
454
455<#assign thereareLink="false">
456<#if titleLink?? >
457 <#if titleLink.getSiblings()?has_content>
458 <#list titleLink.getSiblings() as cur_i>
459 <#if cur_i.getData()?has_content>
460 <#assign thereareLink="true">
461 </#if>
462 </#list>
463 </#if>
464</#if>
465<#assign thereareDownload="false">
466<#if download?? >
467 <#if download.getSiblings()?has_content>
468 <#list download.getSiblings() as cur_i>
469 <#if cur_i.getData()?has_content>
470 <#assign thereareDownload="true">
471 </#if>
472 </#list>
473 </#if>
474</#if>
475
476<#assign geoRefValue = "">
477<#assign lat = "">
478<#assign lng = "">
479<#if geoRef ??>
480 <#if geoRef.getData()?has_content >
481 <#assign ldata = geoRef.getData() !>
482 <#assign adata=ldata?split(",")>
483 <#assign lat=adata[0] >
484 <#assign lng=adata[1] >
485 <#assign geoRefValue = lat+","+lng>
486 </#if>
487</#if>
488
489<#assign contactEmailStr = "">
490<#if contactEmail ?? >
491 <#if contactEmail.getData()?has_content >
492 <#assign contactEmailStr = contactEmail.getData()>
493 </#if>
494</#if>
495
496
497<!-- da implementare default immagine tematica per header -->
498<!-- #assign headerImg = "/documents/1184119/1381700/default-"+sCatName+".jpg" -->
499
500<#assign headerImg = "/documents/1838497/1843635/vigna-interna1.jpg/ebfe96e7-c0dd-4526-a182-003afb70117b?t=1528383830468">
501
502<#if headerImage?? >
503 <#if headerImage.getData()?has_content>
504 <#assign headerImg= headerImage.getData()>
505 </#if>
506</#if>
507
508<#-- ADDITIONALJSONPARAM invio a referente offerta e in copia a info@umbriatastes.eu-->
509<#if contactEmailStr != "" >
510 <#assign emailTo= contactEmailStr>
511<#else>
512 <#assign emailTo= "info@umbriatastes.eu">
513</#if>
514<div style="display:none;">emailTo ${emailTo} </div>
515<#assign emailCC= "info@umbriatastes.eu">
516
517<script>
518var additionalJsonParam={"emailTo":"${emailTo}","emailCC":"${emailCC}"};
519</script>
520<!-- SubHeader =============================================== -->
521
522<section class="parallax_window_in img-responsive" data-parallax="scroll" data-image-src="${headerImg}" data-natural-width="1400" data-natural-height="320">
523 <div id="sub_content_in">
524 <div id="logo_interno">
525 <h1><a href="/home" title="umbriatastes" >
526 <img src="/documents/1838497/1838693/logoUmbriaTastes.png/da0606c2-b325-4715-83f1-b92dbcca9a9b?t=1522068465627" alt="" style="position: absolute;top: 10px;left: 10px;">
527 </a>
528 </h1>
529 </div>
530 <div id="sub_content_in_left">
531 <div class="container">
532 <div class="row">
533 <div class="col-md-8">
534 <h1>${szname}</h1>
535 <span>${szclaimText}</span>
536 </div>
537 <div class="col-md-4">
538 <div class="price_in"><#if priceFromStr != "" && priceFromStr != "null"> ${daprezzoLabel} <span>${priceFromStr} €</span></#if> </div>
539 </div>
540 </div>
541 </div>
542 </div>
543 </div>
544</section>
545<!-- End section -->
546
547<!-- End SubHeader ============================================ -->
548
549<div id="position">
550 <div class="container">
551 <ul>
552
553 <#if sCatNameTC?contains("Pacchetto Offerta")>
554 <li>${offerteLabel}</li>
555 <li><a href="${pathpage}/offerte-vacanza">${pofLabel}</a> </li>
556
557
558 <#elseif sCatNameTC?contains("One Day Tour") >
559 <li>${offerteLabel}</li>
560 <li><a href="${pathpage}/one-day-tour">${onedayLabel}</a></li>
561
562 <#elseif sCatNameTC?contains("Cooking Class") >
563 <li>${onedayLabel}</li>
564 <li><a href="${pathpage}/cooking-class">${cookingLabel}</a></li>
565
566 <#elseif sCatNameTC?contains("Dove dormire") >
567 <li><a href="${pathpage}/dove-dormire">${dormireLabel}</a></li>
568
569 <#elseif sCatNameTC?contains("Azienda enogastronomia") >
570 <li>${enoLabel}</li>
571 <li><a href="${pathpage}/enogastronomia/aziende">${aziendeEnoLabel}</a></li>
572
573 <#elseif sCatNameTC?contains("Prodotto") >
574 <li>${enoLabel}</li>
575 <li><a href="${pathpage}/sapori-dell-umbria">${saporiLabel}</a></li>
576
577 <#elseif sCatNameTC?contains("servizi") >
578
579 <li><a href="${pathpage}/servizi">${aziendeServiziLabel}</a></li>
580
581 <#elseif sCatNameTC?contains("Da vedere")>
582 <li>${scopriUmbriaLabel}</li>
583 <li><a href="${pathpage}/scopri-l-umbria">${vedereLabel}</a></li>
584 </#if>
585
586 <li>${szname}</li>
587 </ul>
588 </div>
589</div>
590<!-- End breadcrumb ============================================ -->
591
592<div class="container margin_60" style="transform: none;">
593 <div class="row" style="transform: none;">
594 <aside class="col-md-3 col-md-push-9" id="sidebar">
595 <div class="theiaStickySidebar">
596
597 <ul id="tools_info">
598 <#if sCatNameTC == "Pacchetto Offerta" || sCatNameTC == "One Day Tour" || sCatNameTC == "Cooking Class" >
599 <li class="info">${propostaLabel}:</li>
600 </#if>
601 <li class="info">
602 <#if contactName ?? >
603 <#if contactName.getData()?has_content>
604 <strong> ${contactName.getData()}</strong><br/>
605 </#if>
606 </#if>
607
608 <#assign flagaddressCon = "false" >
609 <#if contactAddress ??>
610 <#if contactAddress.getData()?has_content >
611 ${contactAddress.getData()}<br/>
612 <#assign flagaddressCon = "true" >
613 </#if>
614 </#if>
615
616 <#if contactCAP ?? || contactLocation ??>
617 <#if contactCAP ??>
618 <#if contactCAP.getData()?has_content >
619 ${contactCAP.getData()}
620 </#if>
621 </#if>
622 <#if contactLocation ??>
623 <#if contactLocation.getData()?has_content >
624 ${contactLocation.getData()}
625 <#assign flagaddressCon = "true" >
626 <#if contactSign ??>
627 <#if contactSign.getData()?has_content >
628 (${contactSign.getData()})
629 </#if>
630 </#if>
631 </#if>
632 </#if>
633 </#if>
634 <#if flagaddressCon == "true"><br/></#if>
635 <#assign flagphoneCon = "false" >
636 <#if contactPhone ??>
637 <#if contactPhone.getData()?has_content >
638 <i class="icon-phone-squared"></i>${contactPhone.getData()}<br/>
639 <#assign flagphoneCon = "true" >
640 </#if>
641 </#if>
642 <#if contactFax ??>
643 <#if contactFax.getData()?has_content >
644 Fax ${contactFax.getData()}<br/>
645 </#if>
646 </#if>
647
648 <#assign flagemailCon = "false" >
649 <#if contactEmail ??>
650 <#if contactEmail.getData()?has_content >
651 <i class="icon-mail-alt"></i><a href="mailto:${contactEmail.getData()}" title="${contactEmail.getData()}" alt="${contactEmail.getData()}">${contactEmail.getData()}</a><br/>
652 <a href="/privacy-policy" title="${privacPolicy}" target="_blank"><i class="icon-lock"></i>${privacPolicy}</a><br/>
653 <#assign flagemailCon = "true" >
654 </#if>
655 </#if>
656 <#if contactWeb ?? || contactFacebook ??>
657 <#assign flagweb = "false" >
658 <#if contactWeb.getData()?has_content >
659 <#if contactWeb.getData()?starts_with("http://") || contactWeb.getData()?starts_with("https://") >
660 <#assign urlsite = contactWeb.getData() >
661 <a href="${urlsite}" title="${urlsite}"><i class="icon-website"> </i> <strong>${webLabel}</strong></a>
662 <#else>
663 <#assign url = "http://"+ contactWeb.getData() !>
664 <a href="${url}" title="${contactWeb.getData()}"><i class="icon-website"> </i> <strong>${webLabel}</strong></a>
665 </#if>
666 <#assign flagweb = "true" >
667 </#if>
668 </#if>
669
670 <#if contactFacebook ??>
671 <#if contactFacebook.getData()?has_content>
672 <#if flagweb == "true"> - </#if>
673 <a href="${contactFacebook.getData()}" title="${contactFacebook.getData()}"><i class="icon-facebook-squared"></i> <strong>Facebook</strong></a>
674 </#if>
675 </#if>
676 </li>
677 </ul>
678
679
680 <#assign locName = "" >
681 <#assign locAddress = "" >
682 <#assign locCAP = "" >
683 <#assign locPlace = "" >
684 <#assign locSign = "" >
685 <#assign locPhone = "" >
686 <#assign locFax = "" >
687 <#assign locEmail = "" >
688 <#assign locWeb = "" >
689
690 <#if locationName ?? >
691 <#if locationName.getData()?has_content >
692 <#assign locName =locationName.getData()>
693 </#if>
694 </#if>
695 <#if locationAddress ??>
696 <#if locationAddress.getData()?has_content >
697 <#assign locAddress =locationAddress.getData()>
698 </#if>
699 </#if>
700 <#if locationCAP ??>
701 <#if locationCAP.getData()?has_content >
702 <#assign locCAP =locationCAP.getData()>
703 </#if>
704 </#if>
705 <#if locationPlace ??>
706 <#if locationPlace.getData()?has_content >
707 <#assign locPlace =locationPlace.getData()>
708 </#if>
709 </#if>
710 <#assign flagphoneLoc = "false" >
711 <#if locationPhone ??>
712 <#if locationPhone.getData()?has_content >
713 <#assign locPhone =locationPhone.getData()>
714 <#assign flagphoneLoc = "true" >
715 </#if>
716 </#if>
717 <#if locationFax ??>
718 <#if locationFax.getData()?has_content >
719 <#assign locFax =locationFax.getData()>
720 </#if>
721 </#if>
722 <#if locationEmail ??>
723 <#if locationEmail.getData()?has_content >
724 <#assign locEmail =locationEmail.getData()>
725 </#if>
726 </#if>
727 <#if locationWeb ??>
728 <#if locationWeb.getData()?has_content >
729 <#assign locWeb =locationWeb.getData()>
730 </#if>
731 </#if>
732
733
734
735 <ul id="tools_info">
736 <li class="info">
737 <#if locName != "" || locAddress != "" || locPlace != "">
738 <strong>${luogoLabel}</strong><br/>
739 </#if>
740 <#if locName != "" >
741 ${locName} <br/>
742 </#if>
743
744 <#assign flagaddressLoc = "false" >
745
746 <#if locAddress != "" >
747 ${locAddress}<br/>
748 </#if>
749
750 <#if locCAP != "" || locPlace != "" >
751 <#if locCAP ??>
752 ${locCAP}
753 </#if>
754 <#if locPlace != "" >
755 ${locPlace}
756 <#assign flagaddressLoc = "true" >
757 <#if locSign != "" >
758 (${locSign})
759 </#if>
760 </#if>
761 </#if>
762 <#if flagaddressLoc == "true"><br/></#if>
763
764 <#assign flagphoneLoc = "false" >
765
766 <#if locPhone != "" >
767 <i class="icon-phone-squared"></i>${locPhone} <br/>
768 <#assign flagphoneLoc = "true" >
769 </#if>
770 <#if locFax != "" >
771 Fax ${locFax} <br/>
772 </#if>
773
774 <#assign flagemailLoc = "false" >
775 <#if locEmail != "" >
776 <i class="icon-mail-alt"></i> ${locEmail}<br/>
777 <a href="/privacy-policy" title="${privacPolicy}" target="_blank">${privacPolicy}</a><br/>
778 <#assign flagemailLoc = "true" >
779 </#if>
780 <#if locWeb != "" >
781 <#if locWeb?starts_with("http://") || locWeb?starts_with("https://")>
782 <a href="${locWeb}" title="${locWeb}"><i class="icon-website"> </i> <strong>${webLabel}</strong></a>
783 <#else>
784 <#assign url = "http://"+ locWeb >
785 <a href="${url}" title="${locWeb}"><i class="icon-website"> </i> <strong>${webLabel}</strong></a>
786 </#if>
787 </#if>
788 </li>
789 </ul>
790 <ul id="tools_2">
791 <#-- mappa -->
792 <#if geoRefValue != "">
793 <li>
794 <form action="http://maps.google.com/maps" method="get" target="_blank">
795 <input type="hidden" name="daddr" value="${geoRefValue}" /><i class="icon_compass_alt"></i>
796 <button type="submit" value="${mapviewLabel}">${mapviewLabel}</button>
797 </form>
798 </li>
799 </#if>
800 <#-- end mappa -->
801
802 <#-- link -->
803 <#if thereareLink == "true">
804 <#list titleLink.getSiblings() as item>
805 <#if item.getData()?has_content>
806 <#assign urlLink = item.urlLink.getData()>
807 <#assign testoLink = item.getData()>
808 <li><a href="${urlLink}"><i class=" icon-link"></i>${testoLink}</a>
809 </li>
810 </#if>
811 </#list>
812 </#if>
813 <#-- end link -->
814
815 <#-- Download -->
816 <#if thereareDownload == "true">
817 <#list download.getSiblings() as item>
818 <#if item.getData()?has_content>
819 <#assign urlDownload = item.getData()>
820 <#assign doctitle = "${downloadLabel}" >
821 <#assign fileType = "">
822 <#assign counter = 0 >
823
824 <#if item.downloadTitle.getData()?has_content>
825 <#assign doctitle = item.downloadTitle.getData()>
826 </#if>
827
828 <!-- informazioni sul file -->
829 <#list urlDownload?split("/") as x>
830 <#if counter == 2>
831 <#assign groupIDdoc = x?number >
832 </#if>
833 <#if counter == 4>
834 <#assign filename = x >
835 </#if>
836 <#if counter == 5>
837 <#assign uuId = x >
838 </#if>
839 <#assign counter = counter+1 >
840 </#list>
841 <#assign start=urlDownload?last_index_of("/")+1>
842 <#assign end=urlDownload?last_index_of("?")-1>
843 <#if end != -2>
844 <#assign mainDocUid = urlDownload[start..end]>
845 <#assign file=fileEntry.getFileEntryByUuidAndGroupId(mainDocUid, groupIDdoc) >
846 <#else>
847 <#assign file=fileEntry.getFileEntryByUuidAndGroupId(uuId, groupIDdoc) >
848 </#if>
849 <#assign fileType = file.getMimeType()> <!--tipo di file --->
850
851 <li><a href="${urlDownload}" title="${downloadLabel}" ><i class="icon_cloud-download_alt"></i>${doctitle}</a>
852 </li>
853 </#if>
854 </#list>
855 </#if>
856 <#--end Download -->
857 </ul>
858 <ul id="tools_button">
859 <li style="text-align:center;margin-top:10px;background:transparent;padding:0px;">
860 <a href="#_inputform_WAR_suggestoguiportlet_inputform"><button class="button" >${chiediinfoLabel}</button></a>
861 </li>
862 </ul>
863
864 </div>
865 <!-- End sticky -->
866 <#if sCatNameTC == "Prodotto" >
867 <#if sCatProd?has_content>
868 <script src='/feeds?p_p_id=mkspconfigurable_WAR_suggestomkspportlet&p_p_lifecycle=2&p_p_resource_id=javascript&_mkspconfigurable_WAR_suggestomkspportlet_jsonParams={"pag":1,"num":90,"lng":"${currentLng}","qry":"dd","p1":"1849795","p2":"${sCatIdProd}","kw":"","so":""}'></script>
869 <@outputlistaAziende/>
870 </#if>
871 </#if>
872
873
874 </aside>
875 <!-- End aside -->
876
877
878
879 <div class="col-md-9 col-md-pull-3" style="padding-left: 0px;">
880 <div class="box_style_general add_bottom_30">
881 <div class="ribbon top"><#if sCatNameT != "" > <span class="${sCatNameTicon}">${sCatNameT}</span> </#if></div>
882 <#if sCatNameTC != "Prodotto" && sCatNameTC != "Azienda di servizi" >
883 <div class="row">
884 <div class="col-md-6">
885 <div class="box_info nobg">
886 <ul>
887
888 <#if sCatNameTC != "Pacchetto Offerta" && sCatNameTC != "One Day Tour" && sCatNameTC != "Cooking Class">
889 <#if shortDesc ?? >
890 <#if shortDesc.getData()?has_content >
891 <strong>${shortDesc.getData()}</strong>
892 </#if>
893 </#if>
894 </#if>
895 <#if sCatNameDDT != "">
896 <li><strong>${sCatNameDDT} </strong>
897 <#if sCatNameDDStar != "" >
898 <#if sCatNameDDStar == "2" >
899 <i class="icon-star"></i><i class="icon-star"></i>
900 <#elseif sCatNameDDStar == "3" >
901 <i class="icon-star"></i><i class="icon-star"></i><i class="icon-star"></i>
902 <#elseif sCatNameDDStar == "4" >
903 <i class="icon-star"></i><i class="icon-star"></i><i class="icon-star"></i><i class="icon-star"></i>
904 <#elseif sCfatNameDDStar == "5" >
905 <i class="icon-star"></i><i class="icon-star"></i><i class="icon-star"></i><i class="icon-star"></i><i class="icon-star"></i>
906 </#if>
907
908 </#if>
909 <br/></li>
910 </#if>
911
912
913
914 <#if startDateStr != "" || periodTextStr != "">
915 <li>
916 <#if sCatNameTC == "Pacchetto Offerta" || sCatNameTC == "One Day Tour" >
917 <strong>${offertavalidaLabel}: </strong>
918 </#if>
919 <#if startDateStr != "" || endDateStr != "">
920 <#if startDateStr != ""><strong>${daldataLabel}</strong> ${startDateStr}</#if> <#if endDateStr != ""><strong>${aldataLabel}</strong> ${endDateStr}</#if>
921 <#elseif periodTextStr != "">${periodTextStr}
922 </#if>
923 <br/></li>
924 </#if>
925 <#if priceFromStr != "" >
926 <li><#if (priceFromStr != "" || priceToStr != "" ) && (priceFromStr != "null") ><strong>${prezzoLabel} ${daprezzoLabel} </strong> ${priceFromStr}€ <#if priceToStr != "" && priceToStr != "null"> <strong>${aprezzoLabel}</strong> ${priceToStr}€</#if></#if><br/></li>
927 <li><#if nightsStr != "" && nightsStr != "null"><strong>${nottiLabel}:</strong> ${nightsStr}</#if><br/></li>
928 </#if>
929 <#-- date apertura -->
930 <#if thereareOpend == "true">
931 <li>${aperturaLabel}<br/>
932 <#list openingDate.getSiblings() as item>
933 <#assign openingDateStr = "">
934 <#assign closingDateStr = "">
935 <#if item.getData()?has_content>
936
937 <#assign openingDate_DateObj = dateUtil.newDate(getterUtil.getLong(item.getData()))>
938 <#assign closingDate_DateObj = dateUtil.newDate(getterUtil.getLong(item.closingDate.getData()))>
939 <#if openingDate_DateObj ?? >
940 <#assign openingDateStr = dateUtil.getDate(openingDate_DateObj, dateFormat, locale)>
941 </#if>
942 <#if closingDate_DateObj ?? >
943 <#assign closingDateStr = dateUtil.getDate(closingDate_DateObj, dateFormat, locale)>
944 </#if>
945 ${openingDateStr} - ${closingDateStr}
946 </#if>
947 </#list>
948 </li>
949 </#if>
950 <#-- end -->
951 <#-- giorni chiusura -->
952 <#if therearedayClosing == "true">
953 <#assign sepday="">
954 <li><strong>${chiusuraLabel}:</strong>
955 <#list closingDay.getSiblings() as item>
956 <#if item.getData()?has_content>
957 <#assign dayOfWeek=suggestoAPI.msg(companyId,groupId,'${item.getData()}',locale,'it',localeUtil.fromLanguageId('it_IT'))>
958 ${sepday}${dayOfWeek}
959 <#assign sepday=", ">
960 </#if>
961 </#list>
962 </#if>
963 </li>
964 <#-- end -->
965 <#if closingDescStr != "">
966 <li><strong>${aperturaLabel}:</strong>
967 ${closingDescStr}
968 </li>
969 </#if>
970 <#-- orari e giorni eventi -->
971 <#if thereareTime == "true">
972 <#assign startTimeStr = "" >
973 <#assign dayOfWeekStr = "" >
974 <li>${orarioLabel}:<br/>
975 <#list startTime.getSiblings() as item>
976 <#if item.getData()?has_content>
977 <#assign startTimeStr = item.getData() >
978 <#if item.dayOfWeek.getData()?has_content>
979 <#assign dayOfWeekStr = item.dayOfWeek.getData()>
980 </#if>
981 <#if startTimeStr != "">${dayOfWeekStr} </#if> <#if startTimeStr != "">${startTimeStr}</#if><br/>
982 </#if>
983 </#list>
984 </li>
985 </#if>
986
987 </ul>
988 </div>
989 </div>
990 <div class="col-md-6">
991 <div class="box_info">
992 <ul>
993 <#if sCatNameTC == "Dove dormire" >
994 <#if sCatNameDDS != "" >
995 <li><strong>${serviziLabel}:</strong> ${sCatNameDDS}</li>
996 </#if>
997 </#if>
998
999
1000 <#if sCatNameDVT != "" && sCatNameTC != "Azienda enogastronomia">
1001 <li><strong>${tipologiaLabel}:</strong> ${sCatNameDVT}</li>
1002 </#if>
1003
1004 <#if sCatNameAA != "" && sCatNameTC != "Azienda enogastronomia">
1005 <li><strong>${adattoLabel}:</strong> ${sCatNameAA} </li>
1006 </#if>
1007
1008 <#if sCatNameTC == "Azienda enogastronomia">
1009 <li><strong>${prodottiLabel}:</strong> ${sCatNameProd} </li>
1010 </#if>
1011 </ul>
1012 </div>
1013 </div>
1014 </div>
1015
1016 <!--End row -->
1017
1018 <hr>
1019 </#if>
1020 <#if longDesc ?? >
1021 <#if longDesc.getData()?has_content >
1022 <div class="row section-mode1 bg_white">
1023 <div class="col-md-12">${longDesc.getData()}</div>
1024 </div>
1025 </#if>
1026 </#if>
1027
1028 <#-- sezioni -->
1029 <#if sectionTitle.getSiblings()?has_content>
1030 <#list sectionTitle.getSiblings() as cur_TitoloSezione>
1031 <#assign titolo="">
1032 <#assign sottoTitolo="">
1033 <#assign corpo="">
1034 <#assign immagini="">
1035 <#assign hasImage=false>
1036 <#assign embeddedCode="">
1037 <#assign modello="">
1038 <#assign titolo=cur_TitoloSezione.getData()>
1039
1040 <#if cur_TitoloSezione.sectionSubTitle.getData()?has_content>
1041 <#assign sottoTitolo=cur_TitoloSezione.sectionSubTitle.getData()>
1042 </#if>
1043 <#if cur_TitoloSezione.sectionBody.getData()?has_content>
1044 <#assign corpo=cur_TitoloSezione.sectionBody.getData()>
1045 </#if>
1046 <#if cur_TitoloSezione.embeddedCode??>
1047 <#if cur_TitoloSezione.embeddedCode.getData()?has_content>
1048 <#assign embeddedCode=cur_TitoloSezione.embeddedCode.getData()>
1049 </#if>
1050 </#if>
1051
1052 <#if cur_TitoloSezione.sectionImage.getSiblings()?has_content>
1053 <#list cur_TitoloSezione.sectionImage.getSiblings() as cur_Immagine>
1054 <#if cur_Immagine.getData()?has_content>
1055 <#assign hasImage=true>
1056 </#if>
1057 </#list>
1058 </#if>
1059 <#if cur_TitoloSezione.sectionMode.getData()?has_content>
1060 <#assign modello=cur_TitoloSezione.sectionMode.getData()>
1061 </#if>
1062
1063 <#if modello == "modello1" || modello == "null" ><#-- modello 1 oppure nessuna selezione: immagine centrale -->
1064 <div class="row section-mode1 bg_white">
1065 <div class="col-md-12">
1066
1067 <#if hasImage==true >
1068 <#if cur_TitoloSezione.sectionImage.getSiblings()?has_content>
1069 <#list cur_TitoloSezione.sectionImage.getSiblings() as cur_Immagine>
1070 <#if cur_Immagine.getData()?has_content>
1071 <p style="text-align:center;"><img src="${cur_Immagine.getData()}" class="img-responsive" alt=""></img></p>
1072 </#if>
1073 </#list>
1074 </#if>
1075 </#if>
1076 <#if titolo != "" ><h3>${titolo}</h3></#if>
1077 <#if sottoTitolo != "" ><h5>${sottoTitolo}</h5></#if>
1078 <span class="sectionBody">${corpo}</span>
1079 <p> </p>
1080 <div style="overflow: auto;">
1081 <#if embeddedCode != "" >${embeddedCode}</#if>
1082 </div>
1083 </div>
1084 </div><!-- end row -->
1085 <#-- end modello 1 -->
1086
1087 <#elseif modello == "modello2"><#-- modello 2 immagine a dx -->
1088 <div class="row section-mode2">
1089 <div class="col-md-5" style="padding-right:0;">
1090 <#if hasImage==true >
1091 <#if cur_TitoloSezione.sectionImage.getSiblings()?has_content>
1092 <#list cur_TitoloSezione.sectionImage.getSiblings() as cur_Immagine>
1093 <#if cur_Immagine.getData()?has_content>
1094 <img src="${cur_Immagine.getData()}" class="img-responsive" alt=""></img>
1095 </#if>
1096 </#list>
1097 </#if>
1098 </#if>
1099 </div>
1100
1101 <div class="col-md-7">
1102 <#if titolo != "" ><h3>${titolo}</h3></#if>
1103 <#if sottoTitolo != "" ><h5>${sottoTitolo}</h5></#if>
1104 <span class="sectionBody">${corpo}</span>
1105 <p> </p>
1106 </div>
1107 </div><!-- end row -->
1108
1109
1110 <#-- end modello 2 -->
1111
1112 <#elseif modello == "modello3"><#-- modello 3 immagine a sx -->
1113 <div class="row section-mode3">
1114 <div class="col-md-7">
1115 <#if titolo != "" ><h3>${titolo}</h3></#if>
1116 <#if sottoTitolo != "" ><h5>${sottoTitolo}</h5></#if>
1117 <span class="sectionBody">${corpo}</span>
1118 </div>
1119 <div class="col-md-5" style="padding-left:0;padding-bottom:30px;">
1120 <#if hasImage==true >
1121 <#if cur_TitoloSezione.sectionImage.getSiblings()?has_content>
1122 <#list cur_TitoloSezione.sectionImage.getSiblings() as cur_Immagine>
1123 <#if cur_Immagine.getData()?has_content>
1124 <img src="${cur_Immagine.getData()}" class="img-responsive" alt=""></img>
1125 </#if>
1126 </#list>
1127 </#if>
1128 </#if>
1129 </div>
1130 </div><!-- end row -->
1131
1132 <#-- end modello 3 -->
1133
1134 <#elseif modello == "modello4"><#-- modello 4 testo a 2 colonne -->
1135 <div class="row section-mode4">
1136 <div class="col-md-12">
1137 <#if hasImage==true >
1138 <#if cur_TitoloSezione.sectionImage.getSiblings()?has_content>
1139 <#list cur_TitoloSezione.sectionImage.getSiblings() as cur_Immagine>
1140 <#if cur_Immagine.getData()?has_content>
1141 <p style="text-align:center;"><img src="${cur_Immagine.getData()}" class="img-responsive" alt=""></img></p>
1142 </#if>
1143 </#list>
1144 </#if>
1145 </#if>
1146 <#if titolo != "" ><h3>${titolo}</h3></#if>
1147 <#if sottoTitolo != "" ><h5>${sottoTitolo}</h5></#if>
1148 <div class="detailDescBox"><span class="sectionBody">${corpo}</span></div>
1149 </div>
1150 </div><!-- end row -->
1151 <#-- end modello 4 -->
1152
1153 </#if>
1154
1155 </#list>
1156 </#if>
1157 <#-- end sezioni -->
1158
1159 <#-- orari di apertura -->
1160 <#if openigTimeStr != "" >
1161 <div class="row section-mode1 bg_white">
1162 <div class="col-md-12">
1163 <h4>${orariLabel}</h4>
1164 ${openigTimeStr}
1165 </div>
1166 </div>
1167 </#if>
1168
1169
1170 <!-- gallery -->
1171 <#assign hasContentSlider = false >
1172 <#assign curGallery = 0>
1173 <#if mainImageFolder ??>
1174 <#if mainImageFolder.getData() != "">
1175 <#assign mainImage = mainImageFolder.getData()>
1176 <#if mainImage ??>
1177 <#assign startFrom=mainImage?last_index_of("/")+1>
1178
1179 <#assign endTo=mainImage?last_index_of("?")-1>
1180
1181 <#if endTo gt 0 >
1182 <#assign mainImageUid = mainImage[startFrom..endTo]>
1183 <#assign curGallery = dlService.getFileEntryByUuidAndGroupId(mainImageUid,groupId).folderId?number>
1184 <#assign hasContentSlider = true >
1185 </#if>
1186 </#if>
1187 </#if>
1188 </#if>
1189
1190 <#if hasContentSlider == true>
1191 <#if curGallery !=0>
1192 <#assign dlFiles = dlService.getFileEntries(groupId, curGallery)>
1193 <#assign defImage="">
1194 <h4>Gallery</h4>
1195 <div class="row magnific-gallery">
1196 <#list dlFiles as dlFile >
1197 <#assign defImage="">
1198 <#if dlFile.getFileVersion().status == 0>
1199 <#if dlFile.getFileVersion().description != "HIDE">
1200 <#assign uet = httpUtil.encodeURL(htmlUtil.unescape(dlFile.getTitle()))>
1201 <#if defImage=="">
1202 <#assign defImage="${cdnHost}/documents/${groupId}/${curGallery}/${uet}">
1203 <#assign defImage=defImage+"?width=800&height=533">
1204 </#if>
1205 <div class="col-sm-4">
1206 <div class="img_wrapper">
1207 <div class="img_container">
1208 <a href="${defImage}" title="">
1209 <img src="${defImage}" class="img-responsive" alt="">
1210 </a>
1211 </div>
1212 </div>
1213 <!-- End img_wrapper -->
1214 </div>
1215 </#if>
1216 </#if>
1217 </#list>
1218 </div>
1219 <!-- End row -->
1220 </#if>
1221 </#if>
1222 <!-- end gallery -->
1223
1224 <!-- video-->
1225 <#assign thereisvideo="false">
1226 <#if video ??>
1227 <#if video.getSiblings()?has_content>
1228 <#assign thereisvideo="true">
1229 </#if>
1230 </#if>
1231 <#if thereisvideo == "true">
1232 <#list video.getSiblings() as cur_video>
1233 <div style="padding-bottom:1%;padding-top:3%;text-align:center;" class="videoframe">
1234 ${cur_video.embedCodeVideo.getData()}<br/>
1235 ${cur_video.getData()}
1236 </div>
1237 </#list>
1238 </#if>
1239 <!-- end video-->
1240
1241 <hr>
1242
1243 </div>
1244 <!-- End box_style_general -->
1245 </div>
1246 <!-- End col lg-9 -->
1247 </div>
1248 <!-- End row -->
1249</div>
1250<!-- End container -->
1251
1252
1253
1254
1255<#macro outputlistaAziende>
1256
1257 <div id="vOutputListaPoi" v-cloak>
1258
1259 <#-- LIST -->
1260 <div class="theiaStickySidebar">
1261 <ul id="tools_info">
1262
1263 <li class="info" style="text-align: center;">
1264 <h3 v-show="filteredItems!=''">${aziendeLabel}</h3>
1265 </li>
1266 <li class="info" style="text-align: center;" v-show="viewmode=='lista'" v-for="item in filteredItems">
1267 <a v-bind:href="item.viewUrl" title="${scopriLabel}">
1268 <div class="explore_img">
1269 <img v-bind:src="getCalcImage(item)" alt="" />
1270 </div>
1271 <div class="caption_single">
1272 <div class="title_single"><strong>{{item.title}}</strong></div>
1273 </div>
1274 </a>
1275 </li>
1276 </ul>
1277
1278 <ul id="tools_button">
1279 <li style="text-align:center;margin-top:10px;background:transparent;padding:0px;">
1280 <a href="/enogastronomia/aziende"><button class="button" >vedi tutte le aziende del settore enogastronomico</button></a>
1281 </li>
1282 </ul>
1283 </div>
1284 </div>
1285
1286 <script src="https://cdn.jsdelivr.net/npm/vue"></script>
1287 <script>
1288 Vue.component('show-item', {
1289 template: '<p v-show="field"><b>{{title}}</b>: {{field}}</p>',
1290 props: ['title','field']
1291 });
1292
1293 var app = new Vue({
1294 el: '#vOutputListaPoi',
1295 data: {
1296 showItems: 10,
1297 searchString: "",
1298 items: isct.docs,
1299 viewmode: "lista",
1300 showMoreIsVisible: true
1301 },
1302 computed: {
1303 filteredItems: function () {
1304 var items_array = this.items,
1305 searchString = this.searchString;
1306 if(typeof(items_array) === "undefined")
1307 items_array = [];
1308
1309 if(!searchString && typeof(items_array) !== "undefined"){
1310 return items_array.slice(0, this.showItems);
1311 }
1312
1313 searchString = searchString.trim().toLowerCase();
1314 if(typeof (items_array)!=="undefined")
1315 items_array = items_array.filter(function (item) {
1316 if (item['TITOLO DEL COMPLESSO'].toLowerCase().indexOf(searchString) !== -1) {
1317 return item;
1318 }
1319 else
1320 items_array=[];
1321
1322 })
1323 console.log("enterying a");
1324 if (typeof(items_array)!=="undefined" && items_array.length <= 10) {
1325 this.showItems = 10;
1326 }
1327
1328 if (typeof(items_array)!=="undefined" && this.showItems < items_array.length) {
1329 this.showMoreIsVisible = true;
1330 } else {
1331 this.showMoreIsVisible = false;
1332 }
1333
1334
1335
1336 // Return an array with the filtered data.
1337 if(typeof(items_array)!=="undefined")
1338 return items_array.slice(0, this.showItems);
1339 else
1340 return [];
1341 }
1342 },
1343 methods: {
1344 showMore: function(addtoShow) {
1345 this.showItems = this.showItems + addtoShow;
1346 console.log("show more");
1347 },
1348 addMarkers: function() {
1349 // populate all markers
1350 console.log("enterying");
1351
1352
1353 var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';
1354 var icons = {
1355 parking: {
1356 icon: iconBase + 'parking_lot_maps.png'
1357 },
1358 library: {
1359 icon: iconBase + 'library_maps.png'
1360 },
1361 info: {
1362 icon: iconBase + 'info-i_maps.png'
1363 },
1364 church: {
1365 icon: iconBase + 'small_yellow.png'
1366 }
1367
1368 };
1369
1370 var items_array=isct.docs;
1371
1372
1373 },
1374 addMiniMapMarkers: function() {
1375 // populate all markers
1376 console.log("enterying");
1377 var newMarkers = [],marker;
1378 var items_array=sgeo.docs;
1379 var iconPaddleBase = 'https://maps.google.com/mapfiles/kml/paddle/';
1380 var icons = {
1381 blue: {
1382 url: iconPaddleBase + 'ltblu-circle.png',
1383 scaledSize: new google.maps.Size(40, 40)
1384 }
1385 };
1386
1387 // nascondiamo in attesa di visualizzare meglio i poi di dettaglio: manca icone e da mostrare solo se un certo zoom
1388 for(var x=0;typeof(items_array)!=="undefined" && x<items_array.length;x++) {
1389 var poi=items_array[x];
1390 var latLon=poi.latloncoordinates;
1391 console.log("latLon:",latLon);
1392 if(typeof(latLon)!=="undefined" && latLon!="") {
1393 var ll=latLon.split(",");
1394 }
1395 var marker=null;
1396 var uluru = {lat: Number(ll[0]), lng: Number(ll[1])};
1397 var sCatId='${sCatIdProd}';
1398 if(sCatId!='' && poi.assetCategoryIds.toString().indexOf(sCatId) !== -1) {
1399 marker = new google.maps.Marker({
1400 position: uluru,
1401 map: staticMap,
1402 title: poi.title,
1403 icon: icons["blue"],
1404 oid: x
1405 });
1406 } else {
1407 marker = new google.maps.Marker({
1408 position: uluru,
1409 map: staticMap,
1410 title: poi.title,
1411 oid: x
1412 });
1413 }
1414
1415 newMarkers.push(marker);
1416 newMarkers[x].infobox = new google.maps.InfoWindow({
1417 content: '<a href="'+poi.viewUrl+'"><b>'+poi.title+'</b></a>'
1418 });
1419 google.maps.event.addListener(marker, 'click', (function(marker, x) {
1420 return function() {
1421 newMarkers[x].infobox.open(staticMap, this);
1422 } })(marker, x));
1423 }
1424
1425 },
1426 openInfoMiniMap(marker) {
1427 var doc = sgeo.docs[marker.oid];
1428 var info = createInfoMiniMapFn(doc);
1429 infoMiniMap.setContent(info);
1430 infoMiniMap.open(this.map, marker);
1431 },
1432 addKml: function(kml) {
1433 // populate kml
1434 console.log("enterying kml");
1435 if(typeof (kml)!=="undefined" && kml!=="") {
1436 var kmlUrl="http://www.sacrimonti.org/"+kml;
1437 var ctaLayer = new google.maps.KmlLayer({
1438 url: kmlUrl,
1439 preserveViewport:true,
1440 map: mainMap
1441 });
1442 console.log("latLon added kml:",kmlUrl);
1443 }
1444 },
1445 getCalcImage: function (item) {
1446 var urlImg = "";
1447 if (typeof (item['previewImage']) !== "undefined") {
1448 /* urlImg ="https://images.weserv.nl/?url=" + item.previewImage + "&w=350&h=236&t=square"; */
1449 urlImg=item.previewImage + "?width=200";
1450 } else {
1451 urlImg ="/documents/1838497/1838693/placeholder800x533.jpg/8827fb16-62b9-42e9-9f4d-8993723897af?t=1523453128791&width=200"
1452 }
1453
1454 return urlImg;
1455 }
1456 }
1457
1458 })
1459 </script>
1460 </#macro>
1461
1462 <#function i18n labelId>
1463 <#assign ret = labelId>
1464 <#assign ret=SuggestoMarketspaceAPI.msgAll(groupId?string,domainName,labelId,locale.toString(),defLng) >
1465 <#return ret>
1466</#function>