<?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>Planeta WordPress &#187; Funciones</title>
	<atom:link href="http://planetawordpress.org/tag/funciones/feed/" rel="self" type="application/rss+xml" />
	<link>http://planetawordpress.org</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 21:50:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://weblog.mx/?v=3.3.1</generator>
		<item>
		<title>Insertar Slideshare con oEmbed</title>
		<link>http://ayudawordpress.com/insertar-slideshare-con-oembed/</link>
		<comments>http://ayudawordpress.com/insertar-slideshare-con-oembed/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 21:50:32 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Avanzado]]></category>
		<category><![CDATA[código]]></category>
		<category><![CDATA[Embedly]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[oEmbed]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[Slideshare]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=59968</guid>
		<description><![CDATA[oEmbed es un sistema, integrado en WordPress, mediante el cual puedes visualizar contenido multimedia solo con añadir la URL en el editor de WordPress. Este sistema, no obstante, no permite mostrar todo tipo de contenidos existentes, sino que WordPress por defecto contempla algunos pero no todos. Por ejemplo, puedes insertar vídeos de YouTube, de Vimeo, o fotos y sets de Flickr, pero no puedes hacer lo mismo con tweets &#8211; aunque ya expliqué como hacerlo &#8211; ni con presentaciones de Slideshare. Si quieres ampliar las posibilidades de oEmbed en WordPress siempre puedes instalar el plugin Embedly, que añade tropecientos servicios, &#8230;</p> <a href="http://ayudawordpress.com/insertar-slideshare-con-oembed/">Sigue leyendo que hay m&#225;s <span>&#8594;</span></a><p>]]></description>
			<content:encoded><![CDATA[<p><img src="http://ayudawordpress.com/wp-content/uploads/2012/02/oembed.png" alt="" title="oembed" width="352" height="180" class="aligncenter size-full wp-image-59969" /></p>
<p><a href="http://ayudawordpress.com/oembed-en-wordpress-2-9/" title="oEmbed en WordPress 2.9"><strong>oEmbed</strong></a> es un sistema, integrado en WordPress, mediante el cual puedes <strong>visualizar contenido multimedia solo con añadir la URL en el editor</strong> de WordPress.</p>
<p>Este sistema, no obstante, no permite mostrar todo tipo de contenidos existentes, sino que WordPress por defecto contempla algunos pero no todos. </p>
<p><span id="more-59968"></span></p>
<p>Por ejemplo, puedes insertar vídeos de YouTube, de Vimeo, o fotos y sets de Flickr, pero no puedes hacer lo mismo con tweets &#8211; aunque <a  href="http://ayudawordpress.com/anadiendo-tweets-a-wordpress-con-twitter-oembed/" title="Añadiendo tweets a WordPress con Twitter oEmbed">ya expliqué como hacerlo</a> &#8211; <a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-slideshare-to-wordpress-oembed-without-a-plugin/" >ni con presentaciones de Slideshare</a>.</p>
<p>Si quieres ampliar las posibilidades de oEmbed en WordPress siempre puedes instalar el plugin <a href="http://ayudawordpress.com/embedly-incrusta-todo-tipo-de-contenido/" title="Embedly, incrusta todo tipo de contenido">Embedly</a>, que añade tropecientos servicios, más de los que vas a usar nunca, pero si quieres ahorrarte un plugin, y en realidad lo que te falta es usar este sistema para insertar presentaciones de Slideshare al modo más fácil, solo tienes que añadir el siguiente código a tu <a href="http://ayudawordpress.com/crea-un-plugin-para-liberar-el-fichero-functions-php/" title="Crea un plugin para liberar el fichero functions.php">plugin de funciones</a> o pegarlo en el archivo <code>functions.php</code>:</p>
<pre class="brush: php; title: ; notranslate">// Añadir Slideshare a oEmbed
function oembed_slideshare(){
wp_oembed_add_provider( 'http://www.slideshare.net/*', 'http://api.embed.ly/v1/api/oembed');
}
add_action('init','oembed_slideshare');</pre>
<p>Guardas los cambios y ya lo tienes</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=DMO_kUG3e0s:Y-0WZ4y9TSA:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=DMO_kUG3e0s:Y-0WZ4y9TSA:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/insertar-slideshare-con-oembed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Añadir rel=”author” y rel=”me” en WordPress</title>
		<link>http://ayudawordpress.com/anadir-relauthor-y-relme-en-wordpress/</link>
		<comments>http://ayudawordpress.com/anadir-relauthor-y-relme-en-wordpress/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 23:03:24 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Author]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[Google Plus]]></category>
		<category><![CDATA[humans.txt]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=59823</guid>
		<description><![CDATA[Por si no lo sabías, Google hace tiempo que incluye una forma de personalizar los resultados de búsqueda, de asignar autorías a las publicaciones, las tags HTML rel="author" y rel="me". Usando estas etiquetas en tus publicaciones se mostrarán unos &#8216;snippets&#8216; de Google más atractivos que, además de mejorar tu branding en la red atraerán más atención en la lista de resultados que si no lo llevaran, y en consecuencia tendrás más clics hacia tus publicaciones. De paso, al llevar la URL tu autoría, también es un modo preventivo de evitar (aunque a algunos les da igual) el robo de contenido. &#8230;</p> <a href="http://ayudawordpress.com/anadir-relauthor-y-relme-en-wordpress/">Sigue leyendo que hay m&#225;s <span>&#8594;</span></a><p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://ayudawordpress.com/wp-content/uploads/2012/02/relauthor-relme-relwtf.jpg" rel="shadowbox[sbpost-59823];player=img;"><img src="http://ayudawordpress.com/wp-content/uploads/2012/02/relauthor-relme-relwtf-478x500.jpg" alt="" title="relauthor-relme-relwtf" width="478" height="500" class="aligncenter size-medium wp-image-59834" /></a></p>
<p>Por si no lo sabías, Google hace tiempo que incluye una forma de <strong>personalizar los resultados de búsqueda</strong>, de asignar autorías a las publicaciones, las tags HTML <code>rel="author"</code> y <code>rel="me"</code>. </p>
<p>Usando estas etiquetas en tus publicaciones <strong>se mostrarán unos &#8216;<em>snippets</em>&#8216; de Google más atractivos</strong> que, además de <strong>mejorar tu branding</strong> en la red atraerán más atención en la lista de resultados que si no lo llevaran, y en consecuencia tendrás más clics hacia tus publicaciones.</p>
<p>De paso, al llevar la URL tu autoría, también es un modo preventivo de evitar (aunque a algunos les da igual) el robo de contenido.</p>
<p>¿Suficientes motivos?, pues vamos a añadir estas tags a WordPress …</p>
<p><span id="more-59823"></span></p>
<p>Son unos cuantos pasos, pero merece la pena:</p>
<h2>1. Crea un perfil en Google+</h2>
<p>Aunque no te guste la nueva red social Google Plus, solo por SEO merece la pena, así que ve a <a target="_blank" href="http://plus.google.com" >http://plus.google.com</a> y crea un perfil. Luego vas a la página de tu perfil y haces clic en &#8220;Editar perfil&#8221;. A la derecha verás una caja llamada &#8220;Otros perfiles&#8221;, haz clic y añade nombre y URL de tu página de autor en el blog.<br />
<img src="http://ayudawordpress.com/wp-content/uploads/2012/02/otros-perfiles-google-plus.png" alt="" title="otros perfiles google plus" width="345" height="288" class="alignnone size-full wp-image-59824" /></p>
<p>Este paso, como el siguiente &#8211; que está relacionado &#8211; no está claro que sea imprescindible (ni siquiera Google lo deja claro), no está de más, así que hazlo y punto, tampoco tardas tanto.</p>
<h2>2. Añade la URL de tu perfil de Google+ a tu página de autor en WordPress</h2>
<p>Parece que Google, aunque no está claro si es obligatorio, quiere que enlaces a tu perfil de Google+. Así que vamos a hacerlo, tenemos 3 maneras:</p>
<ol>
<li><strong>Con plugin</strong>: Instala el plugin <a target="_blank" href="http://www.kevinmeyer.me/easy-relauthor-wordpress-plugin/" >Easy rel author plugin</a>, que añade un campo más a la página de perfil de usuario, en la que incluir la URL de Google+ y que luego se mostrará en la página de autor</li>
<li><strong>Con ñapa</strong>: Si no quieres instalar el plugin puedes hacer algo tan simple como, en el campo de Web del usuario poner la de tu perfil de Google plus en vez de la de tu blog o similar.<br />
<a href="http://ayudawordpress.com/wp-content/uploads/2012/02/%C3%B1apa-campo-url-perfil-google-plus.png" rel="shadowbox[sbpost-59823];player=img;"><img src="http://ayudawordpress.com/wp-content/uploads/2012/02/%C3%B1apa-campo-url-perfil-google-plus-500x115.png" alt="" title="ñapa campo url perfil google plus" width="500" height="115" class="alignnone size-medium wp-image-59825" /></a></li>
<li><strong>Con función</strong>: Ya expliqué <a href="http://ayudawordpress.com/quitar-campos-del-perfil-de-usuario/" title="Quitar campos del perfil de usuario" >como se añaden o quitan campos del perfil de usuario</a>, pero aquí lo tienes simplificado y adaptado. Solo añade este código al fichero <code>functions.php</code> o a tu plugin de funciones. Consigues lo mismo que con el plugin anterior:
<pre class="brush: php; title: ; notranslate">// Añadir campos sociales a los perfiles y elimina (unset) los inútiles
function add_redessociales_contactmethod( $contactmethods ) {
  // Añade Google+
  $contactmethods['twitter'] = 'Twitter';
  return $contactmethods;
}
add_filter('user_contactmethods','add_redessociales_contactmethod',10,1);</pre>
<p><a href="http://ayudawordpress.com/wp-content/uploads/2012/02/campo-google-plus-agregado-funcion.png" rel="shadowbox[sbpost-59823];player=img;"><img src="http://ayudawordpress.com/wp-content/uploads/2012/02/campo-google-plus-agregado-funcion-500x144.png" alt="" title="campo google plus agregado funcion" width="500" height="144" class="alignnone size-medium wp-image-59829" /></a>
</li>
</ol>
<h2>3. Enlaza a tu perfil de Google+ añadiendo rel=&#8221;me&#8221;</h2>
<p>Siempre que enlaces en tu sitio a tu perfil de Google+ añade la tag <code>rel="me"</code>. Por ejemplo:</p>
<pre class="brush: xml; title: ; notranslate">Visita mi perfil en &lt;a rel=&quot;me&quot; href=&quot;https://plus.google.com/112849525913645686409/about&quot;&gt;Google Plus&lt;/a&gt;</pre>
<p>Da igual si es desde un icono añadido en tu barra lateral o en una entrada, añade siempre la tag <code>rel="me"</code></p>
<p>Otra posibilidad es un enlace del blogroll o un menú personalizado, en ambos casos deberías añadir la relación de enlace XFN, e indicar en el campo al efecto &#8220;me&#8221;.<br />
<a href="http://ayudawordpress.com/wp-content/uploads/2012/02/rel-me-xfn.png" rel="shadowbox[sbpost-59823];player=img;"><img src="http://ayudawordpress.com/wp-content/uploads/2012/02/rel-me-xfn-500x103.png" alt="" title="rel me xfn" width="500" height="103" class="alignnone size-medium wp-image-59833" /></a></p>
<p>Por último, otro sitio genial para añadir el <code>rel="me"</code> en un enlace a tu perfil de Google es en tu fichero <a href="http://ayudawordpress.com/humans-txt/" title="Humans txt" ><strong>humans.txt</strong></a>, que Google reconoce como válido a estos efectos.</p>
<h2>4. Enlaza a tu página de autor de WordPres añadiendo rel=&#8221;author&#8221;</h2>
<p>De igual modo, siempre que haya en tu tema activo un enlace a tu página de autor añade la tag <code>rel="author"</code>. Para ello debes modificar (y sino lo usas lo añades) al enlace al perfil del autor de la entrada &#8211; normalmente en &#8216;single.php&#8217; o &#8216;index.php&#8217; &#8211; la tag de este modo:</p>
<pre class="brush: php; title: ; notranslate">Publicado por &lt;a rel=&quot;author&quot; href=&quot;&lt;?php the_author_posts_link(); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;</pre>
<h2>5. Enlaza a tu perfil de Google+ en la página de autor u otras</h2>
<p>En la página de autor, normalmente <code>author.php</code> tienes que añadir un código para que muestre el enlace a tu perfil de Google +, este:</p>
<pre class="brush: php; title: ; notranslate">$google_profile = get_the_author_meta( 'google_profile' );
if ( $google_profile ) {
	echo '&lt;a href=&quot;' . esc_url($google_profile) . '&quot; rel=&quot;me&quot;&gt;Mi perfil en Google+&lt;/a&gt;';
}</pre>
<p>También puedes añadir una caja con tu perfil, y enlace a tu perfil en Google+, mediante el <a target="_blank" href="http://dempseymarketing.com/journal/relauthor-plugin-for-wordpress/" >plugin rel=author</a>, que la agrega automáticamente.</p>
<h2>6. Comprueba que funciona</h2>
<p>Ya solo queda comprobar que todo ha salido bien, y si no quieres esperar a que Google vaya actualizando los &#8216;snippets&#8217; de tus publicaciones, puedes probar si lo has hecho bien en la <a target="_blank" href="http://www.google.com/webmasters/tools/richsnippets" >herramienta de comprobación de &#8220;Rich snippets&#8221; de Google</a>. Simplemente teclea la URL de una entrada de tu sitio, o de tu página de autor, y deberías ver la imagen de tu perfil de Google+ junto al snippet.</p>
<p>De paso, si te falta algo, esta herramienta te indicará los errores y lo que tienes que hacer para solucionarlo.</p>
<hr />
<h2>Extra para vagos</h2>
<p>Si todo lo anterior se te antoja muy lioso puedes probar el plugin <a target="_blank" href="http://wordpress.org/extend/plugins/googleplus-author-connect/" >Googleplus author connect</a>, que promete conseguirte estos bonitos snippets solo con instalarlo y activarlo.</p>
<p><small>Referencias:</p>
<ul>
<li><a target="_blank" href="http://www.cravingtech.com/how-to-implement-relauthor-on-wordpress-blogs.html" >Craving tech</<></li>
<li><a target="_blank" href="http://www.hostingformula.net/step-by-step-guide-adding-relauthor-for-your-wordpress-blog/" >Hosting formula</a></li>
</ul>
<p></small></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=4B5moJN4r7k:pWD8FRFkAEI:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=4B5moJN4r7k:pWD8FRFkAEI:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/anadir-relauthor-y-relme-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Más iconos de formato al editor visual de WordPress</title>
		<link>http://ayudawordpress.com/mas-iconos-de-formato-al-editor-visual-de-wordpress/</link>
		<comments>http://ayudawordpress.com/mas-iconos-de-formato-al-editor-visual-de-wordpress/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 23:05:31 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Avanzado]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[oEmbed]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[TinyMCE]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=59291</guid>
		<description><![CDATA[Por defecto, WordPress muestra una fila de iconos para dar formato a tus textos en el editor visual de entradas. Y supongo que ya sabrás que haciendo clic en el último icono, el de los cuadritos de colorines, aparece una segunda fila en la que además tienes los siguientes iconos: Estilo de párrafo Subrayado Justificado total Color de texto Pegar como texto plano Pegar desde Word Eliminar formatos Insertar caracteres especiales Aumentar / disminuir márgenes de texto Deshacer / Rehacer cambios Ayuda Pues bien, lo que quizás no sepas es que hay una tercera fila de iconos que puedes hacer &#8230;</p> <a href="http://ayudawordpress.com/mas-iconos-de-formato-al-editor-visual-de-wordpress/">Sigue leyendo que hay m&#225;s <span>&#8594;</span></a><p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://ayudawordpress.com/wp-content/uploads/2012/01/mas-iconos-editor-wordpress.png" rel="shadowbox[sbpost-59291];player=img;"><img src="http://ayudawordpress.com/wp-content/uploads/2012/01/mas-iconos-editor-wordpress-500x110.png" alt="" title="mas iconos editor wordpress" width="500" height="110" class="aligncenter size-medium wp-image-59294" /></a></p>
<p>Por defecto, <strong>WordPress muestra una fila de iconos para dar formato a tus textos</strong> en el editor visual de entradas. Y supongo que ya sabrás que haciendo clic en el último icono, el de los cuadritos de colorines, aparece una segunda fila en la que además tienes los siguientes iconos:</p>
<p><span id="more-59291"></span></p>
<ul>
<li>Estilo de párrafo</li>
<li>Subrayado</li>
<li>Justificado total</li>
<li>Color de texto</li>
<li>Pegar como texto plano</li>
<li>Pegar desde Word</li>
<li>Eliminar formatos</li>
<li>Insertar caracteres especiales</li>
<li>Aumentar / disminuir márgenes de texto</li>
<li>Deshacer / Rehacer cambios</li>
<li>Ayuda</li>
</ul>
<p>Pues bien, lo que quizás no sepas es que <a target="_blank" href="http://wpsites.net/best-wordpress-editor/displaying-hidden-features-in-your-wordpress-visual-editor/" >hay una tercera fila</a> de iconos que puedes hacer visible …</p>
<p>Para verla solo tienes que añadir este código a tu fichero <code>functions.php</code>, o casi mejor a tu <a title="Crea un plugin para liberar el fichero functions.php" href="http://ayudawordpress.com/crea-un-plugin-para-liberar-el-fichero-functions-php/" >Plugin de Funciones</a>:</p>
<pre class="brush: php; title: ; notranslate">// muestra tercera fila de iconos al editor visual
function add_more_buttons($buttons) {
$buttons[] = 'hr';
$buttons[] = 'del';
$buttons[] = 'sub';
$buttons[] = 'sup';
$buttons[] = 'fontselect';
$buttons[] = 'fontsizeselect';
$buttons[] = 'cleanup';
$buttons[] = 'styleselect';
return $buttons;
}
add_filter(&quot;mce_buttons_3&quot;, &quot;add_more_buttons&quot;);</pre>
<p>Una vez guardes los cambios verás estos otros iconos:</p>
<ul>
<li>Insertar línea horizontal</li>
<li>Subíndice</li>
<li>Superíndice</li>
<li>Familia de fuente</li>
<li>Tamaño de fuente</li>
<li>Limpiar código de Word</li>
<li>Estilos de wpgallery, oEmbed y  más.</li>
</ul>
<p>Esta nueva fila se verá aunque no hayas desplegado la primera, estará siempre visible.</p>
<p><strong>¿Quieres aún más?</strong>, pues puedes instalar el plugin <a target="_blank" href="http://wordpress.org/extend/plugins/tinymce-advanced/" >TinyMCE Advanced</a>, que añade esos iconos y muchísimos más (a voluntad y personalizable), sustituyendo el editor estándar de WordPress por una versión más &#8220;completa&#8221;.</p>
<p><a href="http://ayudawordpress.com/wp-content/uploads/2012/01/tinymce-advanced.png" rel="shadowbox[sbpost-59291];player=img;"><img class="alignnone size-medium wp-image-59292" title="tinymce advanced" src="http://ayudawordpress.com/wp-content/uploads/2012/01/tinymce-advanced-500x118.png" alt="" width="500" height="118" /></a></p>
<p>¡Tu eliges!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=X1QDw5xG6Rc:k1mqZORgudg:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=X1QDw5xG6Rc:k1mqZORgudg:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/mas-iconos-de-formato-al-editor-visual-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Jeopardy</title>
		<link>http://ayudawordpress.com/wordpress-jeopardy/</link>
		<comments>http://ayudawordpress.com/wordpress-jeopardy/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 16:32:59 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[juegos]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[Wordcamp]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=10964</guid>
		<description><![CDATA[Ya casi no queda nada que no se pueda hacer con WordPress pero ¿un juego?, pues si. Eso es WordPress Jeopardy, una idea que surgió en WordCamp Suiza este año, la de hacer un juego con una instalación de WordPress, usando sus funciones y hooks. Y, ni cortos ni perezosos, en Septiembre de este año empezó la primera tanda del WordPress Jeopardy, que para el que no lo sepa es un juego basado en un popular concurso de televisión norteamericano que surgió allí por 1964, hace nada menos que 47 años. La idea es genial; cada respuesta es una entrada, &#8230;</p> <a href="http://ayudawordpress.com/wordpress-jeopardy/">Sigue leyendo que hay m&#225;s <span>&#8594;</span></a><p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://ayudawordpress.com/wp-content/uploads/2011/11/wordpress-jeopardy.png" rel="shadowbox[sbpost-10964];player=img;"><img src="http://ayudawordpress.com/wp-content/uploads/2011/11/wordpress-jeopardy-500x351.png" alt="" title="wordpress jeopardy" width="500" height="351" class="aligncenter size-medium wp-image-10965" /></a></p>
<p>Ya casi no queda nada que no se pueda hacer con WordPress pero ¿un juego?, pues si. Eso es WordPress Jeopardy, una <a target="_blank" href="http://wpengineer.com/2295/wordpress-jeopardy/" >idea que surgió en WordCamp Suiza</a> este año, la de hacer un juego con una instalación de WordPress, usando sus funciones y hooks.</p>
<p>Y, ni cortos ni perezosos, en Septiembre de este año empezó la primera tanda del <a target="_blank" href="http://jeopardy.inpsyde.com/" ><strong>WordPress Jeopardy</strong></a>, que para el que no lo sepa es un juego basado en un popular concurso de televisión norteamericano que surgió allí por 1964, hace nada menos que 47 años.</p>
<p><span id="more-10964"></span></p>
<p>La idea es genial; cada respuesta es una entrada, con sus metadatos como preguntas y puntos de cada pregunta. El sitio es <strong>una instalación de WordPress simple</strong>, con un tema personalizado. Lo único que necesita es una lista de categorías de entradas y las entradas, que van en la categoría correspondiente de este modo:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
$x = 1;
$cat_args = array( 'parent' =&gt; 0 );
$categories = get_categories( $cat_args );
foreach ( $categories as $category ) :
	// Muestra la cabecera de la categoría
	$y = 1;
	$post_args = array( 'category' =&gt; $category -&gt; term_id );
	$posts = get_posts( $post_args );
	foreach ( $posts as $post ) :
		// Muestra la entrada de respuesta, aquí va la pregunta y los puntos
	endforeach;
endforeach;
?&gt;</pre>
<p>Luego se aplica un poco de CSS y a correr. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=qAU4-rmcDCY:AhcfvyKyO84:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=qAU4-rmcDCY:AhcfvyKyO84:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/wordpress-jeopardy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tunea el escritorio de WordPress</title>
		<link>http://ayudawordpress.com/tunea-el-escritorio-de-wordpress/</link>
		<comments>http://ayudawordpress.com/tunea-el-escritorio-de-wordpress/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 22:15:22 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[administración]]></category>
		<category><![CDATA[Avanzado]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[personalización]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[TinyMCE]]></category>
		<category><![CDATA[widgets]]></category>
		<category><![CDATA[Wordpress.com]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=10066</guid>
		<description><![CDATA[Una de las cosas que me encanta de WordPress son los plugins. Y es que aunque habitualmente comparta funciones o hooks con los que modificar aspectos de WordPress, cuando sale un plugin que nos facilita la vida para que con un par de clics hagas virguerías me encanta. CMSfy es una de estas pequeñas maravillas. Como herramienta de personalización de la administración de WordPress no tiene precio, y encima es gratis, a nuestra disposición en el instalador de plugins y el repositorio oficial, vamos, que no se le puede pedir más. ¿Que qué hace?, pues un poco de todo …  &#8230;</p> <a href="http://ayudawordpress.com/tunea-el-escritorio-de-wordpress/">Sigue leyendo que hay m&#225;s <span>&#8594;</span></a><p>]]></description>
			<content:encoded><![CDATA[<p><img src="http://ayudawordpress.com/wp-content/uploads/2011/08/tuning.jpg" alt="" title="tuning" width="480" height="333" class="aligncenter size-full wp-image-10072" /></p>
<p>Una de las cosas que me encanta de WordPress son los plugins. Y es que aunque habitualmente comparta funciones o hooks con los que modificar aspectos de WordPress, cuando sale un plugin que <strong>nos facilita la vida para que con un par de clics hagas virguerías</strong> me encanta.</p>
<p><strong>CMSfy</strong> es una de estas pequeñas maravillas. Como herramienta de personalización de la administración de WordPress no tiene precio, y encima es gratis, a nuestra disposición en el instalador de plugins y <a href="http://wordpress.org/extend/plugins/cmsify/" >el repositorio oficial</a>, vamos, que no se le puede pedir más.</p>
<p>¿Que qué hace?, pues un poco de todo … </p>
<p><span id="more-10066"></span></p>
<p>Lo que busca es ofrecer una <strong>personalización completa de la administración de WordPress</strong>, y para ello ofrece una única pantalla, eso si, con 3 pestañas distintas y multitud de posibilidades en cada una. Es lo que se suele llamar un "<strong><em>tweaker</em></strong>".</p>
<p>En la primera pestaña podemos realizar multitud de personalizaciones a la <strong>visibilidad de los elementos en la administración</strong>, decidiendo que verán los usuarios de nuestro WordPress y que no. No te las detallaré todas porque son una cantidad enorme, pero puedes ocultar las actualizaciones a los que no sean administradores, elegir que widgets de Escritorio se verán, que widgets estarán disponibles para las barras laterales, incluso que columnas verás en las ventanas de entradas y páginas.</p>
<p><a href="http://ayudawordpress.com/wp-content/uploads/2011/08/cmsfy1.png" rel="shadowbox[post-10066];player=img;" title="cmsfy1"><img src="http://ayudawordpress.com/wp-content/uploads/2011/08/cmsfy1-596x1024.png" alt="" title="cmsfy1" width="596" height="1024" class="aligncenter size-large wp-image-10069" /></a></p>
<p>La segunda, llamada "<em>Media</em>", nos ofrece un par de cuestiones importantes. Por una parte podemos provocar <strong>que las imágenes que subamos se redimensionen automáticamente</strong> en la carga, evitando un consumo excesivo de espacio y tiempo en carga del servidor por culpa de usuarios pedorros que suben sus fotos a tope de calidad, por ejemplo.</p>
<p>Lo siguiente que nos ofrece esta pestaña es poder <strong>añadir tamaños adicionales</strong> que se crearán al subir una imagen, definiendo no solo el tamaño, que eso ya lo puedes hacer en la página de ajustes estándar, sino también los nombres de las distintas imágenes. No sustituyes los tamaños estándar sino que puedes crear más.</p>
<p><a href="http://ayudawordpress.com/wp-content/uploads/2011/08/cmsfy2.png" rel="shadowbox[post-10066];player=img;" title="cmsfy2"><img src="http://ayudawordpress.com/wp-content/uploads/2011/08/cmsfy2-500x319.png" alt="" title="cmsfy2" width="500" height="319" class="aligncenter size-medium wp-image-10068" /></a></p>
<p>En la tercera y última pestaña de configuraciones, llamada "<em>Editor</em>", puedes mejorar algo el editor de entradas <strong>TinyMCE</strong>, eligiendo que formatos de estilo de texto quieres que se muestren (que siempre sobran), pero también puedes <strong>añadir formatos y tamaños nuevos</strong>, a tu gusto.</p>
<p><a href="http://ayudawordpress.com/wp-content/uploads/2011/08/cmsfy3.png" rel="shadowbox[post-10066];player=img;" title="cmsfy3"><img src="http://ayudawordpress.com/wp-content/uploads/2011/08/cmsfy3-500x309.png" alt="" title="cmsfy3" width="500" height="309" class="aligncenter size-medium wp-image-10067" /></a></p>
<p>Y si te quedas con ganas de más en la última pestaña tienes una serie de plugins recomendados para <strong>mejorar la experiencia y el control de tu CMS WordPress</strong>.</p>
<p>Bien ¿no?</p>
<p>Yo creo, no obstante, que aún se puede mejorar más el plugin, pues por ejemplo no te permite definir que perfil de usuario verá según que cosas, por ejemplo. En la versión actual si inactivas, por poner un caso, el widget Quick Press no estará disponible ni para el administrador. Con eso sería perfecto del todo. Pero vamos, que es genial, y más para una versión tan temprana como la 0.5.<br />
<h3><font color="#000080">Contenido exclusivo para suscriptores al Feed</font></h3>
<p><font color="#808080">¡Gracias por seguirnos a diario!. Premiamos tu fidelidad ofreciéndote habitualmente contenidos exclusivos. Hoy puedes descargar:</font></p>
<p><a href="http://ayudawordpress.com/?dl_id=68" title="Clic aquí para iniciar la descarga"><img src="http://ayudawordpress.com/wp-content/uploads/2008/01/wp-install.jpg" alt="Clic aquí para iniciar la descarga" align="middle" border="0" height="59" width="43" /> Guía Windows Live Writer</a></p>
<div class="googlePlusOneButton"><g:plusone href="http://ayudawordpress.com/tunea-el-escritorio-de-wordpress/"  size="tall"   ></g:plusone></div><p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://ayudawordpress.com/tunea-el-escritorio-de-wordpress/&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=23&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:23px'></iframe></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=0JheOC7pmC0:jbNWCp7gGug:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=0JheOC7pmC0:jbNWCp7gGug:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/tunea-el-escritorio-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detectar usuarios con iPhone de forma nativa en WordPress</title>
		<link>http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/</link>
		<comments>http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 22:15:35 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[código]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[navegador]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[TwentyEleven]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=9989</guid>
		<description><![CDATA[Aunque hay algunos plugins, y temas, que sirven para ofrecer una versión móvil de tu sitio WordPress a usuarios de dispositivos móviles como iPhone igual tiene sentido usar una variable nativa que ya existe en WordPress para detectar este tipo de cacharritos y así prescindir de ayudas externas ¿sabías que existía esta función?, pues existe. Así que, si te animas, es bastante fácil, solo tienes que hacer dos pasos: crear la función y añadir un poco de CSS para que se vea distinto (es lo menos ¿no?). Vamos a ver como sería …  1. Crear la función Asegúrate, eso si, &#8230;</p> <a href="http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/">Sigue leyendo que hay m&#225;s <span>&#8594;</span></a><p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://ayudawordpress.com/wp-content/uploads/2008/08/awp-iphone1.png" rel="shadowbox[post-9989];player=img;" title="Ayuda WordPress iPhone"><img src="http://ayudawordpress.com/wp-content/uploads/2008/08/awp-iphone1.png" alt="Ayuda WordPress iPhone" title="Ayuda WordPress iPhone" width="320" height="480" class="aligncenter size-full wp-image-2650" /></a></p>
<p>Aunque hay algunos plugins, y temas, que sirven para <strong>ofrecer una versión móvil de tu sitio WordPress</strong> a usuarios de dispositivos móviles como iPhone igual tiene sentido <strong>usar una variable nativa que ya existe en WordPress</strong> para detectar este tipo de cacharritos y así prescindir de ayudas externas ¿sabías que existía esta función?, pues existe.</p>
<p>Así que, si te animas, <strong>es bastante fácil, solo tienes que hacer dos pasos</strong>: <a href="http://wp.tutsplus.com/tutorials/plugins/quick-tip-natively-detecting-iphone-users-in-wordpress/" >crear la función y añadir un poco de CSS</a> para que se vea distinto (es lo menos ¿no?).</p>
<p>Vamos a ver como sería … </p>
<p><span id="more-9989"></span></p>
<h3>1. Crear la función</h3>
<p>Asegúrate, eso si, de que pegas la función antes del cierre de la etiqueta <code></head></code>. Por defecto, por ejemplo, el tema <strong>TwentyEleven</strong> usa la función <code>body_class();</code> en la cabecera del fichero <code>header.php</code> para añadir clases de manera dinámica a la etiqueta <code>< body ></code>, pero cada tema es distinto.</p>
<p>Por ejemplo, si estás viendo una página en WordPress, <code><body class="singular"></code> es un ejemplo de una clase para el cuerpo de una página o entrada sencilla, lo que te permite cambiar el estilo de ciertos elementos de tu diseño de manera dinámica usando CSS. Si tu tema no usa la etiqueta <code>body_class();</code> inclúyela de este modo:</p>
<div class="igBar"><span id="lphp-19"><a href="http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/" onclick="javascript:showCodeTxt('php-19'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<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;">&lt;body <span style="color:#000000; font-weight:bold;">&lt;?php</span> body_class<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>WordPress dispone de variables globales que pueden usarse para detectar navegadores, como la que aquí estamos tratando, la variable <code>$is_iphone</code>. Esta variable está incluida en el fichero <code>vars.php</code> de la instalación de WordPress, en estas líneas:</p>
<div class="igBar"><span id="lphp-20"><a href="http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/" onclick="javascript:showCodeTxt('php-20'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<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:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$is_safari</span> &amp;&amp; stripos<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$_SERVER</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'HTTP_USER_AGENT'</span><span style="color:#006600; font-weight:bold;">&#93;</span>, <span style="color:#FF0000;">'mobile'</span><span style="color:#006600; font-weight:bold;">&#41;</span> !== <span style="color:#000000; font-weight:bold;">false</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; <span style="color:#0000FF;">$is_iphone</span> = <span style="color:#000000; font-weight:bold;">true</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Vamos a usar esta variable junto con la clase 'body'. Para hacerlo primero escribimos esta función:</p>
<div class="igBar"><span id="lphp-21"><a href="http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/" onclick="javascript:showCodeTxt('php-21'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-21">
<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;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> detectar_iphone<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$iphone</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;">&nbsp; &nbsp; <a href="http://www.php.net/global"><span style="color:#000066;">global</span></a> <span style="color:#0000FF;">$is_iphone</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:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$is_iphone</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#0000FF;">$iphone</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#FF0000;">'iphone'</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:#616100;">return</span> <span style="color:#0000FF;">$iphone</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;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'body_class'</span>,<span style="color:#FF0000;">'detectar_iphone'</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:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ya tenemos hecha la función. Lo primero que hace es darle un nombre, en este caso 'detectar_iphone', para poder reconocerla entre el resto de funciones. Luego se le añade la variable 'global', nuestra ya querida <code>$is_iphone</code>, esto se hace así porque la variable está definida fuera de nuestra función. A continuación le decimos a WordPress que si se produce esa condición (que hay un iPhone navegando por nuestro sitio) añadamos 'iphone' a nuestra clase 'body'. Una vez lo tenemos ya podemos pegar este código de arriba antes de <code>< / head ></code> en nuestro tema activo, normalmente en el archivo <code>header.php</code>, como he comentado antes.</p>
<h3>2. Un poco de CSS</h3>
<p>Como ya hems creado la función ya solo nos queda crear un CSS específico para esa clase 'iphone' a la que llamamos. En la misma podemos añadir muchos elementos de estilo, como por ejemplo una etiqueta h1 distinta, algo así:</p>
<p>Por ejemplo, donde tengamos la clase h1 de nuestra hoja de estilos (habitualmente en el fichero <code>style.css</code> de nuestro tema activo) le vamos añadiendo la clase 'iphone' que adapte el diseño al dispositivo:</p>
<div class="igBar"><span id="lcss-22"><a href="http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/" onclick="javascript:showCodeTxt('css-22'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-22">
<div class="css">
<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;">h1 <span style="color: #66cc66;">&#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: #000000; font-weight: bold;">font-size</span>: 30px;</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;">line-<span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #cc66cc;color:#800000;">110</span>%;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">underline</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: #66cc66;">&#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;"><span style="color: #6666ff;">.iphone </span>h1 <span style="color: #66cc66;">&#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: #000000; font-weight: bold;">font-size</span>: 35px;</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: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">color</span>: #FF0000;</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: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y así sucesivamente, hasta que ofrezcas una versión para iPhone totalmente a tu gusto.</p>
<p>¿Que no te animas?, pues puedes recurrir a plugins como <a href="http://wordpress.org/extend/plugins/mobble/" >mobble</a> que añade más variables o <a href="http://wordpress.org/extend/plugins/wptouch/" >WpTouch</a> que lo hace todo el solito.<br />
<h3><font color="#000080">Contenido exclusivo para suscriptores al Feed</font></h3>
<p><font color="#808080">¡Gracias por seguirnos a diario!. Premiamos tu fidelidad ofreciéndote habitualmente contenidos exclusivos. Hoy puedes descargar:</font></p>
<p><a href="http://ayudawordpress.com/downloads/?did=108" title="Clic aquí para iniciar la descarga"><img src="http://ayudawordpress.com/wp-content/uploads/2008/01/wp-install.jpg" alt="Clic aquí para iniciar la descarga" align="middle" border="0" height="59" width="43" /> Guía para Administrar WordPress</a></p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=23&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:23px'></iframe></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=0n7IP4yc4W4:CCpF4LKkgQQ:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=0n7IP4yc4W4:CCpF4LKkgQQ:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/detectar-usuarios-con-iphone-de-forma-nativa-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plantilla HTML5 para desarrollar temas WordPress</title>
		<link>http://ayudawordpress.com/plantilla-html5-para-desarrollar-temas-wordpress/</link>
		<comments>http://ayudawordpress.com/plantilla-html5-para-desarrollar-temas-wordpress/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 06:58:19 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Desarrollo]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=9794</guid>
		<description><![CDATA[Si buscas una plantilla a partir de la cual desarrollar tus temas WordPress que sea HTML5, esté bien documentada y con un CSS limpio seguro que te encanta Bones. La podrás usar para no tener que escribir la base de tus temas y tener un punto de partida increíble para tus desarollos. Sus características son las siguientes: 256 kb de tamaño Constantes actualizaciones y mejoras 2 hojas de estilo incluidas 5 funciones incluida para que te ahorres plugins (posts relacionados, navegación, etc) Te ahorra horas de desarrollo Además, no es una cosa nueva que acaba de salir, ya lleva 9 &#8230;</p> <a href="http://ayudawordpress.com/plantilla-html5-para-desarrollar-temas-wordpress/">Sigue leyendo que hay m&#225;s <span>&#8594;</span></a><p>]]></description>
			<content:encoded><![CDATA[<p>Si buscas una plantilla a partir de la cual desarrollar tus <strong>temas WordPress que sea HTML5</strong>, esté <strong>bien documentada</strong> y con un <strong>CSS limpio</strong> seguro que te encanta <strong>Bones</strong>. La podrás usar para no tener que escribir la base de tus temas y tener un punto de partida increíble para tus desarollos.</p>
<p><a href="http://ayudawordpress.com/wp-content/uploads/2011/06/bones.png" rel="shadowbox[post-9794];player=img;" title="bones"><img src="http://ayudawordpress.com/wp-content/uploads/2011/06/bones-500x375.png" alt="" title="bones" width="500" height="375" class="aligncenter size-medium wp-image-9795" /></a></p>
<p>Sus características son las siguientes:</p>
<ul>
<li>256 kb de tamaño</li>
<li>Constantes actualizaciones y mejoras</li>
<li>2 hojas de estilo incluidas</li>
<li>5 funciones incluida para que te ahorres plugins (posts relacionados, navegación, etc)</li>
<li>Te ahorra horas de desarrollo</li>
</ul>
<p>Además, no es una cosa nueva que acaba de salir, ya lleva 9 versiones y creciendo. Si te animas o quieres probar <a  href="http://themble.com/bones/"><strong>Bones</strong></a> puedes <a  href="https://github.com/eddiemachado/bones/zipball/master">descargarlo aquí</a>.</p>
<p><small>Me enteré <a  href="http://www.blogperfume.com/tool-html5-wordpress-development-theme-template/">gracias a Blog perfume</a></small></p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://ayudawordpress.com/plantilla-html5-para-desarrollar-temas-wordpress/&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=23&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:23px'></iframe></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=vF_CGX0SZ1s:zDOGjMM1gAM:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=vF_CGX0SZ1s:zDOGjMM1gAM:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/plantilla-html5-para-desarrollar-temas-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eliminar completamente los comentarios</title>
		<link>http://ayudawordpress.com/eliminar-completamente-los-comentarios/</link>
		<comments>http://ayudawordpress.com/eliminar-completamente-los-comentarios/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 11:11:39 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[Comentarios]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=9706</guid>
		<description><![CDATA[No me refiero a eliminarlos de la plantilla para que no puedan comentar, ni siquiera a desactivarlos desde los ajustes de WordPress, me refiero a eliminar completamente los comentarios y cualquier referencia, incluso visual, a su existencia. Está claro, los comentarios son parte de los blogs, esencia misma de la Web 2.0, pero hay ocasiones en que - sobre todo para trabajos a clientes - en que es posible que quieras quitar cualquier atisbo de que tal cosa siquiera existe. En este raro, pero probable, caso, Frank ha elaborado un plugin cuyo código quita toda referencia a los comentarios, vamos, &#8230;</p> <a href="http://ayudawordpress.com/eliminar-completamente-los-comentarios/">Sigue leyendo que hay m&#225;s <span>&#8594;</span></a><p>]]></description>
			<content:encoded><![CDATA[<p>No me refiero a eliminarlos de la plantilla para que no puedan comentar, ni siquiera a desactivarlos desde los ajustes de WordPress, me refiero a <a  href="http://wpengineer.com/2230/removing-comments-absolutely-wordpress/"><strong>eliminar completamente los comentarios</strong></a> y cualquier referencia, incluso visual, a su existencia.</p>
<p>Está claro, los comentarios son parte de los blogs, esencia misma de la <strong>Web 2.0</strong>, pero hay ocasiones en que - sobre todo para trabajos a clientes - en que es posible que quieras quitar cualquier atisbo de que tal cosa siquiera existe.</p>
<p>En este raro, pero probable, caso, <a  href="https://github.com/bueltge/Remove-Comments-Absolutely">Frank ha elaborado un plugin</a> cuyo código <strong>quita toda referencia a los comentarios</strong>, vamos, que dejan de existir en tu WordPress, no verá rastro ni cita alguna a los mismos.</p>
<p><span id="more-9706"></span></p>
<p>Solo tienes que guardar este código con el nombre que quieras, subirlo a la carpeta 'plugins' de tu instalación de WordPress, activarlo y habrás eliminado totalmente los comentarios de tu WordPress.</p>
<div class="igBar"><span id="lphp-4"><a href="http://ayudawordpress.com/eliminar-completamente-los-comentarios/" onclick="javascript:showCodeTxt('php-4'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-4">
<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;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/**</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:#008000;"> * Plugin Name: Eliminar comentarios completamente</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * Plugin URI: http://bueltge.de/</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:#008000;"> * Text Domain: remove_comments_absolute</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * Domain Path: /languages</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:#008000;"> * Description: Desactiva las funciones de comentarios y quita todas sus referencias en la instalación de WordPress</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * Author: Frank Bültge</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:#008000;"> * Version: 0.0.1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * Licence: GPLv2</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:#008000;"> * Author URI: http://bueltge.de</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * Upgrade Check: none</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:#008000;"> * Last Change: 01.06.2011</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> */</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:#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;">'Remove_Comments_Absolute'</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;">&nbsp; &nbsp; add_action<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'plugins_loaded'</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;">'Remove_Comments_Absolute'</span>, <span style="color:#FF0000;">'get_object'</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:#000000; font-weight:bold;">class</span> Remove_Comments_Absolute <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; <a href="http://www.php.net/static"><span style="color:#000066;">static</span></a> private <span style="color:#0000FF;">$classobj</span> = <span style="color:#000000; font-weight:bold;">NULL</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:#008000;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Constructor, init on defined hooks of WP and include second class</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @access&nbsp; public</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @since&nbsp; &nbsp;0.0.1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @uses&nbsp; &nbsp; add_filter, add_action</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @return&nbsp; void</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; */</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; public <span style="color:#000000; font-weight:bold;">function</span> __construct <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; &nbsp; &nbsp; &nbsp; &nbsp; add_filter<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'the_posts'</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:#0000FF;">$this</span>, <span style="color:#FF0000;">'set_comment_status'</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; &nbsp; &nbsp; &nbsp; &nbsp; add_filter<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'comments_open'</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:#0000FF;">$this</span>, <span style="color:#FF0000;">'close_comments'</span>, <span style="color:#CC66CC;color:#800000;">10</span>, <span style="color:#CC66CC;color:#800000;">2</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add_filter<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'pings_open'</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:#0000FF;">$this</span>, <span style="color:#FF0000;">'close_comments'</span>, <span style="color:#CC66CC;color:#800000;">10</span>, <span style="color:#CC66CC;color:#800000;">2</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; &nbsp; &nbsp; &nbsp; &nbsp; add_action<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'admin_init'</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:#0000FF;">$this</span>, <span style="color:#FF0000;">'remove_comments'</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add_filter<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'add_menu_classes'</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:#0000FF;">$this</span>, <span style="color:#FF0000;">'add_menu_classes'</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; &nbsp; &nbsp; &nbsp; &nbsp; add_action<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'admin_head'</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:#0000FF;">$this</span>, <span style="color:#FF0000;">'remove_comments_areas'</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add_action<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'wp_before_admin_bar_render'</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:#0000FF;">$this</span>, <span style="color:#FF0000;">'admin_bar_render'</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; &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; &nbsp; &nbsp; &nbsp; <span style="color:#008000;">/**</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Handler for the action 'init'. Instantiates this class.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @access&nbsp; public</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @since&nbsp; &nbsp;0.0.1</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @return&nbsp; object $classobj</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; */</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; public <span style="color:#000000; font-weight:bold;">function</span> get_object <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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#000000; font-weight:bold;">NULL</span> === self :: <span style="color:#0000FF;">$classobj</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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self :: <span style="color:#0000FF;">$classobj</span> = <span style="color:#000000; font-weight:bold;">new</span> self;</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; <span style="color:#616100;">return</span> self :: <span style="color:#0000FF;">$classobj</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; <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; <span style="color:#008000;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Set the status on posts and pages - is_singular ()</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @access&nbsp; public</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @since&nbsp; &nbsp;0.0.1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @uses&nbsp; &nbsp; is_singular</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @param&nbsp; &nbsp;string $posts</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @return&nbsp; string $posts</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; */</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; public <span style="color:#000000; font-weight:bold;">function</span> set_comment_status <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$posts</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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> ! <a href="http://www.php.net/empty"><span style="color:#000066;">empty</span></a><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$posts</span> <span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp; is_singular<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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$posts</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>-&gt;<span style="color:#006600;">comment_status</span> = <span style="color:#FF0000;">'closed'</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; &nbsp; &nbsp; <span style="color:#0000FF;">$posts</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>-&gt;<span style="color:#006600;">post_status</span> = <span style="color:#FF0000;">'closed'</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; <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; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$posts</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; <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; <span style="color:#008000;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Close comments, if open</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @access&nbsp; public</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @since&nbsp; &nbsp;0.0.1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @param&nbsp; &nbsp;string | boolean $open</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @param&nbsp; &nbsp;string | integer $post_id</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @return&nbsp; string $posts</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; */</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; public <span style="color:#000000; font-weight:bold;">function</span> close_comments <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$open</span>, <span style="color:#0000FF;">$post_id</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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// if not open, than back</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; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> ! <span style="color:#0000FF;">$open</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$open</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; <span style="color:#0000FF;">$post</span> = get_post<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$post_id</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$post</span> -&gt; <span style="color:#006600;">post_type</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#FF9933; font-style:italic;">// all post types</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; <span style="color:#616100;">return</span> <span style="color:#000000; font-weight:bold;">FALSE</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; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$open</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; <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; <span style="color:#008000;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Change options for dont use comments</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Remove meta boxes on edit pages</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Remove support on all post types for comments</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Remove menu-entries</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @access&nbsp; public</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @since&nbsp; &nbsp;0.0.1</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @uses&nbsp; &nbsp; update_option, get_post_types, remove_meta_box, remove_post_type_support</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @return&nbsp; void</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; */</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; public <span style="color:#000000; font-weight:bold;">function</span> remove_comments <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-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; <span style="color:#FF9933; font-style:italic;">// int values</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; <span style="color:#616100;">foreach</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;">'comments_notify'</span>, <span style="color:#FF0000;">'default_pingback_flag'</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$option</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; update_option<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$option</span>, <span style="color:#CC66CC;color:#800000;">0</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// string false</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; <span style="color:#616100;">foreach</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;">'default_comment_status'</span>, <span style="color:#FF0000;">'default_ping_status'</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$option</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; update_option<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$option</span>, <span style="color:#FF0000;">'false'</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// all post types</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; <span style="color:#FF9933; font-style:italic;">// alternative define an array( 'post', 'page' )</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; <span style="color:#616100;">foreach</span> <span style="color:#006600; font-weight:bold;">&#40;</span> get_post_types<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$post_type</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// comment status</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; &nbsp; &nbsp; remove_meta_box<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'commentstatusdiv'</span>, <span style="color:#0000FF;">$post_type</span>, <span style="color:#FF0000;">'normal'</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// remove trackbacks</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; &nbsp; &nbsp; remove_meta_box<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'trackbacksdiv'</span>, <span style="color:#0000FF;">$post_type</span>, <span style="color:#FF0000;">'normal'</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// remove all commnts from tabels</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; &nbsp; &nbsp; remove_post_type_support<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$post_type</span>, <span style="color:#FF0000;">'comments'</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; &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; <span style="color:#FF9933; font-style:italic;">// remove dashboard meta box for recents comments</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; remove_meta_box<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'dashboard_recent_comments'</span>, <span style="color:#FF0000;">'dashboard'</span>, <span style="color:#FF0000;">'normal'</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Remove menu entries with WP 3.1 and higher</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; <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;">'remove_menu_page'</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-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; remove_menu_page<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'edit-comments.php'</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; remove_submenu_page<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'options-general.php'</span>, <span style="color:#FF0000;">'options-discussion.php'</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; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// unset comments</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; &nbsp; &nbsp; <a href="http://www.php.net/unset"><span style="color:#000066;">unset</span></a><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$GLOBALS</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'menu'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">25</span><span style="color:#006600; font-weight:bold;">&#93;</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// unset menuentry Discussion</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; &nbsp; &nbsp; <a href="http://www.php.net/unset"><span style="color:#000066;">unset</span></a><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$GLOBALS</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'submenu'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'options-general.php'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">25</span><span style="color:#006600; font-weight:bold;">&#93;</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; &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; <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; &nbsp; &nbsp; <span style="color:#008000;">/**</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Add class for last menu entry with no 20</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @access&nbsp; public</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @since&nbsp; &nbsp;0.0.1</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @param&nbsp; &nbsp;array string $menu</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @return&nbsp; array string $menu</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; */</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; <span style="color:#000000; font-weight:bold;">function</span> add_menu_classes <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$menu</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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$menu</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">20</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">4</span><span style="color:#006600; font-weight:bold;">&#93;</span> .= <span style="color:#FF0000;">' menu-top-last'</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; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$menu</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; &nbsp; &nbsp; &nbsp; <span style="color:#008000;">/**</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Remove areas for comments in backend via JS</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @access&nbsp; public</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @since&nbsp; &nbsp;0.0.1</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @return&nbsp; string with js</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; */</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; public <span style="color:#000000; font-weight:bold;">function</span> remove_comments_areas <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; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=<span style="color:#FF0000;">"text/javascript"</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; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//&lt;![CDATA[</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; jQuery<span style="color:#006600; font-weight:bold;">&#40;</span>document<span style="color:#006600; font-weight:bold;">&#41;</span>.ready<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#000000; font-weight:bold;">function</span><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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'.table_discussion'</span> <span style="color:#006600; font-weight:bold;">&#41;</span>.remove<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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//]]&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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">&lt;/script&gt;</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; <span style="color:#000000; font-weight:bold;">&lt;?php</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; &nbsp; &nbsp; &nbsp; <span style="color:#008000;">/**</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * Remove comment entry in Admin Bar</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; *</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @access&nbsp; public</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @since&nbsp; &nbsp;0.0.1</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @uses&nbsp; &nbsp; remove_menu</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; * @return&nbsp; void</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:#008000;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; */</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; public <span style="color:#000000; font-weight:bold;">function</span> admin_bar_render <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-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; <span style="color:#FF9933; font-style:italic;">// remove entry in admin bar</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; <span style="color:#0000FF;">$GLOBALS</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'wp_admin_bar'</span><span style="color:#006600; font-weight:bold;">&#93;</span> -&gt; <span style="color:#006600;">remove_menu</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'comments'</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; &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; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#FF9933; font-style:italic;">// end class</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:#FF9933; font-style:italic;">// end if class exists</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Lo que hace el plugin es lo siguiente:</p>
<ul>
<li>Cierra todos los formularios de comentarios existentes</li>
<li>Quita los widgets relacionados con comentarios en el editor</li>
<li>Quita todos los enlaces a la gestión de comentarios de los menús de WordPress</li>
<li>Quita la columna de comentarios del Escritorio</li>
<li>Quita los ajustes de comentarios</li>
</ul>
<p>Aquí tienes unas capturas de como queda de solito y desolado WordPress sin comentarios. Ahora tu decides, igual para algún proyecto te viene bien.<br />

<a href='http://ayudawordpress.com/wp-content/uploads/2011/06/nocomentarios1.png' rel='shadowbox[album-9706];player=img;' title='nocomentarios1'><img width="150" height="150" src="http://ayudawordpress.com/wp-content/uploads/2011/06/nocomentarios1-150x150.png" class="attachment-thumbnail" alt="nocomentarios1" title="nocomentarios1" /></a>
<a href='http://ayudawordpress.com/wp-content/uploads/2011/06/nocomentarios2.png' rel='shadowbox[album-9706];player=img;' title='nocomentarios2'><img width="150" height="150" src="http://ayudawordpress.com/wp-content/uploads/2011/06/nocomentarios2-150x150.png" class="attachment-thumbnail" alt="nocomentarios2" title="nocomentarios2" /></a>
</p>
<p>
<h3><font color="#000080">Contenido exclusivo para suscriptores al Feed</font></h3>
<p><font color="#808080">¡Gracias por seguirnos a diario!. Premiamos tu fidelidad ofreciéndote habitualmente contenidos exclusivos. Hoy puedes descargar:</font></p>
<p><a href="http://ayudawordpress.com/downloads/?did=112" title="Clic aquí para iniciar la descarga"><img src="http://ayudawordpress.com/wp-content/uploads/2008/01/wp-install.jpg" alt="Clic aquí para iniciar la descarga" align="middle" border="0" height="59" width="43" /> Guía Domina tu Blog</a></p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://ayudawordpress.com/eliminar-completamente-los-comentarios/&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=23&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:23px'></iframe></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=80_TNrVPIUM:d52FDW53PFs:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=80_TNrVPIUM:d52FDW53PFs:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/eliminar-completamente-los-comentarios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Tags vuelve al pasado</title>
		<link>http://ayudawordpress.com/simple-tags-vuelve-al-pasado/</link>
		<comments>http://ayudawordpress.com/simple-tags-vuelve-al-pasado/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 18:00:54 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Avanzado]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[memoria]]></category>
		<category><![CDATA[nofollow]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Simple Tags]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=9237</guid>
		<description><![CDATA[Si eres aficionado a utilizar el plugin Simple Tags y has visto que hay una versión nueva (beta 1, y 2) quizás deberías pensártelo antes de actualizar. Y es que esta versión 2 en beta que nos ofrecen no incorpora avances como suele suceder sino que es una vuelta a la simplicidad, al pasado. Lo [...]]]></description>
			<content:encoded><![CDATA[<p>Si eres aficionado a utilizar el plugin <a href="http://wordpress.org/extend/plugins/simple-tags/">Simple Tags</a> y has visto que hay una versión nueva (beta 1, y 2) quizás deberías pensártelo antes de actualizar.</p>
<p>Y es que esta <strong>versión 2 en beta</strong> que nos ofrecen no incorpora avances como suele suceder sino que es una vuelta a la simplicidad, al pasado.</p>
<p><a href="http://ayudawordpress.com/wp-content/uploads/2011/02/simple-tags-2.png" rel="shadowbox[post-9237];player=img;" title="simple tags 2"><img src="http://ayudawordpress.com/wp-content/uploads/2011/02/simple-tags-2-500x174.png" alt="" title="simple tags 2" width="500" height="174" class="aligncenter size-medium wp-image-9238" /></a></p>
<p>Lo que han hecho ha sido aligerar enormemente el peso y carga del plugin, <strong>eliminando muchas de las funciones que lo han hecho tan popular</strong>, algo que a mi modo de ver no han hecho del mejor modo, pero no me explayo hasta detallar los cambios:</p>
<ul>
<li>Se quitan los marcadores</li>
<li>Se quitan las entradas relacionadas</li>
<li>Se quitan las etiquetas relacionadas</li>
<li>Se quitan las opciones de nofollow</li>
<li>Se quitan las etiquetas como palabras clave HTML</li>
<li>Se quitan la función para mostrar las etiquetas de la entrada actual</li>
<li>Se quita la opción de auto-añadir etiquetas</li>
<li>Se quitan las etiquetas incrustadas</li>
<li>Se cambia el método para las etiquetas por página</li>
</ul>
<p>Por lo que se mejora el consumo de memoria, ya que todo se puede desactivar y se dejan de usar variables de clases para las opciones, además de utilizar las librerías AJAX de WordPress</p>
<p>Pues bien, entiendo que quieran aligerar de consumo de memoria el plugin, pero de ahí a quitar aquello que lo ha hecho tan popular, permitiendo eliminar otros plugins ya que este lo hacía incluso mejor, me parece el modo menos adecuado. Creo que habría estado mejor dejar todo sin instalar por defecto, como hace WordPress con el instalador de importadores, pero creo que es un error desactivar funciones que han hecho de este plugin uno de los más populares y recomendados, al menos para mi.</p>
<p>En consecuencia, que de momento pasa a mi lista de <strong>plugins a NO actualizar</strong>.</p>
<p>¿Lo has probado ya?</p>
<p>Nota: como en los comentarios muchos decís que &#8220;se os ha ido la mano y habéis actualizado&#8221;, os recuerdo que siempre podéis volver a instalar versiones anteriores desde la página del plugin (de cualquier plugin), en el enlace llamado &#8220;Other versions&#8221;. En este caso la página <a href="http://wordpress.org/extend/plugins/simple-tags/download/">es esta</a> y el enlace a la última versión &#8220;completa&#8221;, la 1.8, <a href="http://downloads.wordpress.org/plugin/simple-tags.1.8.zip">este otro</a>.<br />
<h3><font color="#000080">Contenido exclusivo para suscriptores al Feed</font></h3>
<p><font color="#808080">¡Gracias por seguirnos a diario!. Premiamos tu fidelidad ofreciéndote habitualmente contenidos exclusivos. Hoy puedes descargar:</font></p>
<p><a href="http://ayudawordpress.com/downloads/?did=108" title="Clic aquí para iniciar la descarga"><img src="http://ayudawordpress.com/wp-content/uploads/2008/01/wp-install.jpg" alt="Clic aquí para iniciar la descarga" align="middle" border="0" height="59" width="43" /> Guía para Administrar WordPress</a></p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://ayudawordpress.com/simple-tags-vuelve-al-pasado/&amp;layout=box_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=65&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=t-MUJpPGTdI:ofmRXq8LMj8:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=t-MUJpPGTdI:ofmRXq8LMj8:Dsqc8YHEA1Y" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ayudawordpress.com/simple-tags-vuelve-al-pasado/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Define llamadas a funciones y acelera tu WordPress</title>
		<link>http://carrero.es/define-llamadas-a-funciones-y-acelera-tu-wordpress/5373/</link>
		<comments>http://carrero.es/define-llamadas-a-funciones-y-acelera-tu-wordpress/5373/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 10:11:44 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[configuración]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[velocidad]]></category>

		<guid isPermaLink="false">http://carrero.es/?p=5373</guid>
		<description><![CDATA[WordPress sigue siendo el rey y además lo sigue demostrando, cada día más posibilidades y opciones. Ahora descubrimos otro truco más para acelerar la carga de WordPress. Aumentar un poco más la velocidad definiendo llamadas a funciones de WordPress de forma directa en el fichero de configuración y así evitando una consulta a la base [...]<p><a href="http://carrero.es/define-llamadas-a-funciones-y-acelera-tu-wordpress/5373/">Define llamadas a funciones y acelera tu WordPress</a> is a post from: <a href="http://carrero.es">Carrero</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>WordPress</strong> sigue siendo el rey y además lo sigue demostrando, cada día más posibilidades y opciones. Ahora descubrimos otro truco más para acelerar la carga de WordPress.</p>
<p><strong>Aumentar un poco más la <a title="velocidad" href="http://velocidad.es" >velocidad</a> definiendo llamadas a funciones de WordPress de forma directa en el fichero de configuración y así evitando una consulta a la base de datos.</strong></p>
<p>Aquí tienes unos ejemplos, seguro que puede aplicarse para más funciones. Abre tu fichero de configuración <em>wp-config.php</em> y añade estas líneas:</p>
<blockquote><p>define(&#8216;WP_HOME&#8217;, &#8216;http://carrero.es&#8217;); // blog url<br />
define(&#8216;WP_SITEURL&#8217;, &#8216;http://carrero.es&#8217;); // site url<br />
define(&#8216;TEMPLATEPATH&#8217;, &#8216;/ruta/absoluta/to/wp-content/themes/nombredemitema&#8217;);<br />
define(&#8216;STYLESHEETPATH&#8217;, &#8216;/ruta/absoluta/to/wp-content/themes/nombredemitema&#8217;);</p></blockquote>
<p>Y no te olvides de actualizar &#8220;<em>/ruta/absoluta/&#8221;</em> y <em>&#8220;nombredemitema&#8221;</em> por tus datos correctos. En mi caso estoy probando en <a title="carrero" href="http://carrero.es">Carrero.es</a> solo las 2 primeras variables y en el caso de <a title="diseño web" href="http://www.colorvivo.com">Color Vivo</a> con las 4 variables.</p>
<p>Gracias a <a href="http://ayudawordpress.com/acelera-wordpress-definiendo-llamadas-a-funciones/" >Fernando de Ayuda WordPress</a>.</p>
<p><a href="http://carrero.es/define-llamadas-a-funciones-y-acelera-tu-wordpress/5373/">Define llamadas a funciones y acelera tu WordPress</a> is a post from: <a href="http://carrero.es">Carrero</a></p>
]]></content:encoded>
			<wfw:commentRss>http://carrero.es/define-llamadas-a-funciones-y-acelera-tu-wordpress/5373/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

