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