Nouvelles - CIP Elizondo Lanbide Eskola IIP - Ikasnova
Nouvelles - CIP Elizondo Lanbide Eskola IIP
Une erreur s'est produite lors du traitement du gabarit.
Failed to "?eval" string with this error: ---begin-message--- Syntax error in ?eval-ed string in line 1, column 133: Lexical error: encountered "u" (117), after "\"Amaiurko Ama Ur Garardotegia et Xurie Baztango d\\". ---end-message--- The failing expression: ==> image?eval [in template "209613#209652#1241312" at line 14, column 70] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign imageJSON = image?eval [in template "209613#209652#1241312" at line 14, column 49] ----
1<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2<#if entries?has_content>
3 <div class="row text-break featured-three-columns-post">
4 <#list entries as curEntry>
5 <#if curEntry.getAssetRenderer().getClassName() == "com.liferay.journal.model.JournalArticle">
6 <#assign article = journalArticleService.getLatestArticle(getterUtil.getLong(curEntry.getClassPK())) />
7 <#assign rootElement = saxReaderUtil.read(article.getContentByLocale(locale)).getRootElement() />
8 <#assign selectorImage = saxReaderUtil.createXPath("dynamic-element[@name='image']") />
9 <#assign image = "" />
10 <#assign alt = "" />
11 <#if selectorImage.selectSingleNode(rootElement)?has_content>
12 <#assign image = selectorImage.selectSingleNode(rootElement).getStringValue()?trim />
13 <#if image != "">
14 <#assign imageJSON = image?eval />
15 <#assign image = "/documents/${imageJSON.groupId}/${imageJSON.fileEntryId}/${imageJSON.name}/${imageJSON.uuid}" />
16 <#assign alt = imageJSON.alt />
17 </#if>
18 </#if>
19 <#if image == "">
20 <#assign image = "${themeDisplay.getPathThemeImages()}/images-default-contents.jpg" />
21 </#if>
22 <#assign selectorContent = saxReaderUtil.createXPath("dynamic-element[@name='content']") />
23 <#assign timeLabel = "" />
24 <#if selectorContent.selectSingleNode(rootElement)?has_content>
25 <#assign content = selectorContent.selectSingleNode(rootElement).getStringValue()?trim />
26 <#if content != "">
27 <#assign contentCount = content?replace("<[^>]+>", "", "r")?word_list?size />
28 <#if contentCount gt 0>
29 <#assign minutesValue = (contentCount/200)?round />
30 <#if minutesValue == 0>
31 <#assign timeLabel = languageUtil.get(locale, "few-seconds")/>
32 <#elseif minutesValue == 1>
33 <#assign timeLabel = minutesValue + " " + languageUtil.get(locale, "minut")/>
34 <#else>
35 <#assign timeLabel = minutesValue + " " + languageUtil.get(locale, "minutes")/>
36 </#if>
37 </#if>
38 </#if>
39 </#if>
40 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry.getAssetRenderer(), curEntry, !stringUtil.equals(assetLinkBehavior, "showFullContent")) />
41
42 <#if curEntry?is_first>
43 <div class="col-sm-12 featured-three-columns-post__item d-block">
44 <div class="row">
45 <div class="col-sm-12 col-md-6">
46 <a href="${viewURL}">
47 <div class="aspect-ratio aspect-ratio-16-to-9 featured-three-columns-post__item__image">
48 <#if alt == "">
49 <#assign alt = article.getTitle(locale) />
50 </#if>
51 <img src="${image}" alt="${alt}" class="aspect-ratio-item-center-middle aspect-ratio-item-fluid" />
52 </div>
53 </a>
54 </div>
55 <div class="col-sm-12 col-md-6 d-flex justify-content-center flex-column">
56 <#if themeDisplay.getLocale().toString() == "eu_ES">
57 <p class="featured-three-columns-post__item__date">${article.getDisplayDate()?date?string['yyyy/MM/dd']}</p>
58 <#else>
59 <p class="featured-three-columns-post__item__date">${article.getDisplayDate()?date?string['dd/MM/yyyy']}</p>
60 </#if>
61 <p class="featured-three-columns-post__item__time">
62 <img alt="<@liferay.language key="icon-clock" />" src="${themeDisplay.getPathThemeImages()}/icons/icon-clock.svg" />
63 <span class="tiempo_lectura">${timeLabel}</span>
64 </p>
65 <a href="${viewURL}" class="featured-three-columns-post__item__link">
66 <h3>${article.getTitle(locale)}</h3>
67 </a>
68 <span class="featured-three-columns-post__item__description">${article.getDescription(locale)}</span>
69 </div>
70 </div>
71 </div>
72 <#else>
73 <div class=" col-md-4 col-sm-6 featured-three-columns-post__item">
74 <div>
75 <a href="${viewURL}">
76 <div class="aspect-ratio aspect-ratio-16-to-9 featured-three-columns-post__item__image">
77 <#if alt == "">
78 <#assign alt = article.getTitle(locale) />
79 </#if>
80 <img src="${image}" alt="${alt}" class="aspect-ratio-item-center-middle aspect-ratio-item-fluid" />
81 </div>
82 </a>
83 <#if themeDisplay.getLocale().toString() == "eu_ES">
84 <p class="featured-three-columns-post__item__date">${article.getDisplayDate()?date?string['yyyy/MM/dd']}</p>
85 <#else>
86 <p class="featured-three-columns-post__item__date">${article.getDisplayDate()?date?string['dd/MM/yyyy']}</p>
87 </#if>
88 <p class="featured-three-columns-post__item__time">
89 <img alt="<@liferay.language key="icon-clock" />" src="${themeDisplay.getPathThemeImages()}/icons/icon-clock.svg" />
90 <span class="tiempo_lectura">${timeLabel}</span>
91 </p>
92 <a href="${viewURL}" class="featured-three-columns-post__item__link">
93 <h3>${article.getTitle(locale)}</h3>
94 </a>
95 </div>
96 </div>
97 </#if>
98 </#if>
99 </#list>
100 </div>
101</#if>