In Toscana è nato il Centro regionale per l'accessibilità - Toscana Accessibile
An error occurred while processing the template.
The string doesn't match the expected date/time/date-time format. The string to parse was: "lun, 31 gen 2022 18:18:29 +0100". The expected format was: "EEE, dd MMM yyyy". The nested reason given follows: Unparseable date: "lun, 31 gen 2022 18:18:29 +0100" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign display_date = modifiedDate?d... [in template "10155#10195#176415" at line 95, column 9] ----
1<#setting time_zone=timeZone.ID>
2<#setting locale=locale.toString()>
3
4<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
5<#assign journalArticleId = .vars['reserved-article-id'].data/>
6<#assign article = JournalArticleLocalService.getArticle(groupId, journalArticleId) />
7<#assign AssetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] />
8<#assign entry = AssetEntryLocalServiceUtil.fetchEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
9<#assign DLFileEntryLocalServiceUtil = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryLocalService') />
10
11<#assign currentArticleAssetEntryId = entry.getEntryId() />
12
13<#assign entryTitle = htmlUtil.escape(entry.getTitle(locale)?html) />
14<#assign assetRenderer = entry.getAssetRenderer() />
15
16<style>
17 .portlet:hover #pagina-notizia .visible-interaction {
18 display: inline-block;
19 }
20</style>
21
22<div id="pagina-notizia" class="assets-news-container container-fluid">
23
24 <div class="data text-uppercase date">
25 <#if DataVisualizzazione.getData() != "" >
26
27
28 <#assign DataVisualizzazione_DateObj = getterUtil.getString(DataVisualizzazione.getData()) />
29 <#assign date = dateUtil.parseDate("yyyy-MM-dd", DataVisualizzazione_DateObj, locale) />
30 ${date?string('dd MMMM yyyy')}
31
32 </#if>
33
34 </div>
35
36 <h1 class="titolo title">
37 ${.vars['reserved-article-title'].data} <@getEditIcon />
38 </h1>
39
40
41
42
43
44 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) />
45 <#assign immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") />
46 <div>
47 <#list entry.getCategories() as category>
48 <#assign catName = category.getName()?lower_case />
49 <#assign catName = catName?replace("à","a") />
50 <#assign catNameIcon = catName?replace(" e ","_") />
51 <#assign catNameLink = catName?replace(" ","-") />
52 <span><a href="/news/${catNameLink}" title="Leggi altre notizie della categoria ${catName}" class="nodecoration"><i class="circle-block rt-icon-${catNameIcon} "></i></a></span>
53 </#list>
54 </div>
55
56 <#assign isVisible = getterUtil.getBoolean(Immagine.MostraSoloElenco.getData()) />
57
58 <#if Immagine.getData() != "" && !isVisible >
59 <img class="img-top img-responsive" alt="${Immagine.getAttribute("alt")}" data-fileentryid="${Immagine.getAttribute("fileEntryId")}" src="${Immagine.getData()}" />
60
61 <#else>
62 <#if immagine != "" && !isVisible>
63 <#assign json = jsonFactoryUtil.createJSONObject(immagine) />
64 <#assign uuid = json.getString("uuid") />
65 <#assign groupIdScopedd = themeDisplay.getLayout().getGroup().getGroupId() />
66
67 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuid,groupIdScopedd) />
68 <#assign fileUrl2 = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
69 <img class="img-top img-responsive" alt="${fileEntry.getTitle()}" src="${fileUrl2}" />
70 </#if>
71
72 </#if>
73
74
75
76
77 <#if IdVideoYoutube.getData() != "" >
78 <div class="video">
79 <iframe width="460" height="315" src="https://www.youtube-nocookie.com/embed/${IdVideoYoutube.getData()}" allowfullscreen style="width: 100%; border:0">
80
81 </iframe>
82 </div>
83 </#if>
84 <#if Sottotitolo.getData() != "" >
85 <h2 class="subtitle">${Sottotitolo.getData()}</h2>
86 </#if>
87
88 <#if Contenuto.getData() != "" >
89 <div class="contenuto">${Contenuto.getData()}</div>
90 </#if>
91
92 <div class="pull-right text-right" style="margin: 15px 0;">
93 <i>Article ID: # ${.vars['reserved-article-id'].data}</i> <br/>
94 <#assign modifiedDate = .vars['reserved-article-modified-date'].data />
95 <#assign display_date = modifiedDate?datetime("EEE, dd MMM yyyy") />
96 <#assign display_date = display_date?string["dd.MM.yyyy"] />
97 <i>Ultimo aggiornamento: ${display_date}</i>
98 </div>
99
100 <div class="clearfix"></div>
101
102
103 <div class="post-social pull-right">
104 <div class="condividi text-uppercase">Condividi</div>
105 <ul class="inline">
106 <li>
107 <a class="fb_share" href="" title="Condividi su Facebook">
108 <span class="hide">Condividi su Facebook</span>
109 <span class="icon-stack" >
110 <i class="icon-circle icon-stack-base"></i>
111 <i class="icon-facebook icon-light"></i>
112 </span>
113 </a>
114 </li>
115 <li>
116 <a class="gplus" href="" title="Condividi su google plus">
117 <span class="hide">Condividi su google plus</span>
118 <span class="icon-stack" >
119 <i class="icon-circle icon-stack-base"></i>
120 <i class="icon-google-plus icon-light"></i>
121 </span>
122 </a>
123 </li>
124 <li>
125 <a class="tweet" href="" title="Condividi su twitter">
126 <span class="hide">Condividi su twitter</span>
127 <span class="icon-stack" >
128 <i class="icon-circle icon-stack-base"></i>
129 <i class="icon-twitter icon-light"></i>
130 </span>
131 </a>
132 </li>
133 </ul>
134 </div>
135 <div class="clearfix"></div>
136
137 <#if Documenti.getSiblings()?has_content && (Documenti.getSiblings()?size > 1) >
138 <h3 class="subtitle text-uppercase">Documenti Allegati</h3>
139 <div class="table tabella-allegati">
140 <#list Documenti.getSiblings() as cur_Allegati>
141 <#if cur_Allegati?has_content && cur_Allegati.getData() != "">
142 <#assign groupId = "" >
143 <#assign uuId = "" >
144
145 <#assign counter = 0 >
146
147 <#list "${cur_Allegati.getData()}"?split("/") as x>
148 <#if counter == 2>
149 <#assign groupId = x?number?long >
150 </#if>
151
152 <#if counter == 5>
153 <#assign uuId = x?split("?")[0] >
154 </#if>
155
156 <#assign counter = counter+1 >
157 </#list>
158
159 <#assign file = DLFileEntryLocalServiceUtil.getDLFileEntryByUuidAndGroupId(uuId, groupId) />
160
161 <div class="row-table attachments">
162 <div class="cell-table min-width-table">
163 <i class="icon-file icon-2x"></i>
164 </div>
165 <div class="cell-table">
166 <a href="${cur_Allegati.getData()}" target="_blank"> ${file.fileName}</a>
167 </div>
168
169 </div>
170 </#if>
171 </#list>
172 </div>
173 </#if>
174 <#if Photogallery.getSiblings()?has_content && Photogallery.getSiblings()?size > 1>
175 <div class="rt-gallery">
176 <#assign nowTimeStamp = .now?long />
177
178
179 <#assign listSize = Photogallery.getSiblings()?size />
180 <#assign counterTemp = 0 />
181 <#assign counterTotal = 0 />
182
183 <div class="rt-gallery__slider" id="gallery-stage-${nowTimeStamp}">
184 <#list Photogallery.getSiblings() as cur_ImmaginePerGallery>
185 <#if cur_ImmaginePerGallery.getData()?? && cur_ImmaginePerGallery.getData() != "">
186
187 <#assign counterTemp = counterTemp + 1 />
188 <#assign counterTotal = counterTotal + 1 />
189
190
191 <#if counterTemp == 1>
192 <div class="rt-gallery__panel">
193 <ul class="rt-gallery__list">
194 </#if>
195
196 <li class="rt-gallery__item">
197 <a data-lightbox="gallery_${nowTimeStamp}" href="${cur_ImmaginePerGallery.getData()}">
198 <img alt="${cur_ImmaginePerGallery.getAttribute("alt")}" src="${cur_ImmaginePerGallery.getData()}">
199 </a>
200 </li>
201
202
203 <#if counterTemp == 8 || counterTotal == listSize>
204 </ul>
205 </div>
206 </#if>
207
208 <#if counterTemp == 8 >
209 <#assign counterTemp = 0 />
210 </#if>
211
212 </#if>
213 </#list>
214 </div>
215
216</div>
217 </#if>
218 <div class="pull-right text-uppercase readmore"><a href="/web/toscana-accessibile/in-evidenza" title="Archivio notizie">TUTTE LE NOTIZIE > </a></div>
219 <div class="clearfix"></div>
220
221</div>
222
223
224<#macro getEditIcon>
225 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
226 <#if renderResponse??>
227 <#assign redirectURL = renderResponse.createRenderURL() />
228
229 ${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")}
230 ${redirectURL.setWindowState("pop_up")}
231
232 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" />
233
234 <#if validator.isNotNull(editPortletURL)>
235 <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) />
236
237 <@liferay_ui["icon"]
238 cssClass="icon-monospaced visible-interaction"
239 icon="pencil"
240 markupView="lexicon"
241 message=title
242 url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
243 />
244 </#if>
245 </#if>
246 </#if>
247</#macro>