Ausili e Tecnologie - Toscana Accessibile
Une erreur s'est produite lors du traitement du gabarit.
The string doesn't match the expected date/time/date-time format. The string to parse was: "lun, 14 mar 2022 15:04:28 +0100". The expected format was: "EEE, dd MMM yyyy". The nested reason given follows: Unparseable date: "lun, 14 mar 2022 15:04:28 +0100" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign display_date = modifiedDate?d... [in template "10155#10195#163559" at line 102, column 9] ----
1<#setting time_zone=timeZone.ID>
2<#setting locale=locale.toString()>
3<#setting datetime_format="dd MMMM yyyy">
4
5<#assign currentUrl = "" />
6
7<#if !themeDisplay.getLayoutSet().getVirtualHostname()?has_content>
8 <#assign currentUrl = "/web" + themeDisplay.getScopeGroup().getFriendlyURL() />
9</#if>
10
11
12<div id="pagina-argomento" class="assets-news-container container-fluid">
13
14 <#assign plid = themeDisplay.getLayout().getPlid() />
15 <#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
16
17 <#assign currentLayout = layoutLocalService.getLayout(plid?number?long) />
18 <#assign listAncestors = currentLayout.getAncestors() />
19 <#assign parentCurrentLayout = "" />
20
21 <#if currentLayout.isRootLayout()>
22 <#assign icona = currentLayout.getExpandoBridge().getAttribute("icona") />
23 <#assign colore = currentLayout.getExpandoBridge().getAttribute("colore-icona") />
24 <#else>
25 <#assign parentCurrentLayout = layoutLocalService.getLayout(currentLayout.getParentPlid()) />
26 <#assign num = (listAncestors?size -2) />
27 <#assign icona = currentLayout.getExpandoBridge().getAttribute("icona") />
28 <#assign colore = currentLayout.getExpandoBridge().getAttribute("colore-icona") />
29 </#if>
30
31 <script type="text/javascript">
32 $(document).ready(function() {
33 $( '<style type="text/css">.portlet-navigation .nav-menu li a.active{border-left: 5px solid ${colore};background-color: white}</style>' ).appendTo( "head" );
34
35 var size = $(".titolo-argomento").height();
36 if (size > 100){
37 $(".titolo-argomento").css('line-height','1');
38 }
39
40 var iconClass = $(".journal-content-article .icona-argomento").attr("class");
41 $(".nav-pills > li > a").before('<span id="icona-argomento" class="'+iconClass+'"></span>')});
42 </script>
43
44 <div class="table">
45 <div class="row-table">
46 <#if icona?has_content >
47 <div class="cell-table min-width-table"><span class="icona-argomento circle-block rt-icon-${icona}"></span></div>
48 </#if>
49 <div class="cell-table"><h1 class="title titolo-argomento">${.vars['reserved-article-title'].data}</h1> </div>
50 </div>
51 </div>
52
53 <#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
54 <#assign journalArticleId = .vars['reserved-article-id'].data />
55 <#assign article = JournalArticleLocalService.getArticle(groupId, journalArticleId) />
56 <#assign AssetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] />
57 <#assign entry = AssetEntryLocalServiceUtil.fetchEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
58 <#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
59
60 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) />
61 <#assign immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") />
62
63
64
65
66 <#if Immagine.getData() != "" >
67 <img class="img-top img-responsive" alt="${Immagine.getAttribute("alt")}" data-fileentryid="${Immagine.getAttribute("fileEntryId")}" src="${Immagine.getData()}" />
68
69 <#else>
70 <#if immagine != "">
71 <#assign json = jsonFactoryUtil.createJSONObject(immagine) />
72 <#assign uuid = json.getString("uuid") />
73 <#assign groupIdScopedd = themeDisplay.getLayout().getGroup().getGroupId() />
74
75 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuid,groupIdScopedd) />
76 <#assign fileUrl2 = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
77 <img class="img-top img-responsive" alt="${fileEntry.getTitle()}" src="${fileUrl2}" />
78 </#if>
79
80 </#if>
81
82
83 <#if IdVideoYoutube.getData() != "" >
84 <div class="video">
85 <iframe width="460" height="315" src="https://www.youtube-nocookie.com/embed/${IdVideoYoutube.getData()}" allowfullscreen style="width: 100%; border:0">
86
87 </iframe>
88 </div>
89 </#if>
90
91 <#if Sottotitolo.getData() != "" >
92 <h4 style="padding: 15px 0 10px 0;font-weight: normal;font-style: italic;text-align: justify;">${Sottotitolo.getData()}</h4>
93 </#if>
94
95 <#if Contenuto.getData() != "" >
96 <div class="contenuto">${Contenuto.getData()}</div>
97 </#if>
98
99 <div class="pull-right text-right" style="margin: 15px 0;">
100 <i>Article ID: # ${.vars['reserved-article-id'].data}</i> <br/>
101 <#assign modifiedDate = .vars['reserved-article-modified-date'].data />
102 <#assign display_date = modifiedDate?datetime("EEE, dd MMM yyyy") />
103 <#assign display_date = display_date?string["dd.MM.yyyy"] />
104 <i>Ultimo aggiornamento: ${display_date}</i>
105 </div>
106
107 <div class="clearfix"></div>
108
109
110
111 <div class="post-social pull-right">
112 <div class="condividi text-uppercase">Condividi</div>
113 <ul class="inline">
114 <li>
115 <a class="fb_share" href="" title="Condividi su Facebook">
116 <span class="hide">Condividi su Facebook</span>
117 <span class="icon-stack" >
118 <i class="icon-circle icon-stack-base"></i>
119 <i class="icon-facebook icon-light"></i>
120 </span>
121 </a>
122 </li>
123 <li>
124 <a class="gplus" href="" title="Condividi su google plus">
125 <span class="hide">Condividi su google plus</span>
126 <span class="icon-stack" >
127 <i class="icon-circle icon-stack-base"></i>
128 <i class="icon-google-plus icon-light"></i>
129 </span>
130 </a>
131 </li>
132 <li>
133 <a class="tweet" href="" title="Condividi su twitter">
134 <span class="hide">Condividi su twitter</span>
135 <span class="icon-stack" >
136 <i class="icon-circle icon-stack-base"></i>
137 <i class="icon-twitter icon-light"></i>
138 </span>
139 </a>
140 </li>
141 </ul>
142 </div>
143 <div class="clearfix"></div>
144
145 <#if Approfondimenti?? && MostraPagineAllegate?has_content >
146 <#if getterUtil.getBoolean(MostraPagineAllegate.getData()) >
147 <#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
148
149
150 <h3 class="subtitle text-uppercase">Approfondimenti</h3>
151 <div class="table tabella-allegati">
152
153 <#if Approfondimenti.getSiblings()?has_content>
154 <#list Approfondimenti.getSiblings() as cur_Approfondimenti>
155 <#assign
156 journalArticleClassPK = getterUtil.getLong(cur_Approfondimenti.getData()?eval.classPK)
157
158 />
159 <#if journalArticleClassPK?? >
160 <#assign approfondimento = JournalArticleLocalService.fetchLatestArticle(journalArticleClassPK)
161 approfondimentoUrl = currentUrl + "/-/" + approfondimento.getUrlTitle() />
162 <a href="${approfondimentoUrl}"></a>
163 <div class="row-table attachments">
164 <div class="cell-table min-width-table"><i class="icon-circle-arrow-right icon-2x"></i></div>
165 <div class="cell-table"><a href="${approfondimentoUrl}">${approfondimento.getTitle(locale)}</a></div>
166 </div>
167 </#if>
168 </#list>
169 </#if>
170 </div>
171 </#if>
172 </#if>
173
174 <#if Documenti.getSiblings()?has_content >
175
176 <#list Documenti.getSiblings() as cur_Allegati>
177
178 <#if cur_Allegati?has_content && cur_Allegati.getData() != "">
179
180 <#if cur_Allegati?is_first>
181 <h3 class="subtitle text-uppercase">Documenti Allegati</h3>
182 <div class="table tabella-allegati">
183 </#if>
184
185 <#assign groupId = "" >
186 <#assign uuId = "" >
187
188 <#assign counter = 0 >
189
190 <#list "${cur_Allegati.getData()}"?split("/") as x>
191 <#if counter == 2>
192 <#assign groupId = x?number?long >
193 </#if>
194
195 <#if counter == 5>
196 <#assign uuId = x?split("?")[0] >
197 </#if>
198
199 <#assign counter = counter+1 >
200 </#list>
201
202 <#assign file = DLFileEntryLocalServiceUtil.getDLFileEntryByUuidAndGroupId(uuId, groupId) />
203
204 <div class="row-table attachments">
205 <div class="cell-table min-width-table">
206 <i class="icon-file icon-2x"></i>
207 </div>
208 <div class="cell-table">
209 <a href="${cur_Allegati.getData()}" target="_blank"> ${file.fileName}</a>
210 </div>
211
212 </div>
213
214 <#if cur_Allegati?is_last>
215 </div>
216 </#if>
217 </#if>
218 </#list>
219 </#if>
220
221<#assign jsPath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getJavaScriptPath() + "/" />
222
223
224
225
226
227<#assign jsPath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getJavaScriptPath() + "/" />
228<#assign DLFileEntryLocalServiceUtil = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryLocalService') />
229
230
231
232
233
234
235 <#if (Photogallery?? && Photogallery.getData()?has_content) && Photogallery.getData()!="">
236
237
238 <#assign count = 0 />
239 <#list Photogallery.getSiblings() as cur_Immaginegalleria>
240
241 <#if cur_Immaginegalleria?is_first>
242 <h3 class="subtitle text-uppercase">Galleria Fotografica</h3>
243 <!-- SEZIONE GALLERIA -->
244 <div id="gallery-div">
245 <!-- Gallery -->
246 <ul class="dsu-gallery dsu-grid">
247 </#if>
248
249 <#if cur_Immaginegalleria?? && cur_Immaginegalleria.getData()?? && cur_Immaginegalleria.getData() != "">
250 <#assign altImage = "Immagine dell'articolo"/>
251
252 <#if cur_Immaginegalleria.getAttribute("alt")?? >
253 <#assign altImage = cur_Immaginegalleria.getAttribute("alt") />
254 </#if>
255 <li class="dsu-gallery__item">
256 <a data-lightbox="galleria1" data-title="${altImage}" href="${cur_Immaginegalleria.getData()}">
257 <img alt="${altImage}" src="${cur_Immaginegalleria.getData()}">
258 </a>
259 </li>
260 </#if>
261 <#assign count = (count + 1) />
262 <#if cur_Immaginegalleria?is_last>
263 </ul>
264 </div>
265 </#if>
266 </#list>
267
268 <script>
269 $(document).ready(function(){
270 $('.dsu-gallery').slick({infinite: true, slidesToShow: ${count}});
271 });
272 </script>
273
274 <style>
275
276 li.dsu-gallery__item.slick-slide.slick-active {
277 height: 85px;
278 }
279
280 #gallery-div {
281 border: 1px solid #ececec;
282 padding: 2em 3em 2em 3em;
283 background-color: #e6e6e6;
284 }
285
286 ul.dsu-gallery.dsu-grid {
287 padding-left: 0;
288 }
289
290 </style>
291
292 </#if>