1<#include "${templatesPath}/ASSETSMACRO"/>
2
3<#if entries?has_content>
4
5 <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
6 <#assign httpServletRequest = serviceContext.getRequest()>
7 <#assign categoryId = (httpServletRequest.getParameter('p_r_p_categoryId')?html)!''>
8
9<#list entries as entry>
10
11 <@assetsMacro assetEntry=entry />
12
13 <#assign className = renderer.getClassName()>
14 <#if className == "com.liferay.journal.model.JournalArticle">
15
16 <#assign imagen2 = docXml.valueOf("//dynamic-element[@name='featuredImage']/dynamic-content/text()") />
17 <#assign imageJSON2 = jsonFactoryUtil.createJSONObject(imagen2)>
18 <#if imageJSON2.fileEntryId?? && imageJSON2.fileEntryId?number != 0>
19 <#attempt>
20 <#assign fileEntry2 = DLFileEntryLocalServiceUtil.getFileEntry(imageJSON2.fileEntryId?number)>
21 <#recover>
22 </#recover>
23 </#if>
24
25 <#if entry?index==0 && (categoryId=="" || categoryId=="0")>
26 <div class="highlight-news">
27 <div class="row">
28 <div class="col-12 col-sm-6">
29 <div class="news-item">
30 <#elseif (entry?index==1 || entry?index==2 || entry?index==3) && (categoryId=="" || categoryId=="0")>
31 <div class="col-12 col-sm-6">
32 <div class="news-item">
33 <#elseif entry?index==4 && (categoryId=="" || categoryId=="0")>
34 <div class="news-list">
35 <div class="row">
36 <div class="col-12 col-sm-6 col-lg-4">
37 <div class="news-item">
38 <#elseif (entry?index==0 && categoryId!="" && categoryId!="0")>
39 <div class="news-list">
40 <div class="row">
41 <div class="col-12 col-sm-6 col-lg-4">
42 <div class="news-item">
43 <#else>
44 <div class="col-12 col-sm-6 col-lg-4">
45 <div class="news-item">
46 </#if>
47
48 <div class="image-container">
49 <#if imageJSON2?? && imageJSON2.fileEntryId??>
50 <@custom_adaptative maxResolution=maxResolutionSmallImage
51 repositoryId=fileEntry2.getRepositoryId() folderId=fileEntry2.getFolderId()
52 fileEntryId=fileEntry2.getFileEntryId() title=fileEntry2.getTitle() uuid=fileEntry2.getUuid() alt=title thumbnail=3/>
53 <#else>
54 <img src="/documents/20124/36071/Palacio+Ferrera.jpg/8b513545-f3ec-c383-aeb4-4a6a2125e677?version=2.0&t=1600352554537" loading="lazy">
55 </#if>
56 </div>
57 <div class="info">
58 <#if categories?has_content>
59 <#assign catId = categories[0].getCategoryId()>
60 <#if catPropertyLocalService.getCategoryProperty(catId?number, 'color')?has_content>
61 <#assign catProps = catPropertyLocalService.getCategoryProperty(catId?number, 'color')>
62 <#assign color=catProps.getValue()>
63 </#if>
64 <#assign catTitle = categories[0].getTitle(themeDisplay.getLanguageId())>
65 <span class="category ${color} color-white">${catTitle}</span>
66 </#if>
67 <h2 class="title">
68 <a href="${viewURL}">${title}</a>
69 </h2>
70 <#if dateStr?? && dateStr?has_content>
71 <#assign localeOLD = locale>
72 <#setting locale="es_ES">
73 <div class="date">${dateStr?trim?date.iso?string("dd MMMM yyyy")}</div>
74 <#setting locale=localeOLD>
75 </#if>
76 </div>
77
78 <#if (entry?index==0 || entry?index==1 || entry?index==2) && (categoryId=="" || categoryId=="0")>
79 </div>
80 </div>
81 <#elseif (entry?index==3 && (categoryId=="" || categoryId=="0")) || !entry?has_next>
82 </div>
83 </div>
84 </div>
85 </div>
86 <#else>
87 </div>
88 </div>
89 </#if>
90
91 </#if>
92</#list>
93
94</#if>