Si è verificato un errore nell'elaborarazione del modello.
For "." left-hand operand: Expected a hash, but this has evaluated to a number (wrapper: f.t.SimpleNumber):
==> layout  [in template "20115#20151#FULLARTICLE" at line 93, column 46]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if layout.name?? && layout.name?trim...  [in template "20115#20151#FULLARTICLE" at line 93, column 41]
----
1<#assign url="#"> 
2<#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] /> 
3<#assign url=PortalUtil.getCurrentCompleteURL(request) /> 
4<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
5<#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
6<#assign portalURL = serviceContext.getThemeDisplay().getPortalURL() /> 
7<#assign description=.vars['reserved-article-description'].data /> 
8<#-- 
9<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
10<#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() /> 
11 --> 
12<#-- Header section --> 
13<#-- TODO: if we have related content, then we should had the class ".t_fullArticle--hasAside" to the article element right below --> 
14<#assign hasRelated=false /> 
15<#if (relatedArticles.relatedLinkToPage)?has_content && relatedArticles.relatedLinkToPage.getSiblings()?first.getData()?has_content> 
16	<#assign hasRelated=true /> 
17	<article class="t_fullArticle t_fullArticle--hasAside"> 
18<#else> 
19	<article class="t_fullArticle"> <#-- OR  --> 
20</#if> 
21 
22	<header> 
23	<#if header.Visual.getData()?? && header.Visual.getData() != "">	 
24		<div class="t_introduction t_block" style="background-image: url('${header.Visual.getData()}')">	 
25	<#else> 
26		<div class="t_introduction t_block"> 
27	</#if> 
28				<#if (header.Visual.backgroundUrl.getData())?? && (header.Visual.backgroundUrl.getData()) != ""  > 
29					<a class="t_introduction_background_url_img" href="${header.Visual.backgroundUrl.getData()}" ></a> 
30				</#if> 
31				<div class="t_introduction__inner t_block__inner">						 
32				<#if header.Visual.TextCenter.getData()?? && header.Visual.TextCenter.getData() != ""> 
33					<p class="t_introduction__subtitle">${header.Visual.TextCenter.getData()}</p> 
34				</#if> 
35				<ul class="t_introduction__informations"> 
36					<li class="t_introduction__information"> 
37						<p class="t_introduction__informationWording t_introduction__informationWording--author">${header.Visual.TextLeft.getData()}</p> 
38					</li> 
39					<li class="t_introduction__information"> 
40						<p class="t_introduction__informationWording">${header.Visual.TextRight.getData()}</p> 
41					</li> 
42				</ul> 
43				<h1 class="t_secondaryTitle">${header.Visual.MainText.getData()}</h1> 
44				<div class="t_introduction__ctas"> 
45					<#if header.Visual.ButtonLeft.ButtonLeftText.getData()?? && header.Visual.ButtonLeft.ButtonLeftText.getData() != ""> 
46						<a href="${header.Visual.ButtonLeft.getFriendlyUrl()}" class="t_button t_button--secondary"> 
47							<span class="t_button__label">${header.Visual.ButtonLeft.ButtonLeftText.getData()}</span> 
48						</a> 
49					</#if> 
50					<#if header.Visual.ButtonRight.ButtonRightText.getData()?? && header.Visual.ButtonRight.ButtonRightText.getData() != ""> 
51						<a href="${header.Visual.ButtonRight.getFriendlyUrl()}" class="t_button t_button--ghost"> 
52							<span class="t_button__label">${header.Visual.ButtonRight.ButtonRightText.getData()}</span> 
53						</a> 
54					</#if> 
55				</div> 
56			</div> 
57		</div> 
58<#-- Top content --> 
59<#if TopContent?has_content> 
60		<div class="t_article t_block__inner"> 
61			<#-- BREADCRUMBS --> 
62			<@liferay.breadcrumbs /> 
63			<#-- CATEGORIES --> 
64			<#assign journalArticleId = .vars['reserved-article-id'].data> 
65			<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
66			<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
67			<#assign articleResourcePK = journalArticleLocalService.getArticle(groupId,journalArticleId).getArticleResourceUuid()> 
68			<#assign categoryList = assetEntryLocalService.fetchEntry(groupId,articleResourcePK).getCategories()> 
69			<ul class="t_tags"> 
70				<#list categoryList as category> 
71					<li class="t_tag"> 
72						<a class="t_tag__link" href="#"> 
73							${category.getTitle(locale)} 
74						</a> 
75					</li> 
76				</#list> 
77			</ul> 
78			 
79		</div> 
80	</header> 
81 
82	<section class="t_article__content"> 
83		<div class="t_article__text"> 
84			${TopContent.getData()} 
85		</div> 
86		<#if (relatedArticles.relatedLinkToPage.getSiblings())?has_content> 
87			<#list relatedArticles.relatedLinkToPage.getSiblings() as relatedArticle> 
88				<#if relatedArticle?index=0 && relatedArticle.getData()?has_content> 
89				<aside class="t_article__related t_article__related--desktop"> 
90					<h2 class="t_article__relatedTitle"><@liferay.language key="related-assets" /></h2> 
91					<div class="t_article__relatedInner"> 
92					<#assign layout = relatedArticle.getData()?eval/> 
93					<#if layout.name?? && layout.name?trim!=""> 
94						<#assign pageTitle = layout.name /> 
95					<#elseif layout.label?? && layout.label?trim!=""> 
96						<#assign pageTitle = layout.label /> 
97					<#else> 
98						<#assign pageTitle = "---" /> 
99					</#if> 
100					<p class="t_smallText"><a href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p> 
101				<#elseif relatedArticle.getData()?has_content> 
102					<#assign layout = relatedArticle.getData()?eval/> 
103					<#if layout.name?? && layout.name?trim!=""> 
104						<#assign pageTitle = layout.name /> 
105					<#elseif layout.label?? && layout.label?trim!=""> 
106						<#assign pageTitle = layout.label /> 
107					<#else> 
108						<#assign pageTitle = "---" /> 
109					</#if> 
110					<p class="t_smallText"><a href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p> 
111				</#if> 
112			</#list> 
113			<#if hasRelated> 
114					</div> 
115				</aside> 
116			</#if> 
117		</#if> 
118	</section> 
119</#if> 
120<#-- Get Quote section --> 
121	<section class="t_block t_quote is-colored" style="background-color:${quoting_block.background_color.getData()}"> 
122		<div class="t_block__inner t_quote__inner"> 
123			<h2 class="t_quoteTitle">${quoting_block.Title.getData()}</h2> 
124			<p class="t_mainText">${quoting_block.paragraph.getData()}</p> 
125			<#if quoting_block.Button.LinkText.getData()?? && quoting_block.Button.LinkText.getData() != ""> 
126				<a href="${quoting_block.Button.getFriendlyUrl()}" class="t_button t_button--ghost"> 
127					<span class="t_button__label">${quoting_block.Button.LinkText.getData()}</span> 
128				</a> 
129			</#if> 
130		</div> 
131	</section> 
132	<#-- Mid content --> 
133	<#if mid_content.getData()?has_content> 
134	<section class="t_text"> 
135		${mid_content.getData()} 
136	</section> 
137	</#if> 
138	<#-- Splitted images section --> 
139	<#if (splitted_images.split_image.getSiblings())?has_content> 
140		<ul class="t_picture t_block"> 
141		<#list splitted_images.split_image.getSiblings() as image_splitted> 
142			<#if (image_splitted.getData()?has_content 
143			&& image_splitted.getAttribute("fileEntryId")?has_content 
144			&& image_splitted.getAttribute("fileEntryId")?has_content 
145			&& image_splitted.getAttribute("alt")?has_content)> 
146			<li class="t_picture__item"> 
147				<figure class="t_picture__element"> 
148					<img class="lazyload t_picture__visual" data-fileentryid="${image_splitted.getAttribute("fileEntryId")}" alt="${image_splitted.getAttribute("alt")}" data-src="${image_splitted.getData()}" /> 
149					<figcaption class="t_picture__legend">${image_splitted.split_image_text.getData()}</figcaption> 
150				</figure> 
151			</li> 
152			</#if> 
153		</#list> 
154		</ul> 
155	</#if> 
156	<#-- Bottom content --> 
157	<#if bottom_content.getData()?has_content> 
158	<section class="t_text"> 
159		${bottom_content.getData()} 
160	</section> 
161	</#if> 
162	<#-- Bottom links section --> 
163	<#if bottom_links?has_content> 
164	<section class="t_insurance"> 
165		<h2 class="t_secondaryTitle">${bottom_links.bottom_content_title.getData()}</h2> 
166		<ul class="t_insurance__list"> 
167		<#if bottom_links.Picture.getSiblings()?has_content> 
168			<#list bottom_links.Picture.getSiblings() as cur_Picture> 
169				<li class="t_insurance__listElement"> 
170					<#if cur_Picture.getData()?? && cur_Picture.getData() != ""> 
171						<img class="lazyload t_insurance__listElement__picture" data-fileentryid="${cur_Picture.getAttribute("fileEntryId")}" alt="${cur_Picture.getAttribute("alt")}" data-src="${cur_Picture.getData()}" /> 
172					</#if> 
173					<div class="t_insurance__listElement__inner"> 
174						<h3 class="t_simpleTitle t_insurance__listElement__title">${cur_Picture.bottom_content_subtitle.getData()}</h3> 
175						<p class="t_smallText"> 
176							${cur_Picture.Text.getData()} 
177						</p> 
178						<a href="${cur_Picture.Link.getFriendlyUrl()}" class="t_link t_insurance__listElement__cta">${cur_Picture.Link.TextLink.getData()} 
179							<svg width="14" height="14" class="t_link__picto" xmlns="http://www.w3.org/2000/svg" role="presentation"> 
180								<use xlink:href="#full-arrow" href="#full-arrow" /> 
181							</svg> 
182						</a> 
183					</div> 
184				</li> 
185			</#list> 
186		</#if> 
187		</ul> 
188	</section> 
189	</#if> 
190<#-- TODO: if we have related content, then we should had the same content in here (notice the difference in css class) --> 
191<#if (relatedArticles.relatedLinkToPage)?has_content> 
192	<#list relatedArticles.relatedLinkToPage.getSiblings() as relatedArticle> 
193		<#if relatedArticle?index=0 && relatedArticle.getData()?has_content> 
194			<aside class="t_article__related"> 
195			<h2 class="t_article__relatedTitle"><@liferay.language key="related-assets" /></h2> 
196			<div class="t_article__relatedInner"> 
197			<#assign layout = relatedArticle.getData()?eval/> 
198			<#if layout.name?? && layout.name?trim!=""> 
199				<#assign pageTitle = layout.name /> 
200			<#elseif layout.label?? && layout.label?trim!=""> 
201				<#assign pageTitle = layout.label /> 
202			<#else> 
203				<#assign pageTitle = "---" /> 
204			</#if> 
205			<p class="t_smallText"><a href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p> 
206		<#elseif relatedArticle.getData()?has_content> 
207			<#assign layout = relatedArticle.getData()?eval/> 
208			<#if layout.name?? && layout.name?trim!=""> 
209				<#assign pageTitle = layout.name /> 
210			<#elseif layout.label?? && layout.label?trim!=""> 
211				<#assign pageTitle = layout.label /> 
212			<#else> 
213				<#assign pageTitle = "---" /> 
214			</#if> 
215			<p class="t_smallText"><a href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p> 
216		</#if> 
217	</#list> 
218	<#if hasRelated> 
219			</div> 
220		</aside> 
221	</#if> 
222</#if> 
223</article> 
224<script> 
225function googleplusbtn(url) { 
226  sharelink = "https://plus.google.com/share?url="+url; 
227  newwindow=window.open(sharelink,'name','height=350,width=520'); 
228  if (window.focus) {newwindow.focus()} 
229  return false; 
230
231</script> 
232<script> 
233	function fbShare(url, title, descr, image, winWidth, winHeight) { 
234		var winTop = (screen.height / 2) - (winHeight / 2); 
235		var winLeft = (screen.width / 2) - (winWidth / 2); 
236		window.open('http://www.facebook.com/sharer.php?s=100&p[title]=' + title + '&p[summary]=' + descr + '&p[url]=' + url + '&p[images][0]=' + image, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); 
237
238</script> 
239<script> 
240  $('.popup').click(function(event) { 
241	var width  = 575, 
242		height = 400, 
243		left   = ($(window).width()  - width)  / 2, 
244		top	= ($(window).height() - height) / 2, 
245		url	= this.href, 
246		opts   = 'status=1' + 
247				 ',width='  + width  + 
248				 ',height=' + height + 
249				 ',top='	+ top	+ 
250				 ',left='   + left; 
251 
252	window.open(url, 'twitter', opts); 
253 
254	return false; 
255  }); 
256</script>