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??>
19 <#attempt>
20 <#assign fileEntry2 = DLFileEntryLocalServiceUtil.getFileEntry(imageJSON2.fileEntryId?number)>
21 <#recover>
22
23 </#recover>
24 </#if>
25
26 <#if entry?index==0 && (categoryId=="" || categoryId=="0")>
27 <div class="highlight-news">
28 <div class="row">
29 <div class="col-12 col-sm-6">
30 <div class="news-item">
31 <#elseif (entry?index==1 || entry?index==2 || entry?index==3) && (categoryId=="" || categoryId=="0")>
32 <div class="col-12 col-sm-6">
33 <div class="news-item">
34 <#elseif entry?index==4 && (categoryId=="" || categoryId=="0")>
35 <div class="news-list">
36 <div class="row">
37 <div class="col-12 col-sm-6 col-lg-4">
38 <div class="news-item">
39 <#elseif (entry?index==0 && categoryId!="" && categoryId!="0")>
40 <div class="news-list">
41 <div class="row">
42 <div class="col-12 col-sm-6 col-lg-4">
43 <div class="news-item">
44 <#else>
45 <div class="col-12 col-sm-6 col-lg-4">
46 <div class="news-item">
47 </#if>
48
49 <div class="image-container">
50 <#if imageJSON2?? && imageJSON2.fileEntryId??>
51 <@custom_adaptative maxResolution=maxResolutionSmallImage
52 repositoryId=fileEntry2.getRepositoryId() folderId=fileEntry2.getFolderId()
53 fileEntryId=fileEntry2.getFileEntryId() title=fileEntry2.getTitle() uuid=fileEntry2.getUuid() alt=title thumbnail=3/>
54 <#else>
55 <img src="/documents/20124/36071/Palacio+Ferrera.jpg/8b513545-f3ec-c383-aeb4-4a6a2125e677?version=2.0&t=1600352554537" loading="lazy">
56 </#if>
57 </div>
58 <div class="info">
59 <#if categories?has_content>
60 <#assign catId = categories[0].getCategoryId()>
61 <#if catPropertyLocalService.getCategoryProperty(catId?number, 'color')?has_content>
62 <#assign catProps = catPropertyLocalService.getCategoryProperty(catId?number, 'color')>
63 <#assign color=catProps.getValue()>
64 </#if>
65 <#assign catTitle = categories[0].getTitle(themeDisplay.getLanguageId())>
66 <span class="category ${color} color-white">${catTitle}</span>
67 </#if>
68 <h2 class="title">
69 <a href="${viewURL}">${title}</a>
70 </h2>
71 <#if dateStr?? && dateStr?has_content>
72 <#assign localeOLD = locale>
73 <#setting locale="es_ES">
74 <div class="date">${dateStr?trim?date.iso?string("dd MMMM yyyy")}</div>
75 <#setting locale=localeOLD>
76 </#if>
77 </div>
78
79 <#if (entry?index==0 || entry?index==1 || entry?index==2) && (categoryId=="" || categoryId=="0")>
80 </div>
81 </div>
82 <#elseif (entry?index==3 && (categoryId=="" || categoryId=="0")) || !entry?has_next>
83 </div>
84 </div>
85 </div>
86 </div>
87 <#else>
88 </div>
89 </div>
90 </#if>
91
92 </#if>
93</#list>
94
95</#if>