-
Technology for Solutions
Prueba:
http://wp1.tfsla.com /sites/tfsla/
Prueba RSS:
<%@ taglib prefix="nt" uri="http://www.tfsla.com/taglib/tfsNewsTags" %><%@ page import="org.jsoup.Jsoup,org.jsoup.nodes.Attribute,org.jsoup.nodes.Attributes,org.jsoup.nodes.Document,org.jsoup.nodes.Element,org.jsoup.parser.Tag,org.jsoup.select.Elements"%><% //SECCION DINAMICA PARA RSS POR SECCIONString SECCION_RSS = ( cmsJsp.property("seccion") != null ) ? cmsJsp.property("seccion") : "" ;String TAGS_RSS = ( cmsJsp.property("Keywords") != null ) ? cmsJsp.property("Keywords") : "" ;String TITLE_RSS = ( cmsJsp.property("Title") != null ) ? cmsJsp.property("Title") : "" ;pageContext.setAttribute("NEWSTYPES_LIST","listas");%> <%=site_name%> <%=site_description%> <%=domain%> spa Copyright (c) 2015 ${fn:replace(XmodificationDate, 'GMT', '')} hourly 1 http://www.cms-medios.com/ <%=site_name%> <%=domain%><%=site_img %> <%=domain%> <%--ENCODER TAGS AND TITLE--%> <% String imgPreviewPath = ""; %> ]]> ]]> ${fn:replace(XpublishDate, 'GMT', '')} <%descriptionArticle = descriptionArticle.replaceAll("<[^>]+>|[^>]+>|<[^>]+/>","");%> ]]> ]]> ]]> ]]> ]]> 0}"> <%-- guardo la img en variable para eliminar imagenes repetidas en el body --%> <% imgPreviewPath = (String)pageContext.getAttribute( "imagePreviewPath" ); %> <% Document doc = Jsoup.parse(body); doc.outputSettings().charset("UTF-8"); Elements elements = doc.select("figure.image").select("img"); for (Element element : elements) { String src = element.attr("src"); // fix para eliminar imagenes repetidas if(src.indexOf(imgPreviewPath) >-1){ element.parent().remove(); } // fix para eliminar los gif que no son de la plataforma GIPHY if(src.indexOf(".gif") >-1){ element.parent().remove(); } } //InstagramElements instagram = doc.select("div.ck-instagram");for (Element element : instagram) {try {Element blockquote = element.select("a").first();if (blockquote != null){Element iframe = doc.createElement("iframe");iframe.attr("width","320");iframe.attr("height","320");iframe.attr("allowfullscreen","");iframe.attr("frameborder","0");iframe.attr("src", "//www.instagram.com/p/" + blockquote.attr("href").substring(blockquote.attr("href").indexOf("p/")+2, blockquote.attr("href").indexOf("/",blockquote.attr("href").indexOf("p/")+3)) + "/embed/");if (element.parent()!=null && element.parent().nodeName().equals("div"))element.parent().replaceWith(iframe);elseelement.replaceWith(iframe);} else {element.remove();}} catch (Exception ex) {//LOG.error ("Error al transformar instagram en formato amp", ex);element.remove();}} body = doc.body().html(); out.println(body); %><%-- INI items nota Lista.--%> ${countItemList}.
<%-- FIN items nota Lista --%><%-- INI se arma slider con las imágenes de la galeria de fotos--%> <%--FIN se arma slider con las imagenes de la galeria de fotos--%> ]]>
Codigo CSS SIMPLE
p { text-align: center; color: red;}
ENCUESTA FIXED
No hay comentarios registrados para esta noticia
Para comentar debes estar logueado, ingresa a través de:
Si no estás registrado en una red social puedes crear una cuenta en Cms Para Medios