Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy93.getFileEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy93 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl@405bf059"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign fileEntry = DLFileEntryLocalS...  [in template "10154#10192#735807" in macro "getLinkAndAllegati" at line 423, column 73]
	- Reached through: @getLinkAndAllegati  [in template "10154#10192#735807" at line 376, column 9]
----
1<#setting locale="it_IT"> 
2 
3<#assign hasCookie > 
4    <@rt.checkCookieAcceptance siteId=themeDisplay.getScopeGroupId() cookieToCheck="third-party" /> 
5</#assign> 
6 
7<#assign AssetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] /> 
8<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
9 
10<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
11<#assign journalArticleId = .vars['reserved-article-id'].data/> 
12 
13<#assign article = JournalArticleLocalService.getArticle(groupId, journalArticleId) /> 
14<#assign entry = AssetEntryLocalServiceUtil.fetchEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) /> 
15 
16<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]> 
17<#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(entry.entryId) /> 
18<#assign UserLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.UserLocalServiceUtil"]> 
19<#assign DLFileEntryLocalServiceUtil =  serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryLocalService') />  
20 
21<#assign currentArticle = JournalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) /> 
22<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
23<#assign currentArticleAssetEntry = AssetEntryLocalServiceUtil.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
24<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
25 
26<#assign entryTitle = htmlUtil.escape(entry.getTitle(locale)?html) /> 
27 
28<#assign siteBaseURL = themeDisplay.getPortalURL() />  
29<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() /> 
30 
31<#assign assetRenderer = entry.getAssetRenderer() /> 
32<#assign urlSocial = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
33 
34<#if article.getExpandoBridge().hasAttribute("TinyURL") > 
35	<#assign urlSocialApp = article.getExpandoBridge().getAttribute("TinyURL")?html /> 
36	 
37	<#if urlSocialApp?? && urlSocialApp != ""> 
38		<#assign urlSocial = "http://w3.webrt.it" + urlSocialApp /> 
39	</#if> 
40</#if> 
41 
42 
43 
44<#assign appImagePath = "" /> 
45<#if Immagine.getData()?? && Immagine.getData() != ""> 
46	<#assign appImagePath = "http://toscana-notizie.it" + Immagine.getData() /> 
47<#else> 
48	<#assign appImagePath = "http://toscana-notizie.it/" + imagePath + "/toscana-notizie-placeholder.png" /> 
49</#if> 
50 
51<#assign appSummary = "" /> 
52<#if entry.getSummary(locale)?? && entry.getSummary(locale) != ""> 
53	<#assign appSummary = entry.getSummary(locale) /> 
54</#if> 
55 
56 
57 
58 
59<#assign Autori = [] /> 
60<#assign temi = [] /> 
61<#assign Provincia = [] /> 
62 
63<#assign currentCategory = 0 /> 
64 
65<#list categoryList as category> 
66    <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]> 
67    <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) /> 
68    <#if assetVocabulary.getName() == "Temi"> 
69	 
70		<#if category.getParentCategory()??> 
71			<#assign childCategory = category.getName()/> 
72		<#else> 
73			<#if (currentCategory?? && currentCategory != category.getCategoryId()) > 
74				<#assign currentCategory = category.getCategoryId() /> 
75				<#assign parentCategory = category.getName()/> 
76				<#assign temi = temi + [parentCategory] /> 
77			</#if> 
78		</#if> 
79		 
80    <#elseif assetVocabulary.getName() == "5. Autori"> 
81        <#assign Autori = Autori + [category.getName()] /> 
82	<#elseif assetVocabulary.getName() == "Provincia"> 
83        <#assign Provincia = Provincia + [category.getName()] /> 
84    </#if> 
85</#list> 
86 
87<#list categoryList as category> 
88    <#if category.getParentCategory()??> 
89        <#assign childCategory = category.getName()/> 
90    <#else> 
91        <#assign parentCategory = category.getName()/> 
92    </#if> 
93</#list> 
94 
95<style> 
96.header-title{ 
97    display:none; 
98
99.header-back-to{ 
100    display:none; 
101
102 
103.hide-content{ 
104    visibility:hidden; 
105    height : 0; 
106    padding: 0px !important; 
107    overflow: hidden; 
108
109 
110.content_para{ 
111    float:none !important; 
112
113 
114.hide-content img{ 
115    display:none; 
116
117</style> 
118 
119	 
120<#assign classColumnLeft = "9" /> 
121 
122<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
123 
124<#assign hasLinkForColumn = "false" /> 
125<#list currentArticleRelatedLinks as related_entry> 
126	<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
127	<#assign relatedAssetEntry = AssetEntryLocalServiceUtil.getEntry(relatedAssetEntryId) /> 
128	<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
129 
130	<#if relatedAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle' > 
131		<#assign hasLinkForColumn = "true" /> 
132	</#if> 
133</#list> 
134 
135<#if (currentArticleRelatedLinks?? && currentArticleRelatedLinks?has_content) && hasLinkForColumn == "true" > 
136	<#assign classColumnLeft = "8" /> 
137</#if> 
138 
139<section class="container rt-container" id="content"> 
140	<div class="row"> 
141		<!-- 1 --> 
142		<div class="col-md-12 portlet-column portlet-column-only" id="column-1"> 
143			<!-- Subheader news --> 
144			<section class="rt-subheader rt-subheader--news"> 
145				<div class="rt-subheader__top"> 
146					<div class="rt-subheader__category-wrapper"> 
147						<#list temi as category> 
148							<div class="rt-subheader__category"> 
149								${category} 
150							</div> 
151						</#list> 
152					</div>	 
153 
154					<div class="rt-subheader__publication"> 
155						 
156						<#assign nomeAutore = "" /> 
157						<#if Autori?? && (Autori?size > 0)> 
158							<div class="rt-subheader__author"> 
159								di 
160								<#list Autori as autore> 
161									<#if autore != "redazione"> 
162										<#assign userAutore = UserLocalServiceUtil.getUserByScreenName(themeDisplay.getCompanyId(), autore) /> 
163										<#if userAutore??  && userAutore?has_content> 
164											<#assign nomeAutore =  userAutore.getFullName() /> 
165										</#if> 
166									<#else> 
167										<#assign nomeAutore = "Redazione" /> 
168									</#if> 
169 
170									<a title="Vai alla pagina dell'autore ${nomeAutore?html}" aria-label="Vai alla pagina dell'autore ${nomeAutore?html}" href="/autori/${nomeAutore?html}"> 
171										 ${nomeAutore?html} 
172									</a> 
173 
174								</#list> 
175							</div> 
176						</#if>		 
177 
178							 
179						<#list Provincia as location> 
180							<div class="rt-news-location"> 
181								<i aria-hidden="true" class="fas fa-map-marker-alt"></i> ${location} 
182							</div> 
183						</#list> 
184 
185						<#assign publishDate = .vars['reserved-article-display-date'].data /> 
186						<#assign publishDate = publishDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
187						<#assign dateFormatDayMonth = "dd MMMM yyyy"> 
188						<#assign dateFormatHours = "HH:mm"> 
189						<div class="rt-subheader__date">${publishDate?string(dateFormatDayMonth)?remove_beginning("0")}</div> 
190						<div class="rt-subheader__time">${publishDate?string(dateFormatHours)?remove_beginning("0")}</div> 
191						<a class="rt-subheader__button rt-subheader__button-print" onclick="window.print();" href="javascript:void(0);" title="Stampa l'articolo"><i aria-hidden="true" class="far fa-print"></i></a> 
192					</div> 
193				</div> 
194 
195				<div class="rt-subheader__wrapper"> 
196					<div class="rt-subheader__title-wrapper"> 
197						<h1 class="rt-subheader__title"> 
198							${.vars['reserved-article-title'].data}  
199						</h1><@getEditIcon /> 
200					</div> 
201					 
202					<#if ImmagineApertura?? && ImmagineApertura.getData()?? && ImmagineApertura.getData() != "" && ImmagineApertura.getData() == "true" > 
203						<#if Immagine.getData()?? && Immagine.getData() != ""> 
204							 
205							<#assign altIMG = "" /> 
206							<#if (Immagine.getAttribute("alt")?? || Immagine.getAttribute("fileEntryId")??)> 
207								<#assign altIMG = Immagine.getAttribute("alt") /> 
208							<#else> 
209								<#assign altIMG = .vars['reserved-article-title'].data /> 
210							</#if> 
211 
212							<div class="rt-subheader__cover-media" aria-label="${altIMG}" style="background-image: url('${Immagine.getData()}');"> 
213 
214							</div> 
215							<#if Descrizione?? && Descrizione.getData() != ""> 
216								<div class="rt-subheader__caption"> 
217									${Descrizione.getData()} 
218								</div> 
219							</#if> 
220						</#if> 
221					</#if> 
222 
223					<#if entry.getSummary(locale)?? && entry.getSummary(locale) != ""> 
224						<div class="rt-subheader__excerpt"> 
225							${entry.getSummary(locale)} 
226						</div> 
227					</#if> 
228				</div> 
229 
230			</section> 
231		</div> 
232	</div> 
233	<div class="row has-sidebar"> 
234		<#if Testo?? && Testo.getData() != ""> 
235			<div class="col-md-12 col-lg-${classColumnLeft} portlet-column portlet-column-first" id="column-2"> 
236				<div class="rt-page__content rt-page-content--left"> 
237					<div class="rt-page__content-text"> 
238						 
239						<#if ImmagineApertura?has_content && !getterUtil.getBoolean(ImmagineApertura.getData()) || (ImmagineApertura?has_content && (ImmagineApertura.getData() == "false" || ImmagineApertura.getData() == ""))  > 
240 
241							<#if Immagine.getData()?? && Immagine.getData() != ""> 
242 
243								<#assign altIMG = "" /> 
244								<#if (Immagine.getAttribute("alt")?? || Immagine.getAttribute("fileEntryId")??)> 
245									<#assign altIMG = Immagine.getAttribute("alt") /> 
246								<#else> 
247									<#assign altIMG = .vars['reserved-article-title'].data /> 
248								</#if>	 
249 
250								<figure class="rt-image-align-left"> 
251									<img alt="${altIMG}" src="${Immagine.getData()}" /> 
252									<#if Descrizione?? && Descrizione.getData() != ""> 
253										<figcaption>${Descrizione.getData()}</figcaption> 
254									</#if> 
255								</figure> 
256							</#if> 
257						</#if> 
258						<p> 
259							<#if Testo??> 
260								<@rt.pruneExternalContent html=Testo.getData() acceptedCookie=hasCookie?trim?boolean /> 
261							</#if> 
262						</p> 
263					</div> 
264				</div> 
265 
266				<div class="rt-btn-wrapper rt-btn-wrapper--right-align"> 
267					<div class="a2a_kit a2a_kit_size_32 a2a_default_style" data-a2a-title="${.vars['reserved-article-title'].data?html}"> 
268						<a class="a2a_button_facebook"></a> 
269						<a class="a2a_button_twitter"></a> 
270						<a class="a2a_button_email"></a> 
271						<a class="a2a_button_whatsapp"></a> 
272						<a class="a2a_button_linkedin"></a> 
273					</div> 
274				</div> 
275			</div> 
276		</#if> 
277		 
278		<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
279		<#if (currentArticleRelatedLinks?? && currentArticleRelatedLinks?has_content) > 
280			<div class="col-md-12 col-lg-4 portlet-column portlet-column-last" id="column-3"> 
281 
282				<#assign hasAllegato = "false" /> 
283				<#assign hasLink = "false" /> 
284				<#list currentArticleRelatedLinks as related_entry> 
285					<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
286					<#assign relatedAssetEntry = AssetEntryLocalServiceUtil.getEntry(relatedAssetEntryId) /> 
287					<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
288 
289					<#if relatedAssetEntry.getClassName() == 'com.liferay.document.library.kernel.model.DLFileEntry' > 
290						<#assign hasAllegato = "true" /> 
291					<#elseif relatedAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle' > 
292						<#assign hasLink = "true" /> 
293					</#if> 
294				</#list> 
295 
296				<#if (hasLink == "true") > 
297					<div class="rt-sidebar-content"> 
298						<section class="rt-section rt-section--box rt-section--box-row rt-section--related rt-section--sidebar" aria-label=""> 
299							<div class="rt-section-title-wrapper"> 
300								<h3 class="rt-section-title">Notizie collegate</h3> 
301							</div> 
302							<div class="rt-section__wrapper"> 
303								<#list currentArticleRelatedLinks as related_entry> 
304									<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
305									<#assign relatedAssetEntry = AssetEntryLocalServiceUtil.getEntry(relatedAssetEntryId) /> 
306									<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
307 
308									<#if relatedAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle' > 
309										<#assign relatedArticle = JournalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) /> 
310										<#if relatedArticle?? && relatedArticle != ""> 
311											 
312											<#assign assetRendererRelated = relatedAssetEntry.getAssetRenderer() /> 
313											<#assign rendererURLRelated = siteBaseURL + "/-/" + assetRendererRelated.getUrlTitle() /> 
314 
315											<#assign docXml = saxReaderUtil.read(relatedArticle.getContent()) /> 
316 
317											<#assign Immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") /> 
318											 
319											<#assign fileUrl = "" /> 
320											<#assign altImg = "" /> 
321											<#if Immagine?has_content> 
322												<#assign json = jsonFactoryUtil.createJSONObject(Immagine) /> 
323												<#assign nameImg = json.getString("name") /> 
324												<#assign altImg = json.getString("alt") /> 
325												<#assign fileEntryId = json.getLong("fileEntryId") /> 
326												<#assign uuiD = json.getString("uuid") /> 
327												<#assign groupId = json.getLong("groupId") /> 
328 
329												<#if fileEntryId != 0> 
330													<#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
331													<#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
332												<#else> 
333													<#if groupId != 0 && uuiD != ""> 
334														<#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) /> 
335														<#if fileEntry?? > 
336															<#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
337														</#if>  
338													</#if> 
339												</#if> 
340											<#else> 
341												<#assign fileUrl = imagePath + "/toscana-notizie-placeholder.png" /> 
342											</#if> 
343 
344 
345											<div class="rt-box rt-box--has-image rt-box--has-image-small"> 
346												<div class="rt-box__image"> 
347													<img alt="Immagine ${relatedAssetEntry.getTitle(locale)?html}" src="${fileUrl?html}"> 
348 
349												</div> 
350 
351												<div class="rt-box__text"> 
352													<div class="rt-box__publication"> 
353														<div class="rt-box__date">${relatedAssetEntry.publishDate?string["dd MMMM"]?remove_beginning("0")}</div> 
354														<div class="rt-box__time">${relatedAssetEntry.publishDate?string["HH:mm"]?remove_beginning("0")}</div> 
355													</div> 
356 
357													<div class="rt-box__title"> 
358														<a title="Vai alla pagina ${relatedAssetEntry.getTitle(locale)?html}" aria-label="Vai alla pagina ${relatedAssetEntry.getTitle(locale)?html}" href="${rendererURLRelated?html}"> 
359															${relatedAssetEntry.getTitle(locale)?html} 
360														</a> 
361													</div> 
362												</div> 
363											</div> 
364 
365										</#if> 
366									</#if> 
367								</#list> 
368							</div> 
369						</section> 
370					</div> 
371				</#if> 
372			</div> 
373		</#if> 
374	</div> 
375	 
376	<@getLinkAndAllegati /> 
377	 
378</section> 
379 
380<#macro getLinkAndAllegati> 
381	<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
382	<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
383	<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
384	 
385	<#assign currentArticle = JournalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) /> 
386	<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
387	<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
388	<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
389	<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
390 
391	<#assign hasAllegato = "false" /> 
392	<#assign hasLink = "false" /> 
393	<#if currentArticleRelatedLinks?? && currentArticleRelatedLinks?has_content> 
394		<#list currentArticleRelatedLinks as related_entry> 
395			<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
396			<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
397			<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
398 
399			<#if relatedAssetEntry.getClassName() == 'com.liferay.document.library.kernel.model.DLFileEntry' > 
400				<#assign hasAllegato = "true" /> 
401			<#elseif relatedAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle' > 
402				<#assign hasLink = "true" /> 
403			</#if> 
404		</#list> 
405	</#if> 
406 
407	<#if (hasAllegato == "true")> 
408		<div class="rt-container"> 
409			<div class="rt-wrapper"> 
410				<section class="rt-section rt-section--grid rt-section--grid-3" aria-label="Sezione link e allegati"> 
411					<div class="rt-section-title-wrapper"> 
412						<h2 class="rt-section-title"><i aria-hidden="true" class="far fa-paperclip"></i> Allegati</h2> 
413					</div> 
414 
415					<div class="rt-section__wrapper"> 
416						<#if hasAllegato == "true"> 
417							<#list currentArticleRelatedLinks as related_entry> 
418								<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
419								<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
420								<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
421 
422								<#if relatedAssetEntry.getClassName() == 'com.liferay.document.library.kernel.model.DLFileEntry' > 
423									<#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(relatedAssetEntryPrimKey) /> 
424									<#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() /> 
425									<#if fileEntry?? && fileUrl != ""> 
426										<#if fileEntry.getExtension() == 'mp3'> 
427											<div class="rt-box rt-box--link rt-box--audio"> 
428												<div class="rt-box__header"> 
429													<div class="rt-box__wrapper"> 
430														<div class="rt-box__title"> 
431															<a title="Scarica ${fileEntry.getTitle()}" aria-label="Scarica ${fileEntry.getTitle()}" href="${fileUrl}" target="_blank"> 
432																${fileEntry.getTitle()} 
433															</a> 
434														</div> 
435														<audio controls> 
436															<source src="${fileUrl}" type="audio/ogg"> 
437															<source src="${fileUrl}" type="audio/mpeg"> 
438																Il tuo browser non supporta questo tipo di oggetto html 
439														</audio> 
440													</div> 
441												</div> 
442											</div> 
443										<#else> 
444											<div class="rt-box rt-box--link"> 
445												<div class="rt-box__header"> 
446													<div class="rt-box__wrapper"> 
447														<div class="rt-box__title"> 
448															<a target="_blank" href="${fileUrl}" aria-label="Vedi ${fileEntry.getTitle()}" title="Vedi ${fileEntry.getTitle()}"> 
449																${fileEntry.getTitle()} 
450															</a> 
451														</div> 
452													</div> 
453 
454													<div class="rt-box__icon"> 
455														<i aria-hidden="true" class="far fa-download"></i> 
456													</div> 
457												</div> 
458											</div> 
459										</#if> 
460									</#if> 
461								</#if> 
462							</#list> 
463						</#if> 
464					</div> 
465				</section> 
466			</div> 
467		</div>	 
468	</#if> 
469 
470</#macro> 
471 
472 
473<#macro getEditIcon> 
474	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
475		<#if renderResponse??> 
476			<#assign redirectURL = renderResponse.createRenderURL() /> 
477 
478			${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")} 
479			${redirectURL.setWindowState("pop_up")} 
480 
481			<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
482 
483			<#if validator.isNotNull(editPortletURL)> 
484				<#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) /> 
485 
486				<@liferay_ui["icon"] 
487					cssClass="icon-monospaced visible-interaction" 
488					icon="pencil" 
489					markupView="lexicon" 
490					message=title 
491					url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
492				/> 
493			</#if> 
494		</#if>	 
495	</#if> 
496</#macro> 
497 
498<script type="text/javascript"> 
499    
500        var a2a_config = a2a_config || {}; 
501	    a2a_config.onclick = 1; 
502	    a2a_config.locale = "it"; 
503	    a2a_config.num_services = 5; 
504	    a2a_config.title = '${.vars['reserved-article-title'].data?html}'; 
505	    a2a_config.track_links = 'custom'; 
506	    a2a_config.track_links_key = '${urlSocial?html}'; 
507	    a2a_config.linkurl = '${urlSocial?html}'; 
508	    a2a_config.linkname = 'aaaa ${.vars['reserved-article-title'].data?html}'; 
509 
510	    a2a_config.templates = a2a_config.templates || {}; 
511	    a2a_config.templates.twitter = { 
512		    text: "${.vars['reserved-article-title'].data?html}  ${urlSocial?html}", 
513		    related: "AddToAny,Twitter" 
514	    }; 
515	    console.log(a2a_config); 
516         
517     
518 
519 
520	 
521	 
522</script> 
523<script async src="https://static.addtoany.com/menu/page.js"></script> 
524 
525<style> 
526    .a2a_kit .a2a_svg.a2a_s_twitter::before { 
527    font-family: 'Font Awesome 6 Brands'; 
528    content: "\e61b"; 
529
530</style>