<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
   <channel>
      <title>wproll</title>
      <description>Pipes Output</description>
      <link>http://pipes.yahoo.com/pipes/pipe.info?_id=gnz4mLjF2xGBj6_j0kqv4w</link>
      <atom:link rel="next" href="http://pipes.yahoo.com/pipes/pipe.run?_id=gnz4mLjF2xGBj6_j0kqv4w&amp;_render=rss&amp;page=2" />
      <pubDate>Wed, 30 May 2012 15:36:07 +0000</pubDate>
      <generator>http://pipes.yahoo.com/pipes/</generator>
      <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/wordpressroll" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="wordpressroll" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
         <title>Feed en Formato JSON para Wordpress</title>
         <link>http://feedproxy.google.com/~r/wplabs/~3/rlULehC5jdk/</link>
         <description>Para que Wordpress sirva el contenido en formato JSON, copiar el siguiente código y guardarlo, en el directorio raíz del correspondiente blog, con el nombre wp-json.php


&amp;#60;?php

if (empty($wp)) {
    require_once('wp-config.php');
    wp('feed=rss2');
}

function json_cats() {
    $categories = get_the_category();
    $the_list = '';
    foreach ( [...]</description>
         <guid isPermaLink="false">http://liberame.com.ar/?p=13</guid>
         <pubDate>Sat, 07 Apr 2007 14:38:27 +0000</pubDate>
         <content:encoded><![CDATA[<p>Para que <strong>Wordpress</strong> sirva el contenido en formato <strong>JSON</strong>, copiar el siguiente código y guardarlo, en el directorio raíz del correspondiente blog, con el nombre <strong>wp-json.php</strong></p>
<textarea name="code" class="php" cols="90" rows="50">

&lt;?php

if (empty($wp)) {
    require_once('wp-config.php');
    wp('feed=rss2');
}

function json_cats() {
    $categories = get_the_category();
    $the_list = '';
    foreach ( (array) $categories as $category ) {
        $category-&gt;cat_name = convert_chars($category-&gt;cat_name);
        $cats[] = $category-&gt;cat_name;
    }
    $the_list = '"' . implode('","', $cats) . '"';
    return apply_filters('the_category_json', $the_list, $type);
}

function json_safe_text($t) {
    return str_replace(
            array("&#92;&#92;",'"', "&#92;n", "&#92;t",  "&#92;r"), 
            array("&#92;&#92;&#92;&#92;", '&#92;&#92;"', "&#92;&#92;n", "&#92;&#92;t", "&#92;&#92;r"), 
            $t);
}

//header('Content-type: application/json; charset=' . get_option('blog_charset'), true);
header('Content-type: text/javascript; charset=' . get_option('blog_charset'), true);
$more = 1;

global $wp_query;
$total_posts = count($wp_query-&gt;posts);

?&gt;
&lt;?php if( $_GET['callback'] ) { echo $_GET['callback']?&gt;(&lt;?php } ?&gt;{
    "title": "&lt;?php bloginfo_rss('name'); ?&gt;",
    "link": "&lt;?php bloginfo_rss('url') ?&gt;",
    "self": "&lt;?php bloginfo_rss('url') ?&gt;",
    "description": "&lt;?php bloginfo_rss("description") ?&gt;",
    "language": "&lt;?php echo get_option('rss_language'); ?&gt;",
    "pubDate": "&lt;?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?&gt;",
    "generator": {
        "name": "Wordpress", url: "http://wordpress.org"
    },

    &lt;?php do_action('json_head'); ?&gt;
    
    "entries": [
&lt;?php while( have_posts()) : the_post(); $msdate = get_post_time('Y-m-d H:i:s', true); ?&gt;
    
    {
        "id": "&lt;?php the_guid(); ?&gt;",
        "title": "&lt;?php the_title_rss() ?&gt;",
        "author": {
            "name": "&lt;?php the_author() ?&gt;"
        },
&lt;?php if (get_option('rss_use_excerpt')) : ?&gt;
        "description": "&lt;?php echo json_safe_text(get_the_excerpt()) ?&gt;",
&lt;?php else : ?&gt;
        "description": "&lt;?php echo json_safe_text(get_the_excerpt()) ?&gt;",
&lt;?php if ( strlen( $post-&gt;post_content ) &gt; 0 ) : ?&gt;
        "content": "&lt;?php echo json_safe_text(get_the_content()) ?&gt;",
&lt;?php else : ?&gt;
        "content": "&lt;?php echo json_safe_text(get_the_excerpt()) ?&gt;",
&lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php /*
        description: '&lt;?php echo json_safe_text(get_the_excerpt()) ?&gt;',
*/ ?&gt;
        "categories": [&lt;?php echo json_cats() ?&gt;],
        "link": "&lt;?php permalink_single_rss() ?&gt;",
        "humanDate": "&lt;?php echo mysql2date('D, d M Y H:i:s +0000', $msdate, false); ?&gt;",
        "machineDate": { 
            "month": &lt;?php echo (int) mysql2date('m', $msdate, false); ?&gt;,
            "date": &lt;?php echo (int) mysql2date('d', $msdate, false); ?&gt;,
            "year": &lt;?php echo (int) mysql2date('Y', $msdate, false); ?&gt;,
            "hours": &lt;?php echo (int) mysql2date('H', $msdate, false); ?&gt;,
            "minutes": &lt;?php echo (int) mysql2date('i', $msdate, false); ?&gt;,
            "seconds": &lt;?php echo (int) mysql2date('s', $msdate, false); ?&gt;,
            "timezone": "+0000"
        }&lt;?php do_action('json_item'); ?&gt;
    
    }&lt;?php if( --$total_posts ) { ?&gt;, &lt;?php } ?&gt;
    
&lt;?php endwhile; ?&gt;
    ]
}&lt;?php if( $_GET['callback'] ) { ?&gt;);&lt;?php } ?&gt; 

</textarea>]]></content:encoded>
      </item>
      <item>
         <title>Como Integrar un Live Search en tu Theme Wordpress con Prototype</title>
         <link>http://feedproxy.google.com/~r/wplabs/~3/JVjznk2fL7k/</link>
         <description>Hace poco el amigo bet0x publicó su Wordpress Suggest, en ese momento yo estaba haciendo la primera versión de BlueContent  y como estaba renegando con el CSS no le di mucha importancia. Una vez terminada mi lucha con la hoja de estilos, volví sobre el tema con la idea de integrarlo en el Theme [...]</description>
         <guid isPermaLink="false">http://liberame.com.ar/?p=10</guid>
         <pubDate>Thu, 22 Feb 2007 06:49:40 +0000</pubDate>
         <content:encoded><![CDATA[<p>Hace poco el amigo <a rel="nofollow" target="_blank" href="http://www.barrahome.org" title="bet0x">bet0x</a> publicó su <a rel="nofollow" target="_blank" href="http://www.barrahome.org/2007/02/03/wordpress-suggest-como-google-pero-en-casa.html" title="wp-suggest">Wordpress Suggest</a>, en ese momento yo estaba haciendo la primera versión de BlueContent  y como estaba renegando con el CSS no le di mucha importancia. Una vez terminada mi lucha con la hoja de estilos, volví sobre el tema con la idea de integrarlo en el Theme pero opté por buscar una alternativa que aproveche el uso de <a rel="nofollow" target="_blank" href="http://prototypejs.org/download" title="prototype">Prototype</a> (framework javascript que estoy empecinado en usar).</p>
<p>Digo que estoy empecinado en usar Prototype porque, hablando claro, es <strong>&#8220;el framework javascript&#8221;</strong> por excelencia; además son varios los plugins que lo estan usando (<a rel="nofollow" target="_blank" href="http://www.artux.com.ar/?p=37">Compártelo</a> por ejemplo); por lo tanto me pareció una buena opción aprovechar la carga de este framework.</p>
<p>Entonces; si estas haciendo un Theme para Wordpress, tenes pensado incluir Prototype y queres tener un Live Searching la siguiente es una buena forma de integrar todo:</p>
<h4>Integrando Live Search en Wordpress con Prototype&#8230;</h4>
<p><span id="more-10"></span><br />
*antes que nada una pequeña aclaracion, si no tenes pensado incluir en tu theme la librería prototype te recomiendo que uses el <a rel="nofollow" target="_blank" href="http://www.barrahome.org/2007/02/03/wordpress-suggest-como-google-pero-en-casa.html">método de bet0x</a>  (te ahorrarías unos cuantos kb).</p>
<ul>
<li>Si el Theme en el cual estas trabajando ya carga Prototype podes saltarte este paso. Si no, lo primero que tenemos que hacer es <a rel="nofollow" target="_blank" href="http://prototypejs.org/download">descargar prototype</a> (<a rel="nofollow" target="_blank" href="http://prototypejs.org/download">aquí</a>) y guardarlo en la carpeta donde se encuentra el theme donde  lo queremos integrar (ej.: /wp-content/themes/mitheme/prototype.js), luego tenemos que incluir la siguiente línea en el archivo <strong>header.php</strong> de tu Theme entre las etiquetas <strong>&lt;head&gt;&lt;/head&gt;</strong> :</li>
</ul>
<textarea name="code" class="xhtml" cols="90" rows="50">

&lt;script src="http://tudominio.com/wp-content/themes/mitheme/prototype.js" type="text/javascript"&gt;&lt;/script&gt;


</textarea>
<ul>
<li>El siguiente paso, descargar el script <a rel="nofollow">live_search.js</a> (<a rel="nofollow">aquí</a>) (que es el encargado de realizar las transacciones Ajax necesarias) y guardarlo en el mismo directorio del Theme (ej.: /wp-content/themes/miprimertheme/live_search.js).</li>
<li>Ahora creamos un archivo llamado <strong>search_results.php</strong> en el mismo directorio del Theme en el que estamos trabajando y luego copiamos y pegamos el siguiente código:</li>
</ul>
<textarea name="code" class="php" cols="90" rows="50">

&lt;?php

$posts_per_page = 10; 
global $table_prefix; 
require('../../../wp-blog-header.php'); ?&gt;

&lt;?php if ($_GET['s'] != '') {
	if (count($posts) &gt; 0) {
		echo '&lt;ul class="lives"&gt;';
		foreach ($posts as $post) { 
			 ?&gt;
			&lt;li&gt;
				&lt;a href="&lt;?php echo get_permalink() ?&gt;" rel="bookmark" title="Permanent Link: &lt;?php the_title(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
			&lt;/li&gt; &lt;?php 
		} 
		echo '&lt;/ul&gt;';
	} else {
		echo '&lt;p&gt;No hay Resultados.&lt;/p&gt;';
	}
	
	/* descomentar este línea si queremos que este habilitada la opción de limpiar los resultados
	echo '&lt;a href="#" onclick="live.close(); return false;" class="close_link"&gt;Limpiar Resultados&lt;/a&gt;';
	*/
}

?&gt;

</textarea>
<ul>
<li>Antes de seguir con el paso siguiente tendremos que verificar si la estructura del Formulario de busqueda es como la siguiente, en el caso contrario deberemos editarlo para que quede igual a este:</li>
</ul>
<textarea name="code" class="xhtml" cols="90" rows="50">

&lt;form method="get" id="searchform" action="&lt;?php bloginfo('home'); ?&gt;/"&gt;
&lt;label for="s"&gt;&lt;/label&gt;
&lt;input type="text" value="&lt;?php echo wp_specialchars($s, 1); ?&gt;" name="s" id="s" /&gt;
&lt;input type="submit" id="searchsubmit" value="Search" /&gt;
&lt;/form&gt;

</textarea>
<ul>
<li>Bien, ahora si, el paso final. Si nuestro Theme ya tiene el archivo <strong>functions.php</strong> deberemos copiar el código que sigue en el final de dicho archivo, en el caso de que dicho archivo no exista deberemos crearlo (copiando y pegando el código siguiente) y guardándolo en el directorio del Theme con el nombre <strong>functions.php</strong>:</li>
</ul>
<textarea name="code" class="php" cols="90" rows="50">

&lt;?php

function live_search() {
	echo '&lt;script type="text/javascript" src="' . get_bloginfo('template_directory') . '/live_search.js"&gt;&lt;/script&gt;' . "&#92;n";
	echo '
	&lt;script type="text/javascript"&gt;
		live.url = "' . get_bloginfo('template_directory') . '/search_results.php";
	&lt;/script&gt;';
}

add_action('wp_head', 'live_search');

?&gt;

</textarea>
<p>Listo, si todo salio bien ya tendremos un Live Search Integrado en nuestro Theme de Wordpress.</p>]]></content:encoded>
      </item>
      <item>
         <title>Probando plugin Syntax CALAS - Código a lo Alex Sancho</title>
         <link>http://feedproxy.google.com/~r/wplabs/~3/VhjJzZ9q_7o/</link>
         <description>&amp;#60;?php

//Probando Plugin Syntax Highlighter

@define('AK_WPROOT', '../../../');
@define('AKST_FILEPATH', '/wp-content/plugins/code/code.php');

if (function_exists('load_plugin_textdomain')) {
load_plugin_textdomain('artux.com.ar');
}

?&amp;#62;</description>
         <guid isPermaLink="false">http://liberame.com.ar/?p=3</guid>
         <pubDate>Thu, 22 Feb 2007 02:35:30 +0000</pubDate>
         <content:encoded><![CDATA[<textarea name="code" class="php" cols="90" rows="50">

&lt;?php

//Probando Plugin Syntax Highlighter

@define('AK_WPROOT', '../../../');
@define('AKST_FILEPATH', '/wp-content/plugins/code/code.php');

if (function_exists('load_plugin_textdomain')) {
load_plugin_textdomain('artux.com.ar');
}

?&gt;
</textarea>]]></content:encoded>
      </item>
      <item>
         <title>BlueContent Version 1.0 Disponible para Descargar</title>
         <link>http://feedproxy.google.com/~r/wplabs/~3/poIqB6fNNaw/</link>
         <description>BlueContent es un Theme para Wordpress pensado para combertir el contenido en el principal protagonista pero sin dejar de lado esos pequeños toques estéticos que dan un valor agregado a los artículos publicados.
Algunas Características:

CSS y XHTML válido.
Contenido Centralizado y Tipografía Legible.
SubHeader Desplegable con: los últimos 3 post publicados; Random de 3 post al azar y [...]</description>
         <guid isPermaLink="false">http://liberame.com.ar/?p=8</guid>
         <pubDate>Thu, 15 Feb 2007 03:44:56 +0000</pubDate>
         <content:encoded><![CDATA[<p><strong>BlueContent</strong> es un Theme para <strong>Wordpress</strong> pensado para combertir el contenido en el principal protagonista pero sin dejar de lado esos pequeños toques estéticos que dan un valor agregado a los artículos publicados.</p>
<h4>Algunas Características:</h4>
<ul>
<li><strong>CSS</strong> y <strong>XHTML</strong> válido.</li>
<li>Contenido Centralizado y Tipografía Legible.</li>
<li>SubHeader Desplegable con: los últimos 3 post publicados; Random de 3 post al azar y Enlaces a los Feeds RSS de los Post y los Comentarios.</li>
<li>Pie de Página (Footer) que muestra las diferentes categorías, el blogroll de enlaces y los últimos comentarios.</li>
<li>Buscador integrado en el Footer (<strong>live search!!</strong>).</li>
</ul>
<p>Aunque quedaron muchas cosas en el tintero (<strike>integrar un live searching</strike>, widgetizar el footer, etc); estoy convencido que es un theme funcional y de fácil uso para todo tipo de blogger. Por mi parte sigo trabajando sobre el Theme y esta no será la única versión del mismo.</p>
<h4>Como Instalar BlueContent v1.0</h4>
<ul>
<li>Descargar <a rel="nofollow" target="_blank" href="http://www.artux.com.ar/?dl=3" title="BlueContent.zip">BlueContent.zip</a> desde <a rel="nofollow" target="_blank" href="http://www.artux.com.ar/?dl=3" title="BlueContent.zip">aquí</a>.</li>
<li>Descomprimir el archivo BlueContent.zip</li>
<li>Abrir el archivo <strong>bluecontent-v1.0/footer.php</strong>, y editar o borrar el texto después de &lt;!&#8211;bluecontent editar o borrar inicio &#8211;&gt;.</li>
<li>Subir el archivo <strong>&#8220;customizable-post-listings.php&#8221;</strong> (plugin necesario para el funcionamiento del Random Post) al directorio de los plugins de tu Wordpress (ej. http://www.tusitio.com/wp-content/plugins/).</li>
<li>Activar el plugin <strong>&#8220;Customizable Post Listings&#8221;</strong> en Administración &gt; Plugins de tu Wordpress.</li>
<li>Subir el directorio <strong>&#8220;bluecontent-v1.0&#8243;</strong> completo al directorio de los Themes de tu Wordpress (ej. http://www.tusitio.com/wp-content/themes/).</li>
<li>Por último activar el Theme BlueContent en Administración &gt; Presentation.</li>
</ul>
<p>Por el momento eso es todo lo necesario para tener BlueContent funcional. Pienso que por ser mi primera incursión en el mundo del Diseño, y más especificamente en el del diseño de Themes para Wordpress, esta primera version de BlueContent a quedado más que bien. Por lo menos esa es mi humilde opinión, se que hay mucho por mejorar pero eso será en las próximas versiones.</p>
<p>Saludos!! <img src='http://liberame.com.ar/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley'/>  </p>]]></content:encoded>
      </item>
      <item>
         <title>Blue Content Version 1.0 - First Preview!</title>
         <link>http://feedproxy.google.com/~r/wplabs/~3/G0Qnjxmg9LU/</link>
         <description>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl in quam. Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros. Aliquam pharetra. Nulla in tellus eget odio sagittis blandit. Maecenas at nisl. Nullam lorem [...]</description>
         <guid isPermaLink="false" />
         <pubDate>Mon, 12 Feb 2007 05:35:56 +0000</pubDate>
         <content:encoded><![CDATA[<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl in quam. Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros. Aliquam pharetra. Nulla in tellus eget odio sagittis blandit. Maecenas at nisl. Nullam lorem mi, eleifend a, fringilla vel, semper at, ligula. Mauris eu wisi. Ut ante dui, aliquet nec, congue non, accumsan sit amet, lectus. Mauris et mauris. Duis sed massa id mauris pretium venenatis. Suspendisse cursus velit vel ligula. Mauris elit. Donec neque. Phasellus nec sapien quis pede facilisis suscipit. Aenean quis risus sit amet eros volutpat ullamcorper. Ut a mi. Etiam nulla. <strong>Mauris interdum</strong>.</p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl in quam. Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros. Aliquam pharetra. Nulla in tellus eget odio sagittis blandit. Maecenas at nisl. Nullam lorem mi, eleifend a, fringilla vel, semper at, ligula. Mauris eu wisi. Ut ante dui, aliquet nec, congue non, accumsan sit amet, lectus. Mauris et mauris. Duis sed massa id mauris pretium venenatis. Suspendisse cursus velit vel ligula. Mauris elit. Donec neque. Phasellus nec sapien quis pede facilisis suscipit. Aenean quis risus sit amet eros volutpat ullamcorper. Ut a mi. Etiam nulla. Mauris interdum.  </p>]]></content:encoded>
      </item>
   </channel>
</rss><!-- fe2.yql.bf1.yahoo.com compressed/chunked Wed May 30 15:36:06 UTC 2012 -->

