Se ha producido un error al procesar la plantilla.
Java method "com.liferay.portal.kernel.util.DateUtil_IW.getDate(Date, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@1986ee31"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: ${dateUtil.getDate(curEntry.getPublis... [in template "38913#38948#1226163" at line 55, column 145] ----
1<#assign assetPublisherTool = utilLocator.findUtil('lportal-ce-hook', 'as.asac.template.tools.AssetPublisherTool') />
2<#assign dlTool = utilLocator.findUtil('lportal-ce-hook', 'as.asac.template.tools.DLTool') />
3<#assign assetTool = utilLocator.findUtil('lportal-ce-hook', 'as.asac.template.tools.AssetTool') />
4<#assign httpTool = utilLocator.findUtil('lportal-ce-hook', 'as.asac.template.tools.HttpTool') />
5
6
7<script src="${themeDisplay.getPathThemeJavaScript()}/needsharebutton/needsharebutton.js"></script>
8
9<#if entries?has_content>
10
11 <#assign key = "4" />
12 <#if cols?has_content && cols!="0">
13 <#assign key = cols />
14 </#if>
15 <#assign colsMap = {
16 "12": "col-12",
17 "6": "col-sm-6 col-12",
18 "4": "col-lg-4 col-md-6 col-sm-6 col-12",
19 "3": "col-lg-3 col-md-4 col-sm-6 col-12",
20 "auto": "col-md-4 col-lg-3 col-xl"} />
21
22 <#assign colsValue = colsMap[key]/>
23
24 <div class="template template-abstract-cards container p-0">
25 <div class="row">
26
27 <#assign thumbnailBannerUuid = themeDisplay.getLayoutSet().getSettingsProperty("banner")!""/>
28 <#assign thumbnailBanner=""/>
29 <#if thumbnailBannerUuid!="">
30 <#assign thumbnailBanner= dlTool.getPathByUuid(thumbnailBannerUuid, groupId)/>
31 </#if>
32
33 <#list entries as curEntry>
34
35 <#assign assetRenderer = curEntry.getAssetRenderer() />
36 <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) />
37 <#assign viewURL = assetPublisherTool.getAssetViewURL(renderRequest, renderResponse, curEntry) />
38 <#assign thumbnailPath = assetRenderer.getThumbnailPath(renderRequest)! />
39 <#assign thumbnail = dlTool.getThumbnail(thumbnailPath, "2", thumbnailBanner)! />
40 <#assign description = curEntry.getDescription(locale) />
41
42 <div class="${colsValue} col-index-${curEntry?index}">
43
44 <div class="card">
45 <span class="image-wrapper d-block image-wrapper-cover" style="background-image: url('${thumbnail}');">
46 <img alt="${languageUtil.get(locale, 'image')} ${stringUtil.shorten(entryTitle, 75)}" src="${thumbnail}">
47 </span>
48 <span class="card-body">
49
50 <span class="card-subtitle">
51 <span id="share-${curEntry.getEntryId()}" class="need-share-button-default"
52 data-share-icon-style="box"
53 data-share-networks="Mailto,Twitter,Whatsapp,Telegram,Facebook"
54 data-share-url="${htmlUtil.escape(httpTool.toUnicode(viewURL))}"
55 data-share-title="${entryTitle}"><!--share--></span> <span class="date">${dateUtil.getDate(curEntry.getPublishDate(), "EEEE, d MMMM yyyy ", locale)}</span>
56 <script type="text/javascript">
57 new needShareDropdown(document.getElementById('share-${curEntry.getEntryId()}'));
58 </script>
59 </span>
60 <p class="mb-0">
61 <a href="${viewURL}" class="card-title">${curEntry.getTitle(locale)}</a>
62 </p>
63
64 <span class="card-metadata">
65 <span class="categories">${assetTool.getCategoriesMarkup(curEntry, "span", "category mr-1", locale)}</span>
66 </span>
67
68 <#if validator.isNull(description)>
69 <#assign description = assetTool.getFieldValue(assetRenderer, "Descripcion") />
70 </#if>
71 <p class="card-text">${stringUtil.shorten(htmlUtil.extractText(description),150)}</p>
72
73 <span class="lfr-meta-actions asset-actions">
74 <@getEditIcon />
75 </span>
76 </span>
77 </div>
78
79 </div>
80
81 </#list>
82 </div>
83 </div>
84<#else>
85<div class="portlet-msg-info">Por el momento no existen registros</div>
86</#if>
87
88<#macro getEditIcon>
89 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
90 <#assign redirectURL = renderResponse.createRenderURL() />
91
92 ${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")}
93 ${redirectURL.setWindowState("pop_up")}
94
95 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" />
96
97 <#if validator.isNotNull(editPortletURL)>
98 <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) />
99
100 <@liferay_ui["icon"]
101 cssClass="icon-monospaced visible-interaction"
102 icon="pencil"
103 markupView="lexicon"
104 message=title
105 url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
106 />
107 </#if>
108 </#if>
109</#macro>