ACTUALIDAD
Día Mundial de las Abejas: ¿cómo saber si estoy comprando miel?
Hoy, 20 de mayo, se celebra el Día Mundial de las Abejas. Por ello, con la finalidad de promover una...
Indecopi recogerá sugerencias de la ciudadanía para identificar alternativas que fortalezcan a las asociaciones de consumidores
El Indecopi evaluará nuevas formas de financiamiento a las asociaciones de consumidores que les permita...
Indecopi brinda recomendaciones para realizar compras seguras por el Día de la Madre
El Indecopi brinda recomendaciones a los consumidores para que realicen compras o contraten servicios de...
Indecopi promueve consulta pública para la solución directa de reclamos
El Indecopi promueve una consulta pública para recoger sugerencias e información para la evaluación de...
Infórmate sobre la campaña de bloqueo de celulares inválidos
¡Atención consumidores! En el Perú, son robados 6 046 celulares a diario. Por eso, presta atención a la...
#ViajaSeguro con dispositivos de protección y seguridad dentro de los vehículos
Participa de la campaña internacional sobre el uso correcto de dispositivos de protección dentro de...
#FíjaloBien!: Evita accidentes en casa, fija tus muebles y televisores
Evita el riesgo de accidentes que podrían presentarse al no fijarse o sujetarse los muebles de manera...
#FPM2017: Evita las estafas por Internet
Este 2017, dile no a las estafas por Internet. Infórmate sobre cómo hacerlo participando activamente de...
Se ha producido un error al procesar la plantilla.
Expression entry.getContent is undefined on line 22, column 28 in 20155#20195#117130.
1<div class="kr-sky" data-carousel="my_carousel">
2 <#assign liferay_ui= taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
3 <#list entries as entry>
4 <#assign entry = entry />
5
6 <#assign assetRenderer = entry.getAssetRenderer() />
7
8 <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) />
9
10 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) />
11
12 <#if assetLinkBehavior != "showFullContent">
13 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
14 </#if>
15 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) />
16 <#assign fieldVal_Enlace = docXml.valueOf("//dynamic-element[@name='Enlace_Interno']/dynamic-content/text()") />
17 <#assign fieldVal_ImagenPrincipal = docXml.valueOf("//dynamic-element[@name='ImagenPrincipal']/dynamic-content/text()") />
18
19 <#assign summary = entry.getDescription() />
20
21 <#if validator.isNull(summary)>
22 <#assign summary = entry.getContent() />
23 </#if>
24
25 <div class="kr-cloud kr-carousel" style="top:0!important;min-height: 240px;">
26 <#if fieldVal_Enlace != "">
27 <a href=" ${fieldVal_Enlace}" target="_BLANK" onclick='window.open(this.href);return false;'>
28 <span class="tam_titlAl">
29 ${entryTitle}
30 </span>
31 </a>
32 <#else>
33 <span class="tam_titlAl">
34 ${entryTitle}
35 </span>
36 </#if>
37 <div style="text-align:center;">
38
39 <a href=" ${viewURL}" target="_BLANK" onclick='window.open(this.href);return false;'>
40 <img src="${assetRenderer.getURLImagePreview(renderRequest)}" style="max-height:140px !important; width:210px !important;max-width:210px !important;"/>
41 </a>
42
43 </div>
44
45 <div>
46 ${stringUtil.shorten(htmlUtil.stripHtml(summary), 110)}
47 </div>
48
49 </div>
50 </#list>
51 </div>
52
53
54<#macro getDiscussion>
55 <#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")>
56 <br />
57
58 <#assign discussionURL = renderResponse.createActionURL() />
59
60 ${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())}
61
62 <@liferay_ui["discussion"]
63 className=entry.getClassName()
64 classPK=entry.getClassPK()
65 formAction=discussionURL?string
66 formName="fm" + entry.getClassPK()
67 ratingsEnabled=enableCommentRatings == "true"
68 redirect=portalUtil.getCurrentURL(request)
69 userId=assetRenderer.getUserId()
70 />
71 </#if>
72</#macro>
73
74<#macro getEditIcon>
75 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
76 <#assign redirectURL = renderResponse.createRenderURL() />
77
78 ${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")}
79 ${redirectURL.setWindowState("pop_up")}
80
81 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" />
82
83 <#if validator.isNotNull(editPortletURL)>
84 <#assign title = languageUtil.format(locale, "edit-x", entryTitle) />
85
86 <@liferay_ui["icon"]
87 image="edit"
88 message=title
89 url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
90 />
91 </#if>
92 </#if>
93</#macro>
94
95<#macro getFlagsIcon>
96 <#if enableFlags == "true">
97 <@liferay_ui["flags"]
98 className=entry.getClassName()
99 classPK=entry.getClassPK()
100 contentTitle=entry.getTitle(locale)
101 label=false
102 reportedUserId=entry.getUserId()
103 />
104 </#if>
105</#macro>
106
107<#macro getMetadataField
108 fieldName
109>
110 <#if stringUtil.split(metadataFields)?seq_contains(fieldName)>
111 <span class="metadata-entry metadata-"${fieldName}">
112 <#assign dateFormat = "dd MMM yyyy - HH:mm:ss" />
113
114 <#if fieldName == "author">
115 <@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())}
116 <#elseif fieldName == "categories">
117 <@liferay_ui["asset-categories-summary"]
118 className=entry.getClassName()
119 classPK=entry.getClassPK()
120 portletURL=renderResponse.createRenderURL()
121 />
122 <#elseif fieldName == "create-date">
123 ${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)}
124 <#elseif fieldName == "expiration-date">
125 ${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)}
126 <#elseif fieldName == "modified-date">
127 ${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)}
128 <#elseif fieldName == "priority">
129 ${entry.getPriority()}
130 <#elseif fieldName == "publish-date">
131 ${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)}
132 <#elseif fieldName == "tags">
133 <@liferay_ui["asset-tags-summary"]
134 className=entry.getClassName()
135 classPK=entry.getClassPK()
136 portletURL=renderResponse.createRenderURL()
137 />
138 <#elseif fieldName == "view-count">
139 <@liferay_ui["icon"]
140 image="history"
141 />
142
143 ${entry.getViewCount()} <@liferay.language key="views" />
144 </#if>
145 </span>
146 </#if>
147</#macro>
148
149<#macro getPrintIcon>
150 <#if enablePrint == "true" >
151 <#assign printURL = renderResponse.createRenderURL() />
152
153 ${printURL.setParameter("struts_action", "/asset_publisher/view_content")}
154 ${printURL.setParameter("assetEntryId", entry.getEntryId()?string)}
155 ${printURL.setParameter("viewMode", "print")}
156 ${printURL.setParameter("type", entry.getAssetRendererFactory().getType())}
157
158 <#if (validator.isNotNull(assetRenderer.getUrlTitle()))>
159 <#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())>
160 ${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)}
161 </#if>
162
163 ${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())}
164 </#if>
165
166 ${printURL.setWindowState("pop_up")}
167
168 <@liferay_ui["icon"]
169 image="print"
170 message="print"
171 url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});"
172 />
173 </#if>
174</#macro>
175
176<#macro getRatings>
177 <#if (enableRatings == "true")>
178 <div class="asset-ratings">
179 <@liferay_ui["ratings"]
180 className=entry.getClassName()
181 classPK=entry.getClassPK()
182 />
183 </div>
184 </#if>
185</#macro>
186
187<#macro getRelatedAssets>
188 <#if enableRelatedAssets == "true">
189 <@liferay_ui["asset-links"]
190 assetEntryId=entry.getEntryId()
191 />
192 </#if>
193</#macro>
194
195<#macro getSocialBookmarks>
196 <#if enableSocialBookmarks == "true">
197 <@liferay_ui["social-bookmarks"]
198 displayStyle="${socialBookmarksDisplayStyle}"
199 target="_blank"
200 title=entry.getTitle(locale)
201 url=viewURL
202 />
203 </#if>
204</#macro>