Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing: ==> pageTitle [in template "20115#20151#FULLARTICLE" at line 161, column 106] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${pageTitle} [in template "20115#20151#FULLARTICLE" at line 161, column 104] ----
1<#macro cleanUnicode field>
2 <#assign result = field?replace("\\u00e9", "é")?replace("\\u00e0", "à")?replace("\\u2019", "'") />
3 ${result}
4</#macro>
5
6<#assign showBreadcrumb = themeDisplay.getThemeSetting("show-breadcrumb")?boolean />
7<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
8<#if serviceContext.getThemeDisplay().getThemeSetting("v2-look-and-feel")?has_content && serviceContext.getThemeDisplay().getThemeSetting("v2-look-and-feel")!="">
9 <#assign v2_enabled = serviceContext.getThemeDisplay().getThemeSetting("v2-look-and-feel")?boolean />
10<#else>
11 <#assign v2_enabled = false />
12</#if>
13
14<#if v2_enabled>
15
16
17<!-- Article -->
18 <#assign url="#">
19 <#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] />
20 <#assign url=PortalUtil.getCurrentCompleteURL(request) />
21 <#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
22 <#assign portalURL = serviceContext.getThemeDisplay().getPortalURL() />
23 <#assign description=.vars['reserved-article-description'].data />
24 <#--
25 <#assign themeDisplay = serviceContext.getThemeDisplay() />
26 <#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
27 -->
28 <#-- Header section -->
29 <#-- TODO: if we have related content, then we should had the class ".t_fullArticle--hasAside" to the article element right below -->
30 <#assign hasRelated=false />
31 <#if (relatedArticles.relatedLinkToPage)?has_content && relatedArticles.relatedLinkToPage.getSiblings()?first.getData()?has_content>
32 <#assign hasRelated=true />
33 <article class="article-full">
34 <#else>
35 <article class="article-full"> <#-- OR -->
36 </#if>
37
38 <!-- hero-banner hero-banner--slim -->
39 <div class="hero-banner">
40 <div class="hero-banner__mask">
41 <picture>
42 <img class="lazyload" src="${header.Visual.getData()}" data-fileentryid="${header.Visual.getAttribute("fileEntryId")}" data-src="${header.Visual.getData()}" data-srcset="${header.Visual.getData()}" />
43 </picture>
44 <div class="hero-banner__mask">
45 <div class="hero-banner__container">
46 <div class="hero-banner__content text-left">
47 <#if TopContent?has_content>
48 <#-- BREADCRUMBS -->
49 <#if !showBreadcrumb>
50 <@liferay.breadcrumbs />
51 </#if>
52 </#if>
53 <h1 class="font-bold-publicoheadline font-display-4 color-white">${header.Visual.MainText.getData()}</h1>
54 <#if header.Visual.TextCenter.getData()?? && header.Visual.TextCenter.getData() != "">
55 <p class="hero-banner__text font-medium color-white">${header.Visual.TextCenter.getData()}</p>
56 </#if>
57 </div>
58 </div>
59 </div>
60 </div>
61 </div>
62 <!-- /hero-banner -->
63
64 <div class="article-full__content pb-4">
65 <div class="article-full__container container">
66
67 <!-- tag -->
68 <#if TopContent?has_content>
69 <div class="tg__tag">
70 <div class="tg__tag--container">
71 <#assign journalArticleId = .vars['reserved-article-id'].data>
72 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
73 <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
74 <#assign articleResourcePK = journalArticleLocalService.getArticle(groupId,journalArticleId).getArticleResourceUuid()>
75 <#assign categoryList = assetEntryLocalService.fetchEntry(groupId,articleResourcePK).getCategories()>
76 <ul class="tg__tag--list">
77 <#list categoryList as category>
78 <li class="tg__tag--element">
79 <a class="t_tag__link">
80 ${category.getTitle(locale)}
81 </a>
82 </li>
83 </#list>
84 </ul>
85 </div>
86 </div>
87 </#if>
88 <!-- tag -->
89 <#assign fullColumn="full-column">
90 <#list relatedArticles.relatedLinkToPage.getSiblings() as relatedArticle>
91 <#if relatedArticle.getData()?has_content>
92 <#assign fullColumn="">
93 </#if>
94 </#list>
95
96 <#if (relatedArticles.relatedLinkToPage.getSiblings())?has_content>
97 <div class="article-full__row">
98 <#else>
99 <div class="article-full__row--">
100 </#if>
101 <div class="article-full__left ${fullColumn}">
102
103 <div class="article-full__text">
104 ${TopContent.getData()}
105 </div>
106
107 <#-- Mid content -->
108 <#if mid_content.getData()?has_content>
109 <section class="article-full__text">
110 <p>${mid_content.getData()}</p>
111 </section>
112 </#if>
113
114 <#-- Bottom content -->
115 <#if bottom_content.getData()?has_content>
116 <section class="article-full__text">
117 <p>${bottom_content.getData()}</p>
118 </section>
119 </#if>
120
121 </div>
122
123 <#if (relatedArticles.relatedLinkToPage.getSiblings())?has_content>
124 <div class="article-full__right">
125 <!-- Detail 1 -->
126
127 <#if (relatedArticles.relatedLinkToPage.getSiblings())?has_content>
128 <#list relatedArticles.relatedLinkToPage.getSiblings() as relatedArticle>
129 <#if relatedArticle?index=0 && relatedArticle.getData()?has_content>
130 <aside class="article-full__detail mb-3">
131 <div class="article-full__container color-white">
132 <div class="pb-3"><span class="font-bold-publicoheadline font-display-5"><@liferay.language key="related-assets" /></span></div>
133 <div class="article-full__detail--data font-normal">
134
135 <#assign layout>
136 <@cleanUnicode relatedArticle.getData() />
137 </#assign>
138 <#assign layout = layout?eval />
139
140 <#if layout?has_content>
141 <#assign pageTitle = "default2" />
142 <#--TITLE-->
143 <#if layout.title?? && layout.title?trim!="">
144 <#assign pageTitle = layout.title />
145 <#--NAME-->
146 <#elseif layout.name?? && layout.name?trim!="">
147 <#assign pageTitle = layout.name />
148 <#--LABEL-->
149 <#elseif layout.label?? && layout.label?trim!="">
150 <#assign pageTitle = layout.label />
151 <#--DEBUG-->
152 <#elseif layout?has_content>
153 <#assign pageTitle = "---." />
154 <#--EMPTY-->
155 <#else>
156 <#assign pageTitle = "---.." />
157 </#if>
158 </#if>
159
160 <p class="article-full__detail--title">
161 <a class="color-white" href="">${pageTitle}</a>
162 </p>
163
164 <#elseif relatedArticle.getData()?has_content>
165 <#attempt>
166 <#assign layout>
167 <@cleanUnicode relatedArticle.getData() />
168 </#assign>
169 <#assign layout = layout?eval />
170
171 <#if layout?has_content>
172 <#assign pageTitle = "default2" />
173 <#--TITLE-->
174 <#if layout.title?? && layout.title?trim!="">
175 <#assign pageTitle = layout.title />
176 <#--NAME-->
177 <#elseif layout.name?? && layout.name?trim!="">
178 <#assign pageTitle = layout.name />
179 <#--LABEL-->
180 <#elseif layout.label?? && layout.label?trim!="">
181 <#assign pageTitle = layout.label />
182 <#--DEBUG-->
183 <#elseif layout?has_content>
184 <#assign pageTitle = "---." />
185 <#--EMPTY-->
186 <#else>
187 <#assign pageTitle = "---.." />
188 </#if>
189 </#if>
190 <#recover>
191 <#-- Recover from error -->
192 <#assign layoutStr = relatedArticle.getData()?string/>
193 <#if layoutStr?contains("\\u2019")>
194 <#assign layoutStr = layoutStr?replace("\\u2019", "'")/>
195 <#assign layout = layoutStr?eval/>
196 <#if layout.name?? && layout.name?trim!="">
197 <#assign pageTitle = layout.name />
198 <#elseif layout.label?? && layout.label?trim!="">
199 <#assign pageTitle = layout.label />
200 <#elseif layout.title?? && layout.title?trim!="">
201 <#assign pageTitle = layout.title />
202 <#else>
203 <#assign pageTitle = "---___" />
204 </#if>
205 </#if>
206 </#attempt>
207 <p class="article-full__detail--title"><a class="color-white" href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p>
208
209 </#if>
210 </#list>
211 <#if hasRelated>
212 </div>
213 </div>
214 </aside>
215 </#if>
216 </#if>
217
218 </div>
219 </#if>
220 </div>
221 </div>
222 </div>
223
224 <#-- Get Quote section -->
225 <section class="t_block t_quote t_quote--xlarge" style="background-color:${quoting_block.background_color.getData()}">
226 <div class="t_block__inner t_quote__inner">
227 <h1 class="t_quoteTitle font-display-5 color-white font-medium-publicoheadline">${quoting_block.Title.getData()}</h1>
228 <p class="t_mainText color-white font-medium">${quoting_block.paragraph.getData()}</p>
229 <#if quoting_block.Button.LinkText.getData()?? && quoting_block.Button.LinkText.getData() != "">
230 <div class="mt-2">
231 <a href="${quoting_block.Button.getFriendlyUrl()}" class="btn btn--light-white text-uppercase" onclick="pushDataLayerCTA(window.location.href + "${quoting_block.Button.getFriendlyUrl()}", 'ghost', "${quoting_block.Button.LinkText.getData()}")">
232 ${quoting_block.Button.LinkText.getData()}
233 </a>
234 </div>
235 </#if>
236 </div>
237 </section>
238 <#-- Get Quote section -->
239
240 <#-- Splitted images section -->
241 <#if (splitted_images.split_image.getSiblings())?has_content>
242 <!-- pictures-->
243 <section class="pictures mt-5">
244 <div class="pictures__inline pictures__inline--container">
245 <#list splitted_images.split_image.getSiblings() as image_splitted>
246 <#if (image_splitted.getData()?has_content
247 && image_splitted.getAttribute("fileEntryId")?has_content
248 && image_splitted.getAttribute("fileEntryId")?has_content
249 && image_splitted.getAttribute("alt")?has_content)>
250 <div class="pictures__inline pictures__inline--img-fluid">
251 <figure class="t_picture__element">
252 <img class="pictures__inline pictures__inline--card-img-top lazyload" data-fileentryid="${image_splitted.getAttribute("fileEntryId")}" alt="${image_splitted.getAttribute("alt")}" data-src="${image_splitted.getData()}" />
253 </figure>
254 <div class="pictures__inline pictures__inline--card-img-overlay">
255 <p class="pictures__inline pictures__inline--card-title color-white font-bold-publicoheadline font-display-5 pb-3">${image_splitted.split_image_text.getData()}</p>
256 </div>
257 </div>
258 </#if>
259 </#list>
260 </div>
261 </section>
262 <!-- pictures-->
263 </#if>
264
265 <#if bottom_links.Picture.getSiblings()?has_content>
266 <section class="mt-1">
267 <h2 class="font-display-4 text-center font-medium-publicoheadline pt-3 pb-5">${bottom_links.bottom_content_title.getData()}</h2>
268
269 <div class="article-inline">
270
271 <#list bottom_links.Picture.getSiblings() as cur_Picture>
272 <div class="article-inline__card">
273 <div class="article-inline__image">
274 <#if cur_Picture.getData()?? && cur_Picture.getData() != "">
275 <img class="lazyload t_insurance__listElement__picture" data-fileentryid="${cur_Picture.getAttribute("fileEntryId")}" alt="${cur_Picture.getAttribute("alt")}" data-src="${cur_Picture.getData()}" />
276 </#if>
277 </div>
278 <div class="article-inline__card-body">
279 <h3 class="article-inline__title h2">${cur_Picture.bottom_content_subtitle.getData()}</h3>
280 <p class="article-inline__card-text">
281 ${cur_Picture.Text.getData()}
282 </p>
283 <#if cur_Picture.Link.TextLink.getData()?? && cur_Picture.Link.TextLink.getData() != "">
284 <div><a href="${cur_Picture.Link.getFriendlyUrl()}"class="link link--secondary-link icons--right icons--east">${cur_Picture.Link.TextLink.getData()}</a></div>
285 </#if>
286 </div>
287 </div>
288 </#list>
289 </div>
290 </section>
291 </#if>
292
293
294</article>
295
296<!-- /Article -->
297
298<#else>
299 <#assign url="#">
300 <#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] />
301 <#assign url=PortalUtil.getCurrentCompleteURL(request) />
302 <#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
303 <#assign portalURL = serviceContext.getThemeDisplay().getPortalURL() />
304 <#assign description=.vars['reserved-article-description'].data />
305 <#--
306 <#assign themeDisplay = serviceContext.getThemeDisplay() />
307 <#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
308 -->
309 <#-- Header section -->
310 <#-- TODO: if we have related content, then we should had the class ".t_fullArticle--hasAside" to the article element right below -->
311 <#assign hasRelated=false />
312 <#if (relatedArticles.relatedLinkToPage)?has_content && relatedArticles.relatedLinkToPage.getSiblings()?first.getData()?has_content>
313 <#assign hasRelated=true />
314 <article class="t_fullArticle t_fullArticle--hasAside">
315 <#else>
316 <article class="t_fullArticle"> <#-- OR -->
317 </#if>
318
319 <header>
320 <#if header.Visual.getData()?? && header.Visual.getData() != "">
321 <div class="t_introduction t_block" style="background-image: url('${header.Visual.getData()}')">
322 <#else>
323 <div class="t_introduction t_block">
324 </#if>
325 <#if (header.Visual.backgroundUrl.getData())?? && (header.Visual.backgroundUrl.getData()) != "" >
326 <a class="t_introduction_background_url_img" href="${header.Visual.backgroundUrl.getData()}" ></a>
327 </#if>
328 <div class="t_introduction__inner t_block__inner">
329 <#if header.Visual.TextCenter.getData()?? && header.Visual.TextCenter.getData() != "">
330 <p class="t_introduction__subtitle">${header.Visual.TextCenter.getData()}</p>
331 </#if>
332 <ul class="t_introduction__informations">
333 <li class="t_introduction__information">
334 <p class="t_introduction__informationWording t_introduction__informationWording--author">${header.Visual.TextLeft.getData()}</p>
335 </li>
336 <li class="t_introduction__information">
337 <p class="t_introduction__informationWording">${header.Visual.TextRight.getData()}</p>
338 </li>
339 </ul>
340 <h1 class="t_secondaryTitle">${header.Visual.MainText.getData()}</h1>
341 <div class="t_introduction__ctas">
342 <#if header.Visual.ButtonLeft.ButtonLeftText.getData()?? && header.Visual.ButtonLeft.ButtonLeftText.getData() != "">
343 <a href="${header.Visual.ButtonLeft.getFriendlyUrl()}" class="t_button t_button--secondary" onclick="pushDataLayerCTA(window.location.href + "${header.Visual.ButtonLeft.getFriendlyUrl()}", 'secondary red', "${header.Visual.ButtonLeft.ButtonLeftText.getData()}")">
344 <span class="t_button__label">${header.Visual.ButtonLeft.ButtonLeftText.getData()}</span>
345 </a>
346 </#if>
347 <#if header.Visual.ButtonRight.ButtonRightText.getData()?? && header.Visual.ButtonRight.ButtonRightText.getData() != "">
348 <a href="${header.Visual.ButtonRight.getFriendlyUrl()}" class="t_button t_button--ghost" onclick="pushDataLayerCTA(window.location.href + "${header.Visual.ButtonRight.getFriendlyUrl()}", 'ghost', "${header.Visual.ButtonRight.ButtonRightText.getData()}")">
349 <span class="t_button__label">${header.Visual.ButtonRight.ButtonRightText.getData()}</span>
350 </a>
351 </#if>
352 </div>
353 </div>
354 </div>
355 <#-- Top content -->
356 <#if TopContent?has_content>
357 <div class="t_article t_block__inner">
358 <#-- BREADCRUMBS -->
359 <#if !showBreadcrumb>
360 <@liferay.breadcrumbs />
361 </#if>
362 <#-- CATEGORIES -->
363 <#assign journalArticleId = .vars['reserved-article-id'].data>
364 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
365 <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
366 <#assign articleResourcePK = journalArticleLocalService.getArticle(groupId,journalArticleId).getArticleResourceUuid()>
367 <#assign categoryList = assetEntryLocalService.fetchEntry(groupId,articleResourcePK).getCategories()>
368 <ul class="t_tags">
369 <#list categoryList as category>
370 <li class="t_tag">
371 <a class="t_tag__link" href="#">
372 ${category.getTitle(locale)}
373 </a>
374 </li>
375 </#list>
376 </ul>
377
378 </div>
379 </header>
380
381 <section class="t_article__content">
382 <div class="t_article__text">
383 ${TopContent.getData()}
384 </div>
385 <#if (relatedArticles.relatedLinkToPage.getSiblings())?has_content>
386 <#list relatedArticles.relatedLinkToPage.getSiblings() as relatedArticle>
387 <#if relatedArticle?index=0 && relatedArticle.getData()?has_content>
388 <aside class="t_article__related t_article__related--desktop">
389 <h2 class="t_article__relatedTitle"><@liferay.language key="related-assets" /></h2>
390 <div class="t_article__relatedInner">
391
392 <#assign layout>
393 <@cleanUnicode relatedArticle.getData() />
394 </#assign>
395 <#assign layout = layout?eval />
396
397 <#if layout?has_content>
398 <#assign pageTitle = "default2" />
399 <#--TITLE-->
400 <#if layout.title?? && layout.title?trim!="">
401 <#assign pageTitle = layout.title />
402 <#--NAME-->
403 <#elseif layout.name?? && layout.name?trim!="">
404 <#assign pageTitle = layout.name />
405 <#--LABEL-->
406 <#elseif layout.label?? && layout.label?trim!="">
407 <#assign pageTitle = layout.label />
408 <#--DEBUG-->
409 <#elseif layout?has_content>
410 <#assign pageTitle = "---." />
411 <#--EMPTY-->
412 <#else>
413 <#assign pageTitle = "---.." />
414 </#if>
415 </#if>
416 <p class="t_smallText"><a href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p>
417 <#elseif relatedArticle.getData()?has_content>
418 <#attempt>
419
420 <#assign layout>
421 <@cleanUnicode relatedArticle.getData() />
422 </#assign>
423 <#assign layout = layout?eval />
424
425 <#if layout?has_content>
426 <#assign pageTitle = "default2" />
427 <#--TITLE-->
428 <#if layout.title?? && layout.title?trim!="">
429 <#assign pageTitle = layout.title />
430 <#--NAME-->
431 <#elseif layout.name?? && layout.name?trim!="">
432 <#assign pageTitle = layout.name />
433 <#--LABEL-->
434 <#elseif layout.label?? && layout.label?trim!="">
435 <#assign pageTitle = layout.label />
436 <#--DEBUG-->
437 <#elseif layout?has_content>
438 <#assign pageTitle = "---." />
439 <#--EMPTY-->
440 <#else>
441 <#assign pageTitle = "---.." />
442 </#if>
443 </#if>
444 <#recover>
445 <#-- Recover from error -->
446 <#assign layoutStr = relatedArticle.getData()?string/>
447 <#if layoutStr?contains("\\u2019")>
448 <#assign layoutStr = layoutStr?replace("\\u2019", "'")/>
449 <#assign layout = layoutStr?eval/>
450 <#if layout.name?? && layout.name?trim!="">
451 <#assign pageTitle = layout.name />
452 <#elseif layout.label?? && layout.label?trim!="">
453 <#assign pageTitle = layout.label />
454 <#elseif layout.title?? && layout.title?trim!="">
455 <#assign pageTitle = layout.title />
456 <#else>
457 <#assign pageTitle = "---__" />
458 </#if>
459 </#if>
460 </#attempt>
461 <p class="t_smallText"><a href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p>
462 </#if>
463 </#list>
464 <#if hasRelated>
465 </div>
466 </aside>
467 </#if>
468 </#if>
469 </section>
470 </#if>
471 <#-- Get Quote section -->
472 <section class="t_block t_quote is-colored" style="background-color:${quoting_block.background_color.getData()}">
473 <div class="t_block__inner t_quote__inner">
474 <h1 class="t_quoteTitle">${quoting_block.Title.getData()}</h1>
475 <p class="t_mainText">${quoting_block.paragraph.getData()}</p>
476 <#if quoting_block.Button.LinkText.getData()?? && quoting_block.Button.LinkText.getData() != "">
477 <a href="${quoting_block.Button.getFriendlyUrl()}" class="t_button t_button--ghost" onclick="pushDataLayerCTA(window.location.href + "${quoting_block.Button.getFriendlyUrl()}", 'ghost', "${quoting_block.Button.LinkText.getData()}")">
478 <span class="t_button__label">${quoting_block.Button.LinkText.getData()}</span>
479 </a>
480 </#if>
481 </div>
482 </section>
483 <#-- Mid content -->
484 <#if mid_content.getData()?has_content>
485 <section class="t_text">
486 ${mid_content.getData()}
487 </section>
488 </#if>
489 <#-- Splitted images section -->
490 <#if (splitted_images.split_image.getSiblings())?has_content>
491 <ul class="t_picture t_block">
492 <#list splitted_images.split_image.getSiblings() as image_splitted>
493 <#if (image_splitted.getData()?has_content
494 && image_splitted.getAttribute("fileEntryId")?has_content
495 && image_splitted.getAttribute("fileEntryId")?has_content
496 && image_splitted.getAttribute("alt")?has_content)>
497 <li class="t_picture__item">
498 <figure class="t_picture__element">
499 <img class="lazyload t_picture__visual" data-fileentryid="${image_splitted.getAttribute("fileEntryId")}" alt="${image_splitted.getAttribute("alt")}" data-src="${image_splitted.getData()}" />
500 <figcaption class="t_picture__legend">${image_splitted.split_image_text.getData()}</figcaption>
501 </figure>
502 </li>
503 </#if>
504 </#list>
505 </ul>
506 </#if>
507 <#-- Bottom content -->
508 <#if bottom_content.getData()?has_content>
509 <section class="t_text">
510 ${bottom_content.getData()}
511 </section>
512 </#if>
513 <#-- Bottom links section -->
514 <#if bottom_links?has_content>
515 <section class="t_insurance">
516 <h2 class="t_secondaryTitle">${bottom_links.bottom_content_title.getData()}</h2>
517 <ul class="t_insurance__list">
518 <#if bottom_links.Picture.getSiblings()?has_content>
519 <#list bottom_links.Picture.getSiblings() as cur_Picture>
520 <li class="t_insurance__listElement">
521 <#if cur_Picture.getData()?? && cur_Picture.getData() != "">
522 <img class="lazyload t_insurance__listElement__picture" data-fileentryid="${cur_Picture.getAttribute("fileEntryId")}" alt="${cur_Picture.getAttribute("alt")}" data-src="${cur_Picture.getData()}" />
523 </#if>
524 <div class="t_insurance__listElement__inner">
525 <h3 class="t_simpleTitle t_insurance__listElement__title">${cur_Picture.bottom_content_subtitle.getData()}</h3>
526 <p class="t_smallText">
527 ${cur_Picture.Text.getData()}
528 </p>
529 <a href="${cur_Picture.Link.getFriendlyUrl()}" class="t_link t_insurance__listElement__cta">${cur_Picture.Link.TextLink.getData()}
530 <svg width="14" height="14" class="t_link__picto" xmlns="http://www.w3.org/2000/svg" role="presentation">
531 <use xlink:href="#full-arrow" href="#full-arrow" />
532 </svg>
533 </a>
534 </div>
535 </li>
536 </#list>
537 </#if>
538 </ul>
539 </section>
540 </#if>
541 <#-- TODO: if we have related content, then we should had the same content in here (notice the difference in css class) -->
542 <#if (relatedArticles.relatedLinkToPage)?has_content>
543 <#list relatedArticles.relatedLinkToPage.getSiblings() as relatedArticle>
544 <#if relatedArticle?index=0 && relatedArticle.getData()?has_content>
545 <aside class="t_article__related">
546 <h2 class="t_article__relatedTitle"><@liferay.language key="related-assets" /></h2>
547 <div class="t_article__relatedInner">
548
549 <#assign layout>
550 <@cleanUnicode relatedArticle.getData() />
551 </#assign>
552 <#assign layout = layout?eval />
553
554 <#if layout?has_content>
555 <#assign pageTitle = "default2" />
556 <#--TITLE-->
557 <#if layout.title?? && layout.title?trim!="">
558 <#assign pageTitle = layout.title />
559 <#--NAME-->
560 <#elseif layout.name?? && layout.name?trim!="">
561 <#assign pageTitle = layout.name />
562 <#--LABEL-->
563 <#elseif layout.label?? && layout.label?trim!="">
564 <#assign pageTitle = layout.label />
565 <#--DEBUG-->
566 <#elseif layout?has_content>
567 <#assign pageTitle = "---." />
568 <#--EMPTY-->
569 <#else>
570 <#assign pageTitle = "---.." />
571 </#if>
572 </#if>
573 <p class="t_smallText"><a href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p>
574 <#elseif relatedArticle.getData()?has_content>
575 <#attempt>
576
577 <#assign layout>
578 <@cleanUnicode relatedArticle.getData() />
579 </#assign>
580 <#assign layout = layout?eval />
581
582 <#if layout?has_content>
583 <#assign pageTitle = "default2" />
584 <#--TITLE-->
585 <#if layout.title?? && layout.title?trim!="">
586 <#assign pageTitle = layout.title />
587 <#--NAME-->
588 <#elseif layout.name?? && layout.name?trim!="">
589 <#assign pageTitle = layout.name />
590 <#--LABEL-->
591 <#elseif layout.label?? && layout.label?trim!="">
592 <#assign pageTitle = layout.label />
593 <#--DEBUG-->
594 <#elseif layout?has_content>
595 <#assign pageTitle = "---." />
596 <#--EMPTY-->
597 <#else>
598 <#assign pageTitle = "---.." />
599 </#if>
600 </#if>
601 <#recover>
602 <#-- Recover from error -->
603 <#assign layoutStr>
604 <@cleanUnicode relatedArticle.getData() />
605 </#assign>
606 <#assign layout = layoutStr?eval />
607 <#if layout.title?? && layout.title?trim!="">
608 <#assign pageTitle = layout.title />
609 <#elseif layout.name?? && layout.name?trim!="">
610 <#assign pageTitle = layout.name />
611 <#elseif layout.label?? && layout.label?trim!="">
612 <#assign pageTitle = layout.label />
613 <#else>
614 <#assign pageTitle = "---_" />
615 </#if>
616 </#attempt>
617 <p class="t_smallText"><a href="${relatedArticle.getFriendlyUrl()}">${pageTitle}</a></p>
618 </#if>
619 </#list>
620 <#if hasRelated>
621 </div>
622 </aside>
623 </#if>
624 </#if>
625 </article>
626 <script>
627 function googleplusbtn(url) {
628 sharelink = "https://plus.google.com/share?url="+url;
629 newwindow=window.open(sharelink,'name','height=350,width=520');
630 if (window.focus) {newwindow.focus()}
631 return false;
632 }
633 </script>
634 <script>
635 function fbShare(url, title, descr, image, winWidth, winHeight) {
636 var winTop = (screen.height / 2) - (winHeight / 2);
637 var winLeft = (screen.width / 2) - (winWidth / 2);
638 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);
639 }
640 </script>
641 <script>
642 $('.popup').click(function(event) {
643 var width = 575,
644 height = 400,
645 left = ($(window).width() - width) / 2,
646 top = ($(window).height() - height) / 2,
647 url = this.href,
648 opts = 'status=1' +
649 ',width=' + width +
650 ',height=' + height +
651 ',top=' + top +
652 ',left=' + left;
653
654 window.open(url, 'twitter', opts);
655
656 return false;
657 });
658 </script>
659</#if>