Blog de Información Ambiental de Andalucía
Blogs (Blog Información Ambiental)
36 a 40 de 146 resultados
Se ha producido un error al procesar la plantilla.
Java method "com.liferay.portlet.blogs.model.impl.BlogsEntryImpl.getCoverImageURL(com.liferay.portal.kernel.theme.ThemeDisplay)" threw an exception when invoked on com.liferay.portlet.blogs.model.impl.BlogsEntryImpl object "{uuid=35af448a-2ddd-ccd9-2ceb-aae2eb3da7e2, entryId=42326755, groupId=20142, companyId=20115, userId=20155, userName=Admin CMAOT, createDate=2019-11-08 13:03:43.0, modifiedDate=2022-04-06 09:18:42.756, title=17º Aniversario de la Reserva de la Biosfera Dehesas de Sierra Morena, subtitle= , urlTitle=17-aniversario-de-la-reserva-de-la-biosfera-dehesas-de-sierra-morena, description= , content=<h3>\n <span style=\"color: rgb(0,0,0);\">El 8 de noviembre de 2002 se declaró\n Reserva de la Biosfera Dehesas de Sierra Morena, con el objetivo de\n impulsar la dehesa como sistema ecológico representativo del mundo\n mediterráneo, mantener la continuidad de las producciones\n tradicionales y promover la colaboración entre la Administración\n Pública y los propietarios y usuarias de esas tierras.</span></h3>\n<span style=\"color: rgb(0,0,0);\">Con una superficie de más de 425 000\n has, este espacio natural se encuentra en la sección occidental de\n Andalucía, limitando por el norte con la Comunidad Autónoma de\n Extremadura y por el oeste con Portugal. Está formado por 42\n municipios distribuidos en las provincias de Huelva, Sevilla y Córdoba.</span>\n<span style=\"color: rgb(0,0,0);\">En su configuración geográfica se\n alternan montañas de alturas medias-bajas con valles de distintos\n tamaños, permitiendo el desarrollo de hábitat muy diversos, que van\n desde el bosque de encinas y alcornoques al junco. Del mismo modo,\n esta zona acoge una fauna variada y típica del monte mediterráneo,\n destacando especies emblemáticas como el lince ibérico, el águila\n real, el águila imperial y el buitre negro entre otras. </span>\n<span style=\"color: rgb(0,0,0);\">Esto es un indicador de los altos\n indices de calidad ambiental que posee esta Reserva de la Biosfera.</span>\n<span style=\"color: rgb(0,0,0);\">Las poblaciones que han ocupado a lo\n largo de la historia la dehesa poseían un conocimiento profundo del\n funcionamiento ecológico de la zona, lo que ha dado lugar a su\n interesante equilibrio entre naturaleza y cultura.</span>\n [caption id="attachment_7419"\nalign="aligncenter" width="640"]<img alt=\"\"\n class=\"size-full wp-image-7419\" height=\"160\"\n src=\"/medioambiente/portal/documents/20142/40305351/encina.jpg/230e5b92-6e2d-cc26-305a-db2d3b1b379c?version=1.0&t=1647430038109\" width=\"640\" />\n Arboleda densa de encinas. Manuel Moreno García[/caption] <h3>\n <strong>\n <span style=\"color: rgb(0,0,0);\">¿Qué ofrece la REDIAM en relación a\n ésta y otras Reserva de la Biosfera?</span></strong></h3>\n<span style=\"color: rgb(0,0,0);\">Desde <a\n href=\"https://laboratoriorediam.cica.es/ContenidosRediam/Matriz.do\"><span\n style=\"color: rgb(0,128,0);\">Acceso a contenidos\n REDIAM</span></a>, realizando una búsqueda por la palabra “Biosfera”,\n se obtienen todos los proyectos integrados en la REDIAM relacionados\n con las Reservas de la Biosfera en Andalucía, así como sus formas de acceso.</span>\n<span style=\"color: rgb(0,0,0);\">Entre los contenidos destacamos:</span>\n <ul>\n <li>\n <h6>\n <span style=\"color: rgb(0,128,0);\">\n <a\n href=\"http://descargasrediam.cica.es/repo/s/RUR?path=%2F09_PLANIFICACION%2F02_PLANIFICACION_ENP%2F01_PORN%2FZonificacion_RdB_DehesasSMorena\"\n style=\"color: rgb(0,128,0);\">Zonificación Reserva de la\n Biosfera Dehesas de Sierra Morena, Andalucía</a></span></h6></li></ul>\n<span style=\"color: rgb(0,0,0);\">La figura de Reserva de la Biosfera se\n otorga a espacios que cuentan con una riqueza natural y cultural\n representativas de los distintos ecosistemas del globo terráqueo. Este\n galardón lo concede la UNESCO, en el marco del programa MaB (Hombre y\n Biosfera). El territorio de una Reserva de Biosfera se divide en tres\n zonas según su nivel de protección: </span>\n<span style=\"color: rgb(0,0,0);\">· La zona núcleo: Está compuesta por\n ecosistemas mínimamente perturbados y característicos de una región\n del mundo. Un área núcleo tiene protección legal segura, y en ella\n sólo se permiten actividades no destructivas y que no afecten\n adversamente los procesos naturales del ecosistema. Esta zona debe\n asegurar la protección a largo plazo de la biodiversidad in situ. </span>\n<span style=\"color: rgb(0,0,0);\">· La zona tampón: Está comprendida por\n aquellos espacios donde sólo pueden realizarse actividades que\n contribuyan a los múltiples objetivos de la reserva. Estas actividades\n corresponden a investigación científica, educación y formación\n ambiental, así como actividades turísticas, recreativas, uso\n tradicional de la tierra y como zona cultural estable. </span>\n<span style=\"color: rgb(0,0,0);\">· La zona de transición: Es la parte\n más lejana de la zona núcleo y no está demarcada, pero corresponde a\n una dinámica y siempre expansiva zona de cooperación, donde el trabajo\n de la reserva de la biosfera es aplicado discretamente a las\n necesidades de las comunidades locales de la región. Así, la zona de\n transición puede contener asentamientos, campos, pastizales y bosques,\n y en ella se desarrollan actividades económicas que están en armonía\n con el medio ambiente natural y con la reserva de la biosfera.</span>\n<ul>\n <li>\n <h6>\n <span style=\"color: rgb(0,128,0);\">\n <a\n href=\"http://descargasrediam.cica.es/repo/s/RUR?path=%2F07_PATRIMONIO_NATURAL%2F01_ESPACIOS_PROTEGIDOS%2F01_RENPA%2F03_RESERVAS_BIOSFERA%2FReservas_Biosfera_actual\"\n style=\"color: rgb(0,128,0);\">Información sobre Reservas de la\n Biosfera en Andalucía</a></span></h6></li></ul>\n<span style=\"color: rgb(0,0,0);\">Capa actualizada de todas las Reservas\n de la Biosfera de Andalucía. Incluye la Intercontinental del\n Mediterráneo (Andalucía-España-/ Marruecos). Reconocidas internacionalmente.</span>\n <ul>\n <li>\n <span style=\"color: rgb(0,0,0);\">Toda la información, está\n disponible mediante descarga directa y a<strong> través de los\n siguientes servicios Web</strong>:</span>\n <ul>\n <li>\n <span style=\"color: rgb(0,128,0);\">\n <a\n href=\"http://www.cma.junta-andalucia.es/medioambiente/site/rediam/menuitem.04dc44281e5d53cf8ca78ca731525ea0/?vgnextoid=206a1cab5bf59210VgnVCM1000001325e50aRCRD&vgnextchannel=66ffdb27eb364410VgnVCM1000001325e50aRCRD&vgnextfmt=rediam&lr=lang_es\"\n style=\"color: rgb(0,128,0);\">WMS de la delimitación de las\n Reservas de la Biosfera en Andalucía</a></span></li>\n <li>\n <span style=\"color: rgb(0,51,0);\">\n <a\n href=\"http://www.cma.junta-andalucia.es/medioambiente/site/rediam/menuitem.04dc44281e5d53cf8ca78ca731525ea0/?vgnextoid=885d2c154e36f310VgnVCM2000000624e50aRCRD&vgnextchannel=20a57c119370f210VgnVCM2000000624e50aRCRD&vgnextfmt=rediam&lr=lang_es\"\n style=\"color: rgb(0,51,0);\"><span\n style=\"color: rgb(0,128,0);\">WMS de zonificación de las\n Reservas de la Biosfera en Andalucía</span></a></span></li>\n <li>\n <a href=\"https://laboratoriorediam.cica.es/VisorRediam/\"><span\n style=\"color: rgb(0,128,0);\">Visor Geográfico de la REDIAM.</span></a></li></ul></li></ul>\n <h3>\n <strong>\n <span style=\"color: rgb(0,0,0);\">Amplía toda la información:</span></strong></h3>\n<ul>\n <li>\n <strong>\n <span style=\"color: rgb(0,128,0);\">\n <a href=\"https://bit.ly/2NSepgD\"\n style=\"color: rgb(0,128,0);\">Las Reservas de la Biosfera en la\n web de la <span style=\"color: rgb(0,128,0);\">CAGPDS</span></a></span></strong></li>\n <li>\n <a href=\"http://172.20.20.237/reservas-biosfera-andalucia\"><span style=\"color: rgb(0,128,0);\">\n <strong>Las Reservas de la Biosfera en el Blog de la Comunidad REDIAM</strong></span></a></li></ul>\n<strong>\n <span style=\"color: rgb(0,0,0);\">Imagen de portada. Vuelo en el Parque\n Natural de Sierra de Aracena y Picos de Aroche. Javier Hernández Gallardo</span></strong>, displayDate=2019-11-08 13:03:43.0, allowPingbacks=false, allowTrackbacks=false, trackbacks=, coverImageCaption=, coverImageFileEntryId=40314915, coverImageURL=, smallImage=false, smallImageFileEntryId=40314915, smallImageId=0, smallImageURL=, lastPublishDate=null, status=0, statusByUserId=20155, statusByUserName=Admin CMAOT, statusDate=2022-04-06 09:18:42.756}"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #if curBlogEntry.getCoverImageURL(the... [in template "20115#20151#1583861" at line 23, column 13] ----
1<#assign commonServiceApiService = serviceLocator.findService("es.juntadeandalucia.cma.global.common.services.api.CommonServiceApi")/>
2<#assign formaterDate = commonServiceApiService.getFormatDate() />
3<#-- <#assign blogService = serviceLocator.findService("com.liferay.blogs.kernel.service.BlogsEntryLocalService") /> -->
4<div style="display: block; position: fixed; left: 0px; right: 0px; top: 0px; bottom: 0px; background-color: white;z-index: 99;" id="hideAll"> </div>
5<#assign MBMessageLocalServiceUtil = serviceLocator.findService("com.liferay.message.boards.kernel.service.MBMessageLocalService")>
6<#assign blogService = serviceLocator.findService("es.juntadeandalucia.cma.global.blogs.rating.service.BlogsRatingLocalService") />
7
8<section class="evr-blog">
9 <#assign URLb = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout()) + "/" />
10
11 <div class="evr-blog__title-container">
12 <h1 class="evr-blog__title"><@liferay.language key="cladt20.blogs.titulo.contenedor"/></h1>
13 </div>
14 <#if entries?has_content>
15 <#list entries as curBlogEntry>
16
17 <#assign tituloURL = curBlogEntry.getUrlTitle()?replace("-", "+")>
18
19 <#assign resourcePrimKey = curBlogEntry.getPrimaryKey()/>
20 <#assign Messages = MBMessageLocalServiceUtil.getMessages("com.liferay.blogs.kernel.model.BlogsEntry", resourcePrimKey, 0) />
21 <#assign MessagesCount = Messages?size />
22
23 <#if curBlogEntry.getCoverImageURL(themeDisplay)??>
24 <#assign cardImage = true />
25 <#else>
26 <#assign cardImage = false />
27 </#if>
28
29 <#assign titulo = curBlogEntry.title />
30 <#assign texto = curBlogEntry.content />
31 <#assign resumen = curBlogEntry.getDescription() />
32
33 <div class="evr-blog__card" id="${curBlogEntry.getEntryId()}">
34 <#if cardImage>
35 <div class="evr-blog__card-fig-wrapper">
36 <div class="evr-blog__card-image" style="background-image: url(${curBlogEntry.getCoverImageURL(themeDisplay)})"></div>
37 </div>
38 </#if>
39 <div class="evr-blog__card-text-container" >
40 <#if titulo?has_content>
41 <a class="evr-blog__card-title" href="${URLb}-/blogs/${curBlogEntry.getUrlTitle()}" title="${titulo}">${titulo}</a>
42 </#if>
43 <#if curBlogEntry.getDisplayDate()?has_content>
44 <span class="evr-blog__card-date">${dateUtil.getDate(curBlogEntry.getDisplayDate(), formaterDate, locale)}</span>
45 </#if>
46
47 <#if resumen?has_content>
48 <p class="evr-blog__card-text">${resumen}</p>
49 <#elseif texto?has_content>
50 <p class="evr-blog__card-text">${stringUtil.shorten(htmlUtil.stripHtml(texto), 400)}</p>
51 </#if>
52 </div>
53
54 <div class="evr-blog__card-icon-container">
55 <ul class="evr-blog__card-icons-rrss" style="padding-left: 20px;">
56 <#-- <li class="evr-blog__card-icon evr-blog__card-icon--more">
57 <button type="button" class="evr-blog__card-icon-button">
58 <figure class="evr-blog__card-icon-fig">
59 <img class="evr-blog__card-icon-img" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/icon_blog_puntos.svg" alt="Icono lista menú">
60 </figure>
61 </button>
62 </li> -->
63 <li class="evr-blog__card-icon evr-blog__card-icon--facebook">
64 <a href="http://www.facebook.com/sharer.php?u=${URLb}-/blogs/${curBlogEntry.getUrlTitle()}" role="button" class="evr-blog__card-icon-button" target="_blank">
65 <figure class="evr-blog__card-icon-fig">
66 <img class="evr-blog__card-icon-img" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/icon_blog_facebook.svg" alt="Icono Facebook">
67 </figure>
68 </a>
69 </li>
70 <li class="evr-blog__card-icon evr-blog__card-icon--linkedin">
71 <a href="https://www.linkedin.com/shareArticle?url=${URLb}-/blogs/${curBlogEntry.getUrlTitle()}&title=${curBlogEntry.getUrlTitle()}" role="button" class="evr-blog__card-icon-button" target="_blank">
72 <figure class="evr-blog__card-icon-fig">
73 <img class="evr-blog__card-icon-img" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/icon_blog_linkedin.svg" alt="Icono Linkedin">
74 </figure>
75 </a>
76 </li>
77 <#-- <li class="evr-blog__card-icon evr-blog__card-icon--pinterest">
78 <a href="https://pinterest.com/pin/create/bookmarklet/?url=${URLb}-/blogs/${curBlogEntry.getUrlTitle()}&description=${curBlogEntry.getUrlTitle()}" role="button" class="evr-blog__card-icon-button" target="_blank">
79 <figure class="evr-blog__card-icon-fig">
80 <img class="evr-blog__card-icon-img" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/icon_blog_pinterest.svg" alt="Icono Pinterest">
81 </figure>
82 </a>
83 </li> -->
84 <li class="evr-blog__card-icon evr-blog__card-icon--twitter">
85 <a href="https://twitter.com/intent/tweet?text=${tituloURL}&tw_p=tweetbutton&url=${URLb}-/blogs/${curBlogEntry.getUrlTitle()}" role="button" class="evr-blog__card-icon-button" target="_blank">
86 <figure class="evr-blog__card-icon-fig">
87 <img class="evr-blog__card-icon-img" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/icon_blog_twitter.svg" alt="Icono Twitter">
88 </figure>
89 </a>
90 </li>
91 </ul>
92 <div class="evr-blog__card-icons-feedback" style="display: block ruby;">
93 <#-- <div class="evr-blog__card-like-container">
94 <a href="https://twitter.com/intent/tweet?text=${tituloURL}&tw_p=tweetbutton&url=${URLb}-/blogs/${curBlogEntry.getUrlTitle()}" role="button" class="evr-blog__card-icon-button" target="_blank">
95 <figure class="evr-blog__card-like-icon-fig">
96 <img class="evr-blog__card-like-icon-img" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/icon_blog_heart.svg" alt="Icono like">
97 </figure>
98 </a>
99 <div class="evr-blog__card-like-counter">10</div>
100 </div> -->
101
102 <#if blogsPortletInstanceConfiguration.enableRatings()>
103 <div class="ratings">
104 <div class="taglib-ratings thumbs" id="${curBlogEntry.getEntryId()}ratingContainer">
105 <div class="liferay-rating-vote thumbrating" id="${curBlogEntry.getEntryId()}ratingThumb">
106 <div class="helper-clearfix rating-content thumbrating-content" id="${curBlogEntry.getEntryId()}rate">
107 <#if blogService.countByBlogEntryId(curBlogEntry.getEntryId()) == 0>
108 <#assign nuevoRating = blogService.addBlogsRating(curBlogEntry.getEntryId(), 0, 0)>
109 <#assign bRating = blogService.getBlogsRating(curBlogEntry.getEntryId())>
110 <#assign likes = bRating.getLikes()>
111 <#assign dislikes = bRating.getDislikes()>
112 <#assign updateLikes = likes + 1>
113 <#assign updateDislikes = dislikes + 1>
114
115 <a id="${curBlogEntry.getEntryId()?number}_likes" class="glyphicon glyphicon-thumbs-up rating-element rating-thumb-up rating-off" href="#" onclick='updateRating("${curBlogEntry.getEntryId()?number}", "${updateLikes?number}", "${dislikes?number}")' title="Valorar positivamente">${likes}</a>
116 <a id="${curBlogEntry.getEntryId()?number}_dislikes" class="glyphicon glyphicon-thumbs-down rating-element rating-thumb-down rating-off" href="#" onclick='updateRating("${curBlogEntry.getEntryId()?number}", "${likes?number}", "${updateDislikes?number}")' title="Valorar negativamente">${dislikes}</a>
117
118 <#elseif blogService.countByBlogEntryId(curBlogEntry.getEntryId()) == 1>
119 <#assign bRating = blogService.getBlogsRating(curBlogEntry.getEntryId())>
120 <#assign likes = bRating.getLikes()>
121 <#assign dislikes = bRating.getDislikes()>
122 <#assign updateLikes = likes + 1>
123 <#assign updateDislikes = dislikes + 1>
124
125 <a id="${curBlogEntry.getEntryId()?number}_likes" class="glyphicon glyphicon-thumbs-up rating-element rating-thumb-up rating-off" href="#" onclick='updateRating("${curBlogEntry.getEntryId()?number}", "${updateLikes?number}", "${dislikes?number}")' title="Valorar positivamente">${likes}</a>
126 <a id="${curBlogEntry.getEntryId()?number}_dislikes" class="glyphicon glyphicon-thumbs-down rating-element rating-thumb-down rating-off" href="#" onclick='updateRating("${curBlogEntry.getEntryId()?number}", "${likes?number}", "${updateDislikes?number}")' title="Valorar negativamente">${dislikes}</a>
127 </#if>
128 </div>
129 </div>
130 </div>
131 </div>
132 </#if>
133
134 <#if blogsPortletInstanceConfiguration.enableComments()>
135 <#assign viewCommentsPortletURL = renderResponse.createRenderURL() />
136
137 ${viewCommentsPortletURL.setParameter("mvcRenderCommandName", "/blogs/view_entry")}
138 ${viewCommentsPortletURL.setParameter("scroll", renderResponse.getNamespace() + "discussionContainer")}
139
140 <#if validator.isNotNull(curBlogEntry.getUrlTitle())>
141 ${viewCommentsPortletURL.setParameter("urlTitle", curBlogEntry.getUrlTitle())}
142 <#else>
143 ${viewCommentsPortletURL.setParameter("entryId", curBlogEntry.getEntryId()?string)}
144 </#if>
145
146 <div class="evr-blog__card-comment-container" style="padding-top: 9px;">
147 <a href="${viewCommentsPortletURL.toString()}">
148 <button type="button" class="evr-blog__card-comment-icon">
149 <figure class="evr-blog__card-comment-icon-fig" >
150 <img class="evr-blog__card-comment-icon-img" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/icon_blog_comentarios.svg" alt="Icono comentarios">
151 </figure>
152 </button>
153 </a>
154 <div class="evr-blog__card-comment-counter">${MessagesCount}</div>
155 </div>
156 </#if>
157 </div>
158 </div>
159 </div>
160 </#list>
161 </#if>
162</section>
163
164<script>
165
166(function (factory) {
167 if (typeof define === 'function' && define.amd) {
168 // AMD (Register as an anonymous module)
169 define(['jquery'], factory);
170 } else if (typeof exports === 'object') {
171 // Node/CommonJS
172 module.exports = factory(require('jquery'));
173 } else {
174 // Browser globals
175 factory(jQuery);
176 }
177}(function ($) {
178
179 var pluses = /\+/g;
180
181 function encode(s) {
182 return config.raw ? s : encodeURIComponent(s);
183 }
184
185 function decode(s) {
186 return config.raw ? s : decodeURIComponent(s);
187 }
188
189 function stringifyCookieValue(value) {
190 return encode(config.json ? JSON.stringify(value) : String(value));
191 }
192
193 function parseCookieValue(s) {
194 if (s.indexOf('"') === 0) {
195 // This is a quoted cookie as according to RFC2068, unescape...
196 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
197 }
198
199 try {
200 // Replace server-side written pluses with spaces.
201 // If we can't decode the cookie, ignore it, it's unusable.
202 // If we can't parse the cookie, ignore it, it's unusable.
203 s = decodeURIComponent(s.replace(pluses, ' '));
204 return config.json ? JSON.parse(s) : s;
205 } catch(e) {}
206 }
207
208 function read(s, converter) {
209 var value = config.raw ? s : parseCookieValue(s);
210 return $.isFunction(converter) ? converter(value) : value;
211 }
212
213 var config = $.cookie = function (key, value, options) {
214
215 // Write
216
217 if (arguments.length > 1 && !$.isFunction(value)) {
218 options = $.extend({}, config.defaults, options);
219
220 if (typeof options.expires === 'number') {
221 var days = options.expires, t = options.expires = new Date();
222 t.setMilliseconds(t.getMilliseconds() + days * 864e+5);
223 }
224
225 return (document.cookie = [
226 encode(key), '=', stringifyCookieValue(value),
227 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
228 options.path ? '; path=' + options.path : '',
229 options.domain ? '; domain=' + options.domain : '',
230 options.secure ? '; secure' : ''
231 ].join(''));
232 }
233
234 // Read
235
236 var result = key ? undefined : {},
237 // To prevent the for loop in the first place assign an empty array
238 // in case there are no cookies at all. Also prevents odd result when
239 // calling $.cookie().
240 cookies = document.cookie ? document.cookie.split('; ') : [],
241 i = 0,
242 l = cookies.length;
243
244 for (; i < l; i++) {
245 var parts = cookies[i].split('='),
246 name = decode(parts.shift()),
247 cookie = parts.join('=');
248
249 if (key === name) {
250 // If second argument (value) is a function it's a converter...
251 result = read(cookie, value);
252 break;
253 }
254
255 // Prevent storing a cookie that we couldn't decode.
256 if (!key && (cookie = read(cookie)) !== undefined) {
257 result[name] = cookie;
258 }
259 }
260
261 return result;
262 };
263
264 config.defaults = {};
265
266 $.removeCookie = function (key, options) {
267 // Must not alter options, thus extending a fresh object...
268 $.cookie(key, '', $.extend({}, options, { expires: -1 }));
269 return !$.cookie(key);
270 };
271
272}));
273
274function updateRating(blogEntryId1, likes1, dislikes1) {
275
276
277 var cookieName = 'rating-' + blogEntryId1;
278 if(!$.cookie(cookieName)) {
279
280 Liferay.Service('/blogsrating.blogsrating/update-blogs-rating', {
281 blogEntryId: blogEntryId1,
282 likes: likes1,
283 dislikes: dislikes1
284 },
285 function(obj) {
286 //debugger;
287 var likes = document.getElementById(obj.blogEntryId + "_likes");
288 var dislikes = document.getElementById(obj.blogEntryId + "_dislikes");
289
290 //console.log(obj);
291 likes.text = obj.likes;
292 dislikes.text = obj.dislikes;
293 }
294 );
295
296 $.cookie(cookieName, "true");
297 window.location.hash = "#" + blogEntryId1;
298
299
300 } else {
301 alert('Ya has valorado esta entrada antes');
302
303 }
304};
305
306function hideBlog(){
307
308 var funcionalidades = document.getElementsByClassName('evr-header__bar-container');
309 var cabecera = document.getElementsByClassName('evr-header__container');
310 var categorizacion = document.getElementsByClassName('entry-title taglib-categorization-filter');
311 var rss = document.getElementsByClassName("subscribe");
312 //var enlaces = document.getElementById('p_p_id_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_breakingNews4_');
313 var ocultarTodo = document.getElementById("hideAll");
314
315 //console.log(categorizacion.length);
316
317 //enlaces.parentNode.removeChild(enlaces);
318 ocultarTodo.parentNode.removeChild(ocultarTodo);
319
320 for (let i = 0; i < funcionalidades.length; i++) {
321 funcionalidades[i].parentNode.removeChild(funcionalidades[i]);
322 }
323
324 for (let j = 0; j < cabecera.length; j++) {
325 cabecera[j].parentNode.removeChild(cabecera[j]);
326 }
327
328 for (let k = 0; k < rss.length; k++) {
329 rss[k].parentNode.removeChild(rss[k]);
330 }
331
332 for (let x = 0; x < categorizacion.length; x++) {
333 categorizacion[x].parentNode.removeChild(categorizacion[x]);
334 }
335
336};
337
338$( window ).on( "load", hideBlog);
339</script>
Publicador de contenidos
Últimas entradas del blog
Los arrozales, un ejemplo de vegetación a contracorriente
03 de diciembre de 2020
Últimos informes de la Agencia Europea de Medio Ambiente
25 de noviembre de 2020
La "economía circular": objetivos, seguimiento y estadísticas.
23 de noviembre de 2020
Nodo: svpl-lrtom02:8080