<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>onestic &#187; Wordpress</title>
	<atom:link href="http://onestic.com/category/blog/wordpress-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://onestic.com</link>
	<description>blog de onestic</description>
	<lastBuildDate>Mon, 06 Sep 2010 14:21:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress, imagen no encontrada, error 404 y el bucle infinito</title>
		<link>http://onestic.com/wordpress-imagen-no-encontrada-error-404-y-el-bucle-infinito/</link>
		<comments>http://onestic.com/wordpress-imagen-no-encontrada-error-404-y-el-bucle-infinito/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 15:52:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[bucle infinito]]></category>
		<category><![CDATA[not found error]]></category>
		<category><![CDATA[rewrite rules]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=758</guid>
		<description><![CDATA[La personalización de las páginas de error en Wordpress es cómoda y sencilla. La página de error más socorrida en las plantillas de Wordpress es la del error 404 o "not found". Esta página se muestra cuando se ha intentado acceder a una url para la que no existe contenido. Los más astutos aprovechan esta [...]]]></description>
			<content:encoded><![CDATA[La personalización de las <strong>páginas de error en Wordpress</strong> es cómoda y sencilla. La página de error más socorrida en las plantillas de Wordpress es la del error <strong>404 </strong>o "not found". Esta página se muestra cuando se ha intentado acceder a una url para la que no existe contenido. Los más astutos aprovechan esta página para ofrecer al usuario <strong>enlaces a contenido relacionado</strong> con el que ha intentado encontrar para evitar que el usuario abandone la web. Otros simplemente muestran un texto indicando que no se ha encontrado el contenido buscado, dentro de una página que mantiene el estilo del resto de la web.

Pero pensemos que este error se dará para cualquier url errónea en el navegador, tanto si es una página como si es una imágen o un documento. Ahora pensemos que alguna de las <strong>imágenes </strong>de nuestro <strong>tema </strong>no se referencia bien desde la <strong>plantilla de Wordpress</strong> o simplemente no exista en el servidor, dando un error <strong>404</strong>. Siempre que se muestre alguna página de nuestra plantilla que tenga esta imagen, se generará un error <strong>404 </strong>y se renderizará en el servidor la página de <strong>error 404 de Wordpress</strong>. Esto hace que <strong>aumente nuestra carga de servidor</strong> innecesariamente y también <strong>el tiempo de carga de la página</strong>, ya que en lugar de mandarse un mensaje escueto desde el servidor con el error <strong>404 </strong>para la petición de esta imagen, se está mandando una página entera con todos los estilos. Esto se puede ver más claro con firebug:

<img class="alignleft size-large wp-image-760" title="captura-404" src="http://onestic.com/wp-content/uploads/2010/01/captura-4041-611x198.jpg" alt="" width="611" height="198" />

Sólo<strong> por minimizar la carga del servidor</strong> ya merece la pena hacer algo a este respecto, pero ahora imaginemos otro escenario en el que esta imagen que falta está referenciada en el footer, el sidebar o el header, y siempre que pidamos una página de wordpress se hará una petición a esta imagen inexistente (incluida la de 404). Entonces nos podemos encontrar con un <strong>bucle infinito</strong>: Se accede a una página: Se pide la imagen-> 404: Se vuelve a pedir la imagen -> 404: Se vuelve a pedir la imagen... Y así hasta que se sature el servidor web si ninguna opción de seguridad lo evita antes.

Para <strong>solucionar este problema</strong> tan sólo debemos <strong>añadir un par de líneas a nuestro fichero .htaccess</strong> Redordad que las directrices del .htaccess se procesan en orden, por lo que conviene ponerla antes de las demás <strong>Rewrite Rules</strong>. Con estas líneas indicaremos que si se encuentra ante una <strong>petición http</strong> a una imagen que no exista, devuelva en su lugar cualquier otro elemento que nosotros le indiquemos y que sí esté disponible. Podemos indicar más tipos de fichero si lo consideramos oportuno:

<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-2">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteCond %<span style="color:#006600; font-weight:bold;">&#123;</span>REQUEST_FILENAME<span style="color:#006600; font-weight:bold;">&#125;</span> !-f</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteCond %<span style="color:#006600; font-weight:bold;">&#123;</span>REQUEST_URI<span style="color:#006600; font-weight:bold;">&#125;</span> \.<span style="color:#006600; font-weight:bold;">&#40;</span>gif|jpg|jpeg|png|bmp<span style="color:#006600; font-weight:bold;">&#41;</span>$</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteRule .* wp-content/themes/mi_tema/<span style="color:#800000;color:#800000;">404</span>.<span style="">html</span> <span style="color:#006600; font-weight:bold;">&#91;</span>L<span style="color:#006600; font-weight:bold;">&#93;</span> </div></li></ol></div>
</div></div><br />

Entre las diferentes opciones que tenemos a nuestra disposición, podemos <strong>devolver una imagen de 1x1 píxeles</strong>, aumentando la velocidad de carga de la página, o podemos <strong>incluir una imagen por defecto</strong> con el logo de la página (con cuidado, porque esta opción puede descuadrarnos el tema). También podemos devolver una <strong>página de error más básica </strong>que la de la plantilla, y<strong> en html estático</strong>.

A pesar de que nos hemos puesto en el peor caso, esto no es lo habitual. Este tipo de errores de imágenes no encontradas se observa con más frecuencia en la redacción de posts que en la implementación del tema. Pero una migración de servidor, una limpieza de los ficheros subidos a Wordpress o un cambio de directorio pueden ocasionar que estos errores aparezcan de la noche a la mañana.]]></content:encoded>
			<wfw:commentRss>http://onestic.com/wordpress-imagen-no-encontrada-error-404-y-el-bucle-infinito/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mostrar los thumbnails de los posts en Wordpress 2.9</title>
		<link>http://onestic.com/mostrar-los-thumbnails-de-los-posts-en-wordpress-2-9/</link>
		<comments>http://onestic.com/mostrar-los-thumbnails-de-los-posts-en-wordpress-2-9/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 17:03:33 +0000</pubDate>
		<dc:creator>Sergio Nieto</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[miniatura]]></category>
		<category><![CDATA[tema wordpress]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress 2.9]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=724</guid>
		<description><![CDATA[Una de las nuevas características incluidas en la nueva versión 2.9 de Wordpress es la de obtener un thumbnail o preview de una imagen para cada post sin necesidad de usar plugins adicionales. De esta forma podemos ponerle una 'carátula' que sea una imagen a cada post que escribamos en Wordpress de una forma rápida [...]]]></description>
			<content:encoded><![CDATA[Una de las nuevas características incluidas en la nueva versión 2.9 de Wordpress es la de obtener un thumbnail o preview de una imagen para cada post sin necesidad de usar plugins adicionales. De esta forma podemos ponerle una 'carátula' que sea una imagen a cada post que escribamos en Wordpress de una forma rápida y sencilla.

Lo primero que debemos tener en cuenta es que la nueva funcionalidad de Magento no extrae automáticamente las imágenes de los posts, si no que al editar la entrada hay que indicar cual es la imagen específica que va a tener como 'Miniatura de entrada'.

1.- Habilitar esta nueva funcionalidad

Para habilitar estas funciones debemos incluir en el fichero functions.php unas líneas de código. Además podemos especificar tamaños adicionales a los que vienen por defecto en Wordpress y que se especifican en el administrador (thumbnail, medium y large). Pongo un código de ejemplo, que además está preparado para hacer nuestro tema compatible con versiones anteriores de Wordpress:

<div class="igBar"><span id="lphp-9"><a href="#" onclick="javascript:showPlainTxt('php-9'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-9">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'add_theme_support'</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#FF9933; font-style:italic;">// A partir de la 2.9</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_theme_support<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'post-thumbnails'</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">set_post_thumbnail_size<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#CC66CC;color:#800000;">50</span>, <span style="color:#CC66CC;color:#800000;">50</span>, <span style="color:#000000; font-weight:bold;">true</span> <span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">// Especificamos el tamaño por defecto de los thumbnails</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_image_size<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'thumbnail-para-la-home'</span>, <span style="color:#CC66CC;color:#800000;">400</span>, <span style="color:#CC66CC;color:#800000;">9999</span> <span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">// Especificamos un tamaño específico que se llamará 'single-post-thumbnail'</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div></li></ol></div>
</div></div><br />

Recordad que este código funcionará sólo con las nuevas imágenes subidas.

2.- Añadir el código para que se muestre la miniatura en la plantilla de Wordpress:

Para añadir el código del thumbnail del post simplemente hay que añadir estas líneas, dejando abierta la opción por si el post no tiene imagen en miniatura o no está habilitada esta función:

<div class="igBar"><span id="lphp-10"><a href="#" onclick="javascript:showPlainTxt('php-10'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-10">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'has_post_thumbnail'</span><span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp; has_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">the_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// ejemplo de código adicional si no hay imagen en miniatura</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$postimage</span> = get_post_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span>, <span style="color:#FF0000;">'post-image'</span>, <span style="color:#000000; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$postimage</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'&lt;img src=&quot;'</span>.<span style="color:#0000FF;">$postimage</span>.<span style="color:#FF0000;">'&quot; alt=&quot;&quot; /&gt;'</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div></li></ol></div>
</div></div><br />

Podemos pasarle como parámetro a la función <code class="php plain">the_post_thumbnail() el nombre del tamaño que queremos mostrar en pantalla. Por ejemplo, para obtener las miniaturas en los tamaños estandar de Wordpress podemos usar 'thumbnail', 'medium' o 'large':
<div class="igBar"><span id="lphp-11"><a href="#" onclick="javascript:showPlainTxt('php-11'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-11">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">the_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'medium'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br /></code>

También podemos usar los tamaños que hemos predefinido anteriormente en el fichero functions.php:
<div class="igBar"><span id="lphp-12"><a href="#" onclick="javascript:showPlainTxt('php-12'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-12">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">the_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'thumbnail-para-la-home'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

Para añadir un estilo específico, podemos usar la siguiente clase en nuestra css:
<div class="igBar"><span id="lphp-13"><a href="#" onclick="javascript:showPlainTxt('php-13'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-13">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">.wp-post-image <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border: 2px solid <span style="color:#008000; font-style:italic;">#ccc;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div></li></ol></div>
</div></div><br />

3.- Controlar en detalle el código html del thumbnail del post

La función que pinta la imagen en miniatura del post acepta un array como segundo parámetro cuyos valores usará luego para construir la etiqueta img. Aunque hay algunos atributos, como el título de la imagen, que se crearán automáticamente a partir de los valores de los campos que se completaron cuando se incluyó la imagen como miniatura en el post. La versatilidad de esta función la podemos ver mejor con otro ejemplo de uso:
<div class="igBar"><span id="lphp-14"><a href="#" onclick="javascript:showPlainTxt('php-14'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-14">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">the_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'medium'</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'class'</span> =&gt; <span style="color:#FF0000;">'alignleft'</span>, <span style="color:#FF0000;">'alt'</span> =&gt; <span style="color:#FF0000;">'alttext'</span>, <span style="color:#FF0000;">'title'</span> =&gt; <span style="color:#FF0000;">'titletext'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

4.- Añadir un thumbnail a los posts

Por último sólo queda configurar los posts para que muestren la imagen en miniatura en nuestra plantilla. Esto se logra accediendo a la edición de un post, y seleccionando la imagen a mostrar (o subiendo una nueva) en el enlace del administrador que aparece a la derecha justo debajo de las categorías.

También podemos especificar directamente que una imagen sea la imagen en miniatura, en la interfaz que nos muestra Wordpress cuando estamos incluyendo la imagen en el post.

<img class="size-medium wp-image-736 alignright" title="uasMiniatura" src="http://onestic.com/wp-content/uploads/2010/01/uasMiniatura-300x126.png" alt="" width="300" height="126" /><a href="http://www.kremalicious.com/2009/12/wordpress-post-thumbnails/" target="_blank"></a><img class="alignleft size-full wp-image-742" title="miniaturaImagen" src="http://onestic.com/wp-content/uploads/2010/01/miniaturaImagen2.png" alt="" width="238" height="58" />
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 413px; width: 1px; height: 1px;">

<code class="php plain">&lt;?php</code>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>2</code></td>
<td class="content"><code class="php keyword">if</code> <code class="php plain">( has_post_thumbnail() ) {</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt1">
<table border="0">
<tbody>
<tr>
<td class="number"><code>3</code></td>
<td class="content"><code class="spaces"> </code><code class="php comments">// the current post has a thumbnail</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>4</code></td>
<td class="content"><code class="php plain">} </code><code class="php keyword">else</code> <code class="php plain">{</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt1">
<table border="0">
<tbody>
<tr>
<td class="number"><code>5</code></td>
<td class="content"><code class="spaces"> </code><code class="php comments">// the current post lacks a thumbnail</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>6</code></td>
<td class="content"><code class="php plain">}</code></td>
</tr>
</tbody>
</table>
</div>
<table border="0">
<tbody>
<tr>
<td class="number"><code>7</code></td>
<td class="content"><code class="php plain">?&gt;</code></td>
</tr>
</tbody>
</table>
</div>]]></content:encoded>
			<wfw:commentRss>http://onestic.com/mostrar-los-thumbnails-de-los-posts-en-wordpress-2-9/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Como agregar correctamente CSS a Wordpress</title>
		<link>http://onestic.com/agregar-correctamente-css-wordpress/</link>
		<comments>http://onestic.com/agregar-correctamente-css-wordpress/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 14:20:11 +0000</pubDate>
		<dc:creator>David Bolufer</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=611</guid>
		<description><![CDATA[En esta entrada intentaremos aportar un poco de luz a la mejor forma, a nuestro modo de ver, para incluir nuestros archivos CSS en Wordpress tanto en nuestro tema como en nuestro.

La gran mayoría agregáis vuestra CSS al tema directamente, o cuando desarrolláis un plugin lo incluís utilizando un código más o menos así:

PLAIN TEXTPHP:
function [...]]]></description>
			<content:encoded><![CDATA[En esta entrada intentaremos aportar un poco de luz a la mejor forma, a nuestro modo de ver, para incluir nuestros archivos CSS en <strong>Wordpress</strong> tanto en nuestro tema como en nuestro.

La gran mayoría agregáis vuestra CSS al tema directamente, o cuando desarrolláis un plugin lo incluís utilizando un código más o menos así:

<div class="igBar"><span id="lphp-18"><a href="#" onclick="javascript:showPlainTxt('php-18'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-18">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> on__style<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> &amp;quot;&amp;lt;style type=<span style="color:#FF0000;">'text/css'</span>&amp;gt;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; .scroll_checkboxes <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height: 400px;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 400px;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; padding: 5px;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; overflow: auto;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; border: 1px solid <span style="color:#008000; font-style:italic;">#ccc</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .scroll_checkboxes label<span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float: left;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clear: both;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .form-table input<span style="color:#006600; font-weight:bold;">&#91;</span>type=text<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#123;</span> width: 400px <span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &amp;lt;/style&amp;gt;&amp;quot;;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_action<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'wp_head'</span>, <span style="color:#FF0000;">'on__style'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

Bueno, he puesto el caso peor haciendo la "guarrada" de no incluir nuestro código CSS en un archivo externo. El modo más limpio para hacerlo es a través un hook de Wordpress que ejecuta dentro de la función wp_head(), este es <strong>wp_print_styles</strong>, podemos introducir el siguiente código en nuestro archivo functions.php del tema:

<div class="igBar"><span id="lphp-19"><a href="#" onclick="javascript:showPlainTxt('php-19'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-19">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> on__style<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; wp_enqueue_style<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'style-theme'</span>, get_bloginfo<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'stylesheet_url'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#000000; font-weight:bold;">false</span>, <span style="color:#000000; font-weight:bold;">false</span>, <span style="color:#FF0000;">'screen'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; wp_enqueue_style<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'960'</span>, get_bloginfo<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'template_url'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#FF0000;">'/_inc/css/960.css'</span>,<span style="color:#FF0000;">'style-theme'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; wp_enqueue_style<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'jquery-ui'</span>, get_bloginfo<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'template_url'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#FF0000;">'/_inc/css/jquery-ui.custom/ jquery-ui.custom.css'</span>,<span style="color:#FF0000;">'style-theme'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_action<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'wp_print_styles'</span>, <span style="color:#FF0000;">'on__style'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

Con este código no tendremos que introducir ninguna referencia al CSS en el archivo header.php de nuestro tema, simplemente tenemos que asegurarnos que antes del cierre de la etiqueta llamamos a la función wp_head().

En el caso de estar desarrollando un plugin, este sería el código equivalente:

<div class="igBar"><span id="lphp-20"><a href="#" onclick="javascript:showPlainTxt('php-20'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-20">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> on__widget_style<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$pluginDirComplete</span> = plugin_basename<span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/dirname"><span style="color:#000066;">dirname</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">__FILE__</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$pluginsWPDirComplete</span> = <a href="http://www.php.net/basename"><span style="color:#000066;">basename</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/dirname"><span style="color:#000066;">dirname</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/dirname"><span style="color:#000066;">dirname</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">__FILE__</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$urlSite</span> = get_settings<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'siteurl'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$urlCSS</span> = <span style="color:#0000FF;">$urlSite</span> . <span style="color:#FF0000;">'/wp-content/'</span>.<span style="color:#0000FF;">$pluginsWPDirComplete</span>.<span style="color:#FF0000;">'/'</span>.<span style="color:#0000FF;">$pluginDirComplete</span>.<span style="color:#FF0000;">'/css/on-widget_style.css'</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; wp_enqueue_style<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'on__traffsend'</span>, <span style="color:#0000FF;">$urlCSS</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_action<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'wp_print_styles'</span>, <span style="color:#FF0000;">'on__widget_style'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

Esto tiene un ventaja muy importante y es que podemos usar algún plugin para comprimir y unificar todos nuestros CSS en un único fichero mejorando sensiblemente la velocidad de carga y reduciendo la transferencia del servidor, pero esto, da para otro post en el futuro.]]></content:encoded>
			<wfw:commentRss>http://onestic.com/agregar-correctamente-css-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mailpress. ¿Otro plugin más de suscripción?</title>
		<link>http://onestic.com/mailpress-%c2%bfotro-plugin-mas-de-suscripcion/</link>
		<comments>http://onestic.com/mailpress-%c2%bfotro-plugin-mas-de-suscripcion/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 08:31:08 +0000</pubDate>
		<dc:creator>Sergio Nieto</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=399</guid>
		<description><![CDATA[En los últimos desarrollos en Wordpress que hemos hecho para nuestros clientes, hemos venido incorporando el plugin de suscripción para los usuarios Mailpress. En un principio sólo buscábamos un plugin que diese soporte a la suscripción por correo a los artículos de un blog, pero Mailpress no ofrece sólo eso.

Mailpress presenta un completo sistema de [...]]]></description>
			<content:encoded><![CDATA[En los últimos desarrollos en <strong>Wordpress </strong>que hemos hecho para nuestros clientes, hemos venido incorporando el plugin de suscripción para los usuarios <a title="Página del plugin de Mailpress para Wordpress" href="http://www.mailpress.org" target="_blank"><strong>Mailpress</strong></a>. En un principio sólo buscábamos un plugin que diese soporte a la suscripción por correo a los artículos de un blog, pero <strong>Mailpress </strong>no ofrece sólo eso.
<p style="text-align: center;"><a href="http://onestic.com/wp-content/uploads/2009/10/800px-Settings_general1.jpg"><img class="aligncenter size-large wp-image-419" title="captura de Mailpress" src="http://onestic.com/wp-content/uploads/2009/10/800px-Settings_general1-590x310.jpg" alt="captura de Mailpress" width="590" height="310" /></a></p>
Mailpress presenta un completo sistema de control de <span id="more-399"></span>suscripciones by mail, listas de correo, envíos por lotes, autoresponders, tracking de acciones sobre los correos enviados, etc. Además, si configuramos una plantilla con el estilo de nuestro blog, todos los correos de confirmación de cuenta, cambio de contraseña, etc, que se mandan desde <strong>Wordpress </strong>tendrán ahora este nuevo estilo establecido desde <strong>Mailpress</strong>, manteniendo la imagen corporativa en la comunicación con los usuarios.

Y es que <strong>Mailpress </strong>se compone de un plugin principal, y distintos plugins a modo de addons que extienden la funcionalidad de este. Y son estos añadidos los que hacen que Mailpress ofrezca grandes posibilidades a la comunidad de <strong>Wordpress</strong>. Os presentamos un listado de lo que están disponible a fecha de 08  de Octubre de 2009, con una breve explicación de su funcionalidad:
<ul>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Autoresponder" target="_blank"><strong>Autoresponder</strong></a>: Son correos redactados previamente (guardados como borrador), que serán enviados dependiendo de los eventos o acciones que realicen los usuarios (respuesta a un alta en la suscripción, a una baja, etc). Funciona con wp_cron.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Batch_send" target="_blank"><strong>Batch send</strong></a>: Permite configurar el envío por lotes de correos para grandes cantidades de usuarios, evitando saturar el servidor y que nos pueda perjudicar una identificación como posible spam.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Bounces" target="_blank"><strong>Bounces</strong></a>: Nos facilita la labor de control de los correos que no llegan a sus destinatarios.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Bulk_import" target="_blank"><strong>Bulk import</strong></a>: Añade un sencillo formulario en el listado de usuarios para introducir de forma rápida nuevos emails.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Filter_img" target="_blank"><strong>Filter img</strong></a>: Nos evita el dolor de cabeza que algunos clientes de correo como gmail o hotmail nos dan con su tratamiento de imágenes y css en los correos.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Form" target="_blank"><strong>Form</strong></a>: Incluye la creación de formularios para suscribirse, y poder así mandar diferentes mensajes personalizados.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Import" target="_blank"><strong>Import</strong></a>: Permite importar listas de correo en formato csv y xmlsample, y desde los plugins suscribe2 y suscribe to comments.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Mailinglist" target="_blank"><strong>Mailing list</strong></a>: Nos brinda la posibilidad de gestionar listas de correo.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Newsletter_categories" target="_blank"><strong>Newsletter categories</strong></a>: Añade una categorización sobre las suscripciones, permitiendo configurar la suscripción a cada tipo de contenido por post, día, semana, mes, etc.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Phpmail" target="_blank"><strong>Phpmail</strong></a>: Cambia el envío desde smtp a la función native de php mail.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Roles_and_capabilities" target="_blank"><strong>Roles and capabilities</strong></a>: Para configurar los permisos sobre Mailpress para cada rol de Wordpress.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Sendmail" target="_blank"><strong>Sendmail</strong></a>: Cambia el envío de smtp a sendmail.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Sync_wordpress_user" target="_blank"><strong>Sync wordpress user</strong></a>: Sincroniza usuarios de wordpress y de Mailpress, y permite apuntarse a suscripciones desde el formulario de registro de wordpress.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Tracking" target="_blank"><strong>Tracking</strong></a>: Potentísima función que ofrece la posibilidad de realizar un seguimiento al detalle de las acciones que se realizan sobre los mails que enviamos con Mailpress.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:Upload_media" target="_blank"><strong>Upload media</strong></a>: Añade la opción de incorporar elementos multimedia a los correos, opción que no viene habilitado por defecto.</li>
	<li> <a href="http://www.mailpress.org/wiki/index.php?title=Add_ons:View_logs" target="_blank"><strong>View logs</strong></a>: Muestra de forma sencilla y sin salir del administrador los logs relacionados con Mailpress.</li>
</ul>
Más info en la página del plugin: <a title="Página del plugin de Mailpress para Wordpress" href="http://www.mailpress.org" target="_blank">www.mailpress.org</a>

<strong>Actualización:</strong> Si queremos añadir el formulario de suscripción a nuestro <strong>Wordpress</strong>, bien tenemos que añadir el widget de mailpress o bien pegar un código parecido a este en la parte que queramos de nuestra plantilla:

<div class="igBar"><span id="lphp-22"><a href="#" onclick="javascript:showPlainTxt('php-22'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-22">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"modulo enlaces"</span>&gt;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;p <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"tit-sidebar"</span>&gt;Suscríbete a nuestro boletín&lt;/p&gt;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;ul <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"bloque"</span>&gt;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/class_exists"><span style="color:#000066;">class_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'MailPress'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> MailPress::<span style="color:#006600;">form</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'urlsubmgt'</span>=&gt;<span style="color:#CC66CC;color:#800000;">1</span>, <span style="color:#FF0000;">'txtbutton'</span> =&gt; <span style="color:#FF0000;">'Suscribirse'</span>, <span style="color:#FF0000;">'txtsubmgt'</span> =&gt; <span style="color:#FF0000;">'Gestionar suscripción'</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/ul&gt;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt; </div></li></ol></div>
</div></div><br />]]></content:encoded>
			<wfw:commentRss>http://onestic.com/mailpress-%c2%bfotro-plugin-mas-de-suscripcion/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>