Home
Asset Publisher
Asset Publisher
Dati di popolazione
Dati di popolazione
Mappa
Bottoni HP
Asset Publisher
An error occurred while processing the template.
Java method "it.extrared.agora.service.AgoraCommonService.getNextEvents(Map)" threw an exception when invoked on it.extrared.agora.service.AgoraCommonService object "it.extrared.agora.service.AgoraCommonService@38c48ba4"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign mapEvent = agoraCommonService... [in template "20097#20123#54040" at line 17, column 1] ----
1<#-- Calendario Eventi HP -->
2
3<#assign agoraCommonService = serviceLocator.findService('it.extrared.agora.service.AgoraCommonService') />
4
5<#assign dlFileEntryService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
6<#assign assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
7<#assign go = languageUtil.get(locale, "agora-go") />
8<#assign no_event = languageUtil.get(locale, "agora-no-event") />
9
10<#assign discover = languageUtil.get(locale, "agora-discover") />
11<#assign events_title = languageUtil.get(locale, "agora-events") />
12<#assign journalArticle=serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService') />
13<#assign goToEventsLabel=languageUtil.get(locale, "agora-go-to" ) + " " + languageUtil.get(locale, "agora-events" ) />
14<#assign allEvents=languageUtil.get(locale, "agora-all-events" ) />
15
16
17<#assign mapEvent = agoraCommonService.getNextEvents(portletPreferences) />
18<section id="calendario" class="calendario-home-page custom-background-white">
19 <div class="section">
20 <div class="container">
21 <div class="row">
22 <div class="col-12 title-con-linea">
23 <h2>${events_title}</h2>
24 </div>
25 </div>
26 <#if mapEvent?size gt 0>
27 <div class="row row-calendar">
28 <div class="it-carousel-wrapper it-carousel-landscape-abstract-three-cols it-calendar-wrapper">
29 <div class="it-carousel-all owl-carousel it-card-bg owl-loaded owl-drag">
30 <div class="owl-stage-outer">
31 <div class="owl-stage" style="transform: translate3d(0px, 0px, 0px); transition: all 0s ease 0s; width: 2172px;">
32
33
34
35 <#-- <#list mapEvent as key, values>
36 <#assign date = dateUtil.getDate(key, "dd MMMM yyyy ", locale) />
37 <#assign listEvent = values />
38
39 <#list listEvent as event>
40 ${event.getTitle()}
41 </#list>
42
43 </#list> -->
44
45 <#assign counter = 0 />
46 <#list mapEvent as key, values>
47 <#assign dataEventi = dateUtil.getDate(key, "yyyy-MM-dd", locale) />
48 <#assign listEvent = values />
49 <#if counter == 0 || counter % 4 == 0>
50 <div class="owl-item active">
51 </#if>
52 <div class="it-single-slide-wrapper">
53 <div class="card-wrapper">
54 <div class="card card-bg">
55 <div class="card-body">
56 <div class="calendar-date d-flex justify-content-around align-items-center">
57 <div class="">
58 <#assign dataEventoGiorno = "" />
59 <#if dataEventi != "">
60 <#setting date_format="dd">
61 <#assign data = dataEventi />
62 <#assign Data_DateObj = dateUtil.parseDate("yyyy-MM-dd", data?string, locale)>
63 <#assign dataEventoGiorno = dateUtil.getDate(Data_DateObj, "dd", locale)?lower_case />
64 </#if>
65
66 <p class="mb-0 calendar-date-number">${dataEventoGiorno}</p>
67
68 <#assign dataEventoGiornoSett = "" />
69 <#if dataEventi != "">
70 <#assign data = dataEventi />
71 <#assign Data_DateObj = dateUtil.parseDate("yyyy-MM-dd", data?string, locale)>
72 <#assign dataEventoGiornoSett = dateUtil.getDate(Data_DateObj, "EEE", locale)?lower_case />
73
74 </#if>
75
76 <p class="m-0 calendar-date-day">${dataEventoGiornoSett}</p>
77 </div>
78 <#assign dataEventoMeseAnno = "" />
79 <#if dataEventi != "">
80 <#assign data = dataEventi />
81 <#assign Data_DateObj = dateUtil.parseDate("yyyy-MM-dd", data?string, locale)>
82
83 <#assign dataEventoMeseAnno = dateUtil.getDate(Data_DateObj, "MMM yyyy", locale)?lower_case />
84
85 </#if>
86 <p class="mb-0 calendar-date-date">${dataEventoMeseAnno?capitalize}</p>
87 </div>
88
89 <#if listEvent?size gt 0>
90 <#list listEvent as event>
91 <#assign title_event = event.getTitle()?replace('<[^>]+>','','r') />
92 <#assign urlArticle = event.getFriendlyURL() />
93
94 <p class="card-text">
95 <a href="${urlArticle}" aria-label="${go} ${title_event}" title="${go} ${title_event}" target="_self">
96 ${title_event}
97 </a>
98 </p>
99 </#list>
100 </#if>
101 </div>
102 </div>
103 </div>
104 </div>
105
106 <#if counter + 1 % 4 == 0 || mapEvent?size == counter + 1 >
107 </div>
108 </#if>
109 <#assign counter = counter + 1 />
110
111 </#list>
112 </div>
113 </div>
114 </div>
115 </div>
116 </div>
117 <div class="all-events">
118 <#assign urlAll = "/eventi" />
119 <#if locale != "it_IT">
120 <#assign urlAll = "/eventi" />
121 </#if>
122 <a title="${goToEventsLabel}" target="_self" href="${urlAll}" aria-label="${goToEventsLabel}" class="btn btn-primary">${allEvents}
123 </a>
124 </div>
125 <#else>
126 <h3 class="font-italic">${no_event}</h3>
127 </#if>
128 </div>
129 </div>
130</section>
131<style>
132 .agora-theme .calendario-home-page .it-calendar-wrapper .owl-stage .owl-item.active .it-single-slide-wrapper{
133 width: 100%;
134 }
135 .agora-theme .calendario-home-page .it-calendar-wrapper .owl-stage .owl-item {
136 min-width: 100%;
137 display: inline-flex;
138
139 }
140</style>