Agenda
Si è verificato un errore nell'elaborarazione del modello.
Error while loading tag library for URI "/WEB-INF/tld/liferay-ui.tld" from TLD location "servletContext:/WEB-INF/tld/liferay-ui.tld"; see cause exception. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign liferay_ui = taglibLiferayHas... [in template "10154#10194#1165751" at line 168, column 1] ----
1<style type="text/css">
2
3 #agendaEventi {
4 width: 100%;
5 height: auto;
6 margin-left: auto;
7 margin-right: auto;
8 font-size: 1.2em;
9 border-left: 1px solid #fff;
10 margin-top: -5px;
11 }
12
13 #agendaEventi .wrap {
14 max-width: 100%;
15 }
16
17 #agendaEventi > ul {
18 column-count: 2;
19 column-gap: 0;
20 padding: 0;
21 margin: auto;
22 position: relative;
23 border-top: 1px solid #fff;
24 }
25
26 #agendaEventi > ul li {
27 display: inline-block;
28 width: 100%;
29 }
30
31 #agendaEventi h3.month {
32 margin-top: 5px;
33 margin-bottom: 7px;
34 text-transform: uppercase;
35 background-color: #004d99;
36 color: white;
37 line-height: 30px;
38 text-indent: 10px;
39 font-weight: bold;
40 font-size: 0.9em;
41 width: calc( 100% - 15px );
42 }
43
44 #agendaEventi ul li div.date {
45 display: block;
46 float: left;
47 clear: left;
48 margin-right: 5px;
49 color: #4d7efe;
50 font-weight: bold;
51 width: 45px;
52 height: 40px;
53 text-align: center;
54 }
55
56 #agendaEventi ul li div.date .day {
57 display: block;
58 font-size: 1.1em;
59 padding: 0px;
60 line-height: 40px;
61 }
62
63 #agendaEventi ul li div.text {
64 width: calc( 100% - 80px );
65 margin-right: 5px;
66 min-width: 100px;
67 float: left;
68 clear: right;
69 /*centering*/
70 height: 40px;
71 display: table;
72 overflow: visible;
73 }
74
75 #agendaEventi ul li div.text p.title {
76 font-size: 0.8em;
77 font-weight: bold;
78 background-color: transparent;
79 /*padding: 0px;*/
80 padding-top: 10px;
81 padding-bottom: 10px;
82 font-weight: bold;
83 /*centering*/
84 display: table-cell;
85 vertical-align: middle;
86 }
87
88 #agendaEventi ul li div.text p.title a {
89 text-decoration: none;
90 text-transform: uppercase;
91 font-weight: bold;
92 color: #000;
93 width: auto;
94 padding: 0;
95 }
96
97 #agendaEventi ul li div.text p.title a:hover {
98 color: #4d7efe;
99 }
100
101 #agendaEventi .lfr-meta-actions.asset-actions {
102 margin-top: -30px;
103 margin-right: 30px;
104 }
105
106 @media only screen and (min-width: 480px) and (max-width: 767px) {
107
108 #agendaEventi > ul {
109 column-count: 1;
110 }
111
112 #agendaEventi ul li div.date {
113 width: 45px;
114 height: 40px;
115 }
116
117 #agendaEventi ul li div.date .day {
118 line-height: 40px;
119 }
120
121 #agendaEventi ul li div.text {
122 width: calc( 100% - 80px );
123 /*centering*/
124 height: 40px;
125 }
126
127 #agendaEventi ul li div.text p.title {
128 font-size: 0.8em;
129 }
130
131 }
132
133 @media only screen and (max-width: 479px) {
134
135 #agendaEventi {
136 font-size: 1.1em;
137 }
138
139 #agendaEventi > ul {
140 column-count: 1;
141 }
142
143 #agendaEventi ul li div.date {
144 width: 40px;
145 height: 40px;
146 }
147
148 #agendaEventi ul li div.text {
149 width: calc( 100% - 65px );
150 /*centering*/
151 height: 40px;
152 }
153
154 #agendaEventi ul li div.date .day {
155 line-height: 40px;
156 }
157
158 #agendaEventi ul li div.text p.title {
159 font-size: 0.85em;
160 padding-top: 3px;
161 padding-bottom: 3px;
162 }
163
164 }
165
166</style>
167
168<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
169
170<div id="agendaEventi" class="agenda-publisher">
171
172 <#assign prevMonth = "" />
173 <#assign currMonth = "" />
174
175 <#list entries as entry>
176
177 <#assign assetRenderer = entry.getAssetRenderer() />
178 <#assign viewUrlTitle = assetRenderer.getUrlTitle() />
179 <#assign groupId = assetRenderer.getGroupId() />
180
181 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) />
182 <#assign fieldTitolo = docXml.valueOf("//dynamic-element[@name='titolo']/dynamic-content/text()") />
183 <#assign fieldContenuto = docXml.valueOf("//dynamic-element[@name='contenuto']/dynamic-content/text()") />
184 <#assign fieldURL = docXml.valueOf("//dynamic-element[@name='indirizzoLink']/dynamic-content/text()") />
185 <#assign fieldData = docXml.valueOf("//dynamic-element[@name='dataNews']/dynamic-content/text()") />
186 <#assign fieldDataObj = dateUtil.newDate(getterUtil.getLong(fieldData)) />
187
188 <#assign currMonth = dateUtil.getDate( fieldDataObj, "MMM", locale ) />
189 <#if currMonth!=prevMonth >
190
191 </ul>
192
193 <h3 class="month">${dateUtil.getDate(fieldDataObj, "MMMM yyyy", locale)}</h3>
194 <ul class="wrap">
195
196 <#assign prevMonth = currMonth />
197
198 </#if>
199
200 <li>
201
202 <div class="date">
203 <span class="day">${dateUtil.getDate(fieldDataObj, "d", locale)}</span>
204 </div>
205
206 <div class="text">
207 <p class="title">
208 <a href="${fieldURL}" tabindex="" title="${fieldTitolo}">${fieldTitolo}</a>
209 </p>
210 </div>
211
212 <div class="lfr-meta-actions asset-actions">
213 <@getEditIcon />
214 </div>
215
216 </li>
217
218 </#list>
219
220 </ul>
221
222</div>
223
224<#macro getEditIcon>
225
226 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
227
228 <#assign redirectURL = renderResponse.createRenderURL() />
229
230 ${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")}
231 ${redirectURL.setWindowState("pop_up")}
232
233 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) />
234
235 <#if validator.isNotNull(editPortletURL)>
236
237 <#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) />
238
239 <@liferay_ui["icon"] image="edit" message=title
240 url="javascript:Liferay.Util.openWindow({dialog: {width: 1060}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
241 />
242
243 </#if>
244
245 </#if>
246
247</#macro>