Aktualności
Wystąpił błąd podczas przetwarzania szablonu.
Failed to "?eval" string with this error: ---begin-message--- Syntax error in ?eval-ed string in line 1, column 60: Lexical error: encountered "u" (117), after "\"Simulation d\\". ---end-message--- The failing expression: ==> articleValues["image_list"]?eval [in template "20101#20128#8870041" at line 125, column 75] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign image = (articleValues["image... [in template "20101#20128#8870041" at line 125, column 57] ----
1<style>
2 /***
3 SOBREESCRITURA DE ESTILOS QUE TRAE POR DEFAULT LIFERAY
4 el contenido del portlet donde esta el campo de busqueda
5 no se edita desde ADT, viene por default
6 ****/
7
8 .panel-heading {
9 display: none;
10 }
11 .search-bar {
12 border: 0;
13 }
14
15 .search-bar-simple {
16
17 padding: 2rem 2rem;
18 background: #eee;
19 border-bottom: 1px solid #fff;
20 }
21 .search-bar-simple input {
22 display: block;
23 width: 100%;
24 height: 3.2rem;
25 margin: 0;
26 border: solid 0.125rem rgba(255, 255, 255, 0);
27 border-radius: .25rem;
28 background-color: #fff;
29 box-shadow: none;
30 font-size: 1rem;
31 font-weight: normal;
32 color: #333;
33 -webkit-transition: border-color .3s,color .3s,background-color .3s;
34 transition: border-color .3s,color .3s,background-color .3s;
35 resize: vertical;
36 padding: 0rem 1.25rem;
37 line-height: 1rem;
38 max-width: 80%;
39 margin-right: 1rem;
40 font-family: inherit;
41 }
42 .search-bar-simple input:focus {
43 outline: none;
44 border: 2px solid #468847;
45 background-color: #fff;
46 box-shadow: none;
47 -webkit-transition: box-shadow .5s,border-color .25s ease-in-out;
48 transition: box-shadow .5s,border-color .25s ease-in-out;
49 }
50 .search-bar-simple button {
51 background: #005198;
52 border-radius: .4rem;
53 border: none;
54 color: #fff;
55 cursor: pointer;
56 display: inline-block;
57 padding: 1rem 2rem;
58 text-decoration: none;
59 font-weight: bold;
60 text-align: center;
61 }
62 .search-bar-simple button:hover {
63 background-color: #006ece;
64 transition: all .4s ease;
65 color: #fff;
66 }
67 .search-bar-simple button svg {
68 fill:#fff;
69 }
70 .search-bar-keywords-input-wrapper {
71 display: flex;
72 align-items: center;
73 justify-content: center;
74 }
75 .facet-checkbox-label {
76 cursor: pointer;
77 }
78 .search-total-label {
79 padding-top: 1rem;
80 margin: 0 !important;
81 text-align: center;
82 background-color:#fafafa;
83 }
84 .search-total-label{
85 text-align:center;
86 padding: 2rem 2rem 0;
87 }
88 .lexicon-icon-search{
89 width:1.25rem;
90 height:1.25rem;
91 }
92 .search-total-label { /* MKTG-1030 - Ocultar resultados de búsqueda de mientras no tenemos acceso a estos campos propios de Liferay */
93 display:none;
94 }
95</style>
96
97<style>
98 /* [MKTG-1595] TODO: Cuando se realice la migración completa a 7.4, inyectar estos estilos en el tema
99 Seguramente con quitar los display: none del mix-content bastara */
100 .pagination-bar .pagination .page-item #ffek____, .pagination-bar .pagination .page-item #kwsw____, .pagination-bar .pagination .page-item #fehs____ {
101 display: block;
102 }
103</style>
104
105<#--MKTG-1196: US Date format -->
106<#assign domain = themeDisplay.getPortalDomain() />
107<#assign dateFormat = "dd MMM yyyy"/>
108<#if (domain?contains("us")) || (domain?contains("interlake")) >
109 <#assign dateFormat = "MMMMMMMMM d, yyyy" />
110</#if>
111
112<#assign cdn = (mlxUrlUtilService.getCdn(groupId))!"" />
113
114<div class="corporate--logistics--articles--container">
115 <#if entries?hasContent>
116 <div class="corporate--logistics--articles">
117 <ul class="corporate--logistics--articles--list">
118 <#list entries as document>
119 <#assign article = mlxAssetHelperService.fetchLatestApprovedArticle(getterUtil.getLong(document.getClassPK())!0)!"" >
120 <#if article?hasContent>
121 <#assign articleUrl = mlxUrlUtilService.getUrlByJournalArticle(article, themeDisplay.getLanguageId(), themeDisplay.getScopeGroupId()) >
122 <#assign articleValues = mlxJournalHelperService.getStructureFieldValues(article, themeDisplay.getLanguageId()) >
123 <#assign articleName = (articleValues["article_name"])!"" >
124 <#assign description = (articleValues["description"])!"" />
125 <#assign image = (articleValues["image_list"]?eval)!"" />
126 <#if image?hasContent>
127 <#assign imageJSON = jsonFactoryUtil.createJSONObject(image) />
128 <#assign imageUUID = imageJSON.getString("uuid") />
129 <#assign articleImageUrl = mlxDocumentsHelperService.getDocumentUrlFromUUID(imageUUID, locale) />
130 <#assign currStr = article.DDMStructureKey />
131 <#assign publicDate="" />
132
133 <li class="corporate--logistics--articles--list-item">
134 <article class="corporate--logistics--articles--item">
135 <#if articleImageUrl?hasContent>
136 <figure class="corporate--logistics--articles--item-figure">
137 <a href="${articleUrl}" title="${articleName}">
138 <#assign imgUrl = cdn + articleImageUrl />
139 <#assign imgWidth = '320'>
140 <#assign imgTitle = articleName>
141 <#assign imgAlt = articleName>
142 <#assign imgClass = 'corporate--logistics--articles--item-image'>
143 <#assign urlParamConcat = imgUrl?contains("?")?then("&","?")>
144 ${corporate.img(imgUrl + urlParamConcat + 'imwidth=' + imgWidth + '', true,
145 'alt="' + imgAlt + '"', 'title="' + imgTitle + '"', 'class="' + imgClass + '"'
146 'srcset="' + imgUrl + urlParamConcat + 'imwidth=320&imdensity=1 320w,' +
147 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 640w,' +
148 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 1024w,' +
149 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 2048w"')}
150 </a>
151 </figure>
152 </#if>
153 <h2 class="corporate--logistics--articles--item-heading">
154 <a class="corporate--logistics--articles--item-link"
155 href="${articleUrl}"
156 title="${articleName}">
157 ${articleName}
158 </a>
159 </h2>
160 <span class="corporate--logistics--articles--item-date">
161 <#assign publicDate = dateUtil.getDate(article.displayDate, dateFormat, locale, timeZoneUtil.getTimeZone("UTC")) />${publicDate!}
162 </span>
163 <p class="corporate--logistics--articles--item-content">
164 ${description}
165 </p>
166 </article>
167 </li>
168 </#if>
169 <#else>
170 <#if entryClassPK?hasContent>
171 <li class="hide">${document.get("entryClassPK")!""}</li>
172 </#if>
173 </#if>
174 </#list>
175 </ul>
176 </div>
177 <#else>
178 <section class="corporate--section">
179 <@corporate.mlxlanguage key="mlx.client.list.no-results" />
180 </section>
181 </#if>
182</div>