<?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>Mas que Wordpress - Tutoriales, recursos web, JQuery y PHP, Wordpress , twitter y muchos recursos más &#187; Wordpress</title>
	<atom:link href="http://www.masquewordpress.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masquewordpress.com</link>
	<description>Tutoriales y recursos web sobre JQuery , PHP, Wordpress , twitter. Aprende diseño web y programación</description>
	<lastBuildDate>Fri, 03 Feb 2012 19:33:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ayuda para WordPress</title>
		<link>http://www.masquewordpress.com/ayuda-para-wordpress/</link>
		<comments>http://www.masquewordpress.com/ayuda-para-wordpress/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 01:05:29 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Noticias]]></category>
		<category><![CDATA[Recursos]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[errores wordpress]]></category>
		<category><![CDATA[tips de wordpress]]></category>

		<guid isPermaLink="false">http://www.masquewordpress.com/?p=972</guid>
		<description><![CDATA[Hoy inauguro una sección de la web para dudas y preguntas de WordPress. Es un sitio donde se intentará resolver las dudas y problemas que surjan con WordPress. Aviso que no es un sitio donde yo voy a resolver dudas, aunque si voy a colaborar en la medida de lo posible. &#8220;Más Que WordPress Preguntas&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy inauguro una sección de la web para <a title="Dudas y Preguntas de WordPress" href="http://www.masquewordpress.com/ayuda">dudas y preguntas de WordPress</a>. Es un sitio donde se intentará resolver las dudas y problemas que surjan con WordPress. Aviso que no es un sitio donde yo voy a resolver dudas, aunque si voy a colaborar en la medida de lo posible. &#8220;<strong>Más Que WordPress Preguntas&#8221; </strong>es más bien una comunidad donde los usuarios se ayudan entre sí a resolver todas las cuestiones relacionadas con WordPress ya sea en la creación de themes, plugins o simples preguntas de cualquier tipo.</p>
<p>Espero que con el tiempo se pueda crear una buena base de datos para ayuda de los demás.</p>
<p><img class="aligncenter size-full wp-image-975" title="preguntas-wordpress" src="http://www.masquewordpress.com/wp-content/uploads/2011/11/preguntas-wordpress.png" alt="" width="298" height="85" /> </p>
<p><div class="iconbox"><span class="iconbox_icon"><img src='http://www.masquewordpress.com/wp-content/themes/brightbox/images/icons/iconbox/help.png' alt='' /></span><div class="iconbox_content"><h3 class="iconbox_content_title">Ayuda WordPress</h3><p>Pueden acceder en <a href="http://www.masquewordpress.com/ayuda">http://www.masquewordpress.com/ayuda</a></p>
</div></div><br />
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/ayuda-para-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Como transladar de dominio un blog de wordpress</title>
		<link>http://www.masquewordpress.com/como-transladar-de-dominio-un-blog-de-wordpress/</link>
		<comments>http://www.masquewordpress.com/como-transladar-de-dominio-un-blog-de-wordpress/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 00:18:44 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tips de wordpress]]></category>

		<guid isPermaLink="false">http://www.masquewordpress.com/?p=890</guid>
		<description><![CDATA[Ahora que he vivido en mis propias carnes lo que es transferir un blog de WordPress a un dominio totalmente distinto les puedo dar los paso que seguí para transferir mi antiguo blog y que este haga una redirección de todos los post al nuevo dominio y afecte el SEO lo menos posible. Podemos resumir [...]]]></description>
			<content:encoded><![CDATA[<p>Ahora que he vivido en mis propias carnes lo que es transferir un blog de WordPress a un dominio totalmente distinto les puedo dar los paso que seguí para transferir mi antiguo blog y que este haga una redirección de todos los post al nuevo dominio y afecte el SEO lo menos posible.</p>
<p><span id="more-890"></span></p>
<h3>Podemos resumir la transferencia de un blog WordPress en 10 pasos</h3>
<ol>
<li>Creamos un robots.txt en el nuevo dominio para bloquear momentaneamente todos los spiders (la mayoría al menos)

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">User<span style="color: #339933;">-</span>agent<span style="color: #339933;">:</span> <span style="color: #339933;">*</span>
<span style="color: #cc66cc;">2</span>
Disallow<span style="color: #339933;">:</span> <span style="color: #339933;">/</span></pre></td></tr></table></div>

</li>
<li>Copiamos toda la base de datos y archivos (plugins, uploads, etc) a nuestro nuevo dominio</li>
<li>Editamos <strong>wp-config.php</strong> con los datos de conexión a nuestra &#8220;nueva&#8221; base de datos y agregamos lo siguiente para poder acceder al backend de WordPress

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_SITEURL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://www.example.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_HOME'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://www.example.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>Nos aseguramos de que el cache este desactivado e instalamos un plugin llamado <a href="http://wordpress.org/extend/plugins/search-and-replace/">Search and Replace plugin</a> para poder cambiar todas las url de nuestra base de datos.En mi caso hice un replace de <strong>blog.timersys.com</strong> => <strong>www.masquewordpress.com</strong>.</li>
<li><strong>Comprobamos que todo este correcto</strong>, probar los plugins que requieren accesso de API como twitter y facebook que muchas veces hay que configurar un callback_url. (Recomiendo dejar el plugin de google analytics y google sitemaps para lo último)</li>
<li>Quitamos el robots.txt de la nueva web</li>
<li>Modificamos el archivo .htaccess de nuestro antiguo dominio para crear una redirección 301

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">Redirect <span style="color: #cc66cc;">301</span> <span style="color: #339933;">/</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.tusitioweb.com/</span></pre></td></tr></table></div>

</li>
<li>Comprobamos nuevamente que todo funcione correctamente, y probamos algunos links de nuestro antiguo dominio para ver si nos redirige correctamente al nuevo como por ejemplo <a href="http://blog.timersys.com/tutoriales/">http://blog.timersys.com/tutoriales/</a>.</li>
<li>Terminamos de Configurar los plugins y comprobamos otra vez que todo funcione. Si tienen cuenta de feedburner asegúrense de cambiar la url</li>
<li>Borramos el sitio antiguo y la base de datos(opcional)</li>
<p>Estos mismos pasos se pueden aplicar para mover un blog de WordPress desde un dominio a otro o por ejemplo para mover un blog dentro del mismo dominio de la carpeta /blog/ al sitio principal . Lo único que cambiamos es la regla de redirección dentro del htaccess.</p>
<p>Un saludo!!!</p>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/como-transladar-de-dominio-un-blog-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Novedades en WordPress 3.3</title>
		<link>http://www.masquewordpress.com/novedades-en-wordpress-3-3/</link>
		<comments>http://www.masquewordpress.com/novedades-en-wordpress-3-3/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 14:45:04 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Noticias]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=833</guid>
		<description><![CDATA[Ya salio la Beta de WordPress 3.3 . Esta versión trae bastantes cambios estéticos de los cuales algunos me gustan más que otros: Menu Desplegables A partir de ahora los menus estarán siempre colapsados y los submenus flotarán a la derecha. Esta nueva apariencia me gusta aunque vamos a ver como me llevo con ella. Ya que no [...]]]></description>
			<content:encoded><![CDATA[<p>Ya salio <a href="http://wordpress.org/news/2011/10/wordpress-3-3-beta-1/">la Beta de WordPress 3.3</a> . Esta versión trae bastantes cambios estéticos de los cuales algunos me gustan más que otros:</p>
<h2><img class="alignright" title="Menu Desplegable" src="http://masquewordpress.com/wp-content/uploads/2011/10/flyoutmenu.png" alt="WordPress 3.3 menu desplegable" width="289" height="182" />Menu Desplegables</h2>
<p>A partir de ahora los menus estarán siempre colapsados y los submenus flotarán a la derecha. Esta nueva apariencia me gusta aunque vamos a ver como me llevo con ella. Ya que no suelo recordar en que parte se encuentra todo dentro de mi menu  Wordpress.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-833"></span></p>
<h2>Nueva Barra de Admin</h2>
<p style="text-align: center;"><img class="aligncenter" title="adminbar" src="http://masquewordpress.com/wp-content/uploads/2011/10/adminbar.png" alt="WordPress 3.3 admin bar" width="432" height="237" /></p>
<p>La Barra de admin también fue resideseñada un poco. Ahora por ejemplo si pasamos el mouse sobre el ícono de WordPress veremos los links propios de WordPress como son el Codex, los foros de Soporte, la web principal, etc.</p>
<p>También se han agregado nuevos menu como el de Apariencia que faltaba en la versión anterior.</p>
<h2></h2>
<h2>Cambios Varios en el Media Uploader</h2>
<p><img class="alignleft" title="media upload" src="http://masquewordpress.com/wp-content/uploads/2011/10/mediaicon.png" alt="WordPress 3.3 media upload" width="252" height="149" />A Partir de ahora <strong>todos los botones están concentrados es un solo botón</strong> para subir media. Yo la verdad solo uso el botón de imagen la mayoría del tiempo y los otros eran practicamente lo mismo, así que me parece una buena idea lo que han echo.</p>
<p>Igualmente el cambio principal en el media uploader es el <strong>nuevo sistema para subir archivos mendiante el drag and drop</strong>. A partir de ahora con tan solo arrastrar los archivos desde nuestras carpetas podremos subir facilmente cualquier archivo. Otra novedad es que <strong>ya no solo depende de flash y soporta HTML5 y SilverLight </strong>haciendo así un poco más facil la vida a los bloggers que utilicen dispositivos móviles como el iPad.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter" title="Drag and Drop media uploader" src="http://masquewordpress.com/wp-content/uploads/2011/10/plupload.png" alt="WordPress 3.3 Nuevo drag and drop media uploader" width="673" height="364" /></p>
<p><span class="Apple-style-span" style="font-size: 20px; font-weight: bold;">Tool Tips de ayuda dentro de Wp-Admin</span></p>
<p>A partir de ahora van a aparecer <strong>tooltips de ayuda </strong>que nos van a marcar las nuevas novedades. Esto esta muy bien para los nuevos usuarios que no conocen mucho la interfaz y opciones de WordPress. Por otro lado puede resultar un poco molesto para los usuarios más experimentados. Espero que introduzcan una opción para quitarlos.</p>
<p style="text-align: center;"><img class="aligncenter" title="tooltips de ayuda" src="http://masquewordpress.com/wp-content/uploads/2011/10/admintooltips.png" alt="WordPress 3.3 Tooltips de ayuda" width="509" height="253" /></p>
<h2>Admin resizable para dispositivos móviles</h2>
<p>Otra nueva característica pensada para los bloggers con bajas resoluciones es que el panel de admin se colapsa automáticamente cuando la pantalla es más pequeña. Esto se puede simplemente redimensionando la ventana de tu navegador.</p>
<p><a href="http://masquewordpress.com/wp-content/uploads/2011/10/responsiveadmin.png"><img title="responsiveadmin" src="http://masquewordpress.com/wp-content/uploads/2011/10/responsiveadmin.png" alt="WordPress 3.3 admin colapsable" width="719" height="465" /></a></p>
<p>Es increíble como avanza WordPress cada vez más , y calculo que mientras sigan haciendo las cosas así esto no va a parar. Ustedes que creen?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/novedades-en-wordpress-3-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>63 Tutoriales de Diseño Web, jQuery, WordPress y un montón más</title>
		<link>http://www.masquewordpress.com/63-tutoriales-de-diseno-web-jquery-wordpress-y-un-monton-mas/</link>
		<comments>http://www.masquewordpress.com/63-tutoriales-de-diseno-web-jquery-wordpress-y-un-monton-mas/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 14:30:48 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Noticias]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=819</guid>
		<description><![CDATA[63 Tutoriales de Diseño Web, jQuery, WordPress y un montón más es la cantidad reunida hasta día de hoy en mi blog. Eso sin contar los &#8220;pequeños trucos o tips&#8221; que son demasiado cortos para contarlos como tutoriales. Alguien quiere colaborar con un tutorial propio? Saludos!!]]></description>
			<content:encoded><![CDATA[<p><a href="http://masquewordpress.com/tutoriales/">63 Tutoriales de Diseño Web, jQuery, WordPress y un montón más</a> es la cantidad reunida hasta día de hoy en mi blog. Eso sin contar los &#8220;pequeños trucos o tips&#8221; que son demasiado cortos para contarlos como tutoriales.</p>
<p>Alguien quiere colaborar con un tutorial propio?</p>
<p>Saludos!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/63-tutoriales-de-diseno-web-jquery-wordpress-y-un-monton-mas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Crear página de opciones parar tu theme de wordpress</title>
		<link>http://www.masquewordpress.com/crear-pagina-de-opciones-parar-tu-theme-de-wordpress/</link>
		<comments>http://www.masquewordpress.com/crear-pagina-de-opciones-parar-tu-theme-de-wordpress/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 18:50:31 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=807</guid>
		<description><![CDATA[[offtopic] Antes de empezar con este tema les quiero pedir perdón si no contesto los comentarios que me piden ayuda o códigos personalizados. Lamentablemente hace tiempo que decidí no contestarlos porque son muchos y no tengo tiempo para responderlos todos y me parece injusto solo responder algunos. Si de alguna manera pueden ayudarse entre todos [...]]]></description>
			<content:encoded><![CDATA[<p>[offtopic] Antes de empezar con este tema les quiero pedir perdón si no contesto los comentarios que me piden ayuda o códigos personalizados. Lamentablemente hace tiempo que decidí no contestarlos porque son muchos y no tengo tiempo para responderlos todos y me parece injusto solo responder algunos. Si de alguna manera pueden ayudarse entre todos me harían un gran favor. Si es algo que no consiguen ayuda en ningún lado pueden contratar mis servicios.[/offtopic]</p>
<p>Hoy les voy a explicar <strong>Como crear una página de opciones para sus themes de WordPress </strong>donde van a poder s<strong>ubir un logo o favico</strong> , <strong>insertar el código de google analytics</strong> o simplemente <strong>agregar un texto de copyright. </strong>Cuando un cliente me pide crear un theme personalizado siempre les creo una página de opciones sencilla donde pueden cambiar varias opciones de su theme.</p>
<p><span id="more-807"></span>Para esto vamos a utilizar la <a href="http://codex.wordpress.org/Settings_API">Settings API</a> de WordPress que precisamente nos ofrece una forma sencilla y segura de realizar páginas de configuración para wordpress.</p>
<p>Lo primero que debemos hacer es escoger un prefijo para nuestras funciones ya que no queres que entren en conflicto con otras funciones de plugins que por casualidad tengan el mismo nombre.Como queremos hacer una &#8220;<strong>página de opciones</strong>&#8221; en este ejemplo vamos a usar &#8220;<strong>pa_</strong>&#8221; como nuestro prefijo.</p>
<p>Lo primero que debemos hacer es registrar nuestras opciones (<a href="http://codex.wordpress.org/Function_Reference/register_setting">Register Settings</a>). Para ello dentro de functions.php incluimos:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> pa_registrar_opciones<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    register_setting<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'pa_opciones_theme'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pa_opciones'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pa_validar'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'admin_init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pa_registrar_opciones'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Para utilizar <strong>register_settings</strong> como hacemos siempre en wordpress lo incluimos dentro de una función. En este caso debemos añadir nuestro <strong>hook</strong> a <strong>admin_init</strong> para que funcione correctamente.</p>
<p>Dentro de register_setting vemos 3 parametros:</p>
<ul>
<li><strong>pa_opciones_theme:</strong> Es el nombre de grupo de opciones</li>
<li><strong>pa_opciones:</strong> Es el nombre de la opción que estamos registrando. Puedes registrar cuantas opciones requieras, pero a mi me gusta usar una solo opción array con todos los valores dentro como veremos más adelante.</li>
<li><strong>pa_validar:</strong> Nombre de la función que utilizaremos para validar los datos.</li>
</ul>
<blockquote><p>Nota: En caso de trabajar con <strong>Clases de PHP </strong> debemos añadir el hook de la siguiente forma:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'admin_init'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'pa_registrar_opciones'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Esto último es como mera referencia , en este tutorial vamos a intentar mantener las cosas tan simples como sea posible.</p></blockquote>
<p>Ahora mismo ya podemos llamar nuestras opciones de la siguiente forma.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$opciones</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pa_opciones'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Aunque no devolvera errores, tampoco devolvera ningún valor aun. Por eso podemos agregarle algunos valores por defecto que luego el usuario podrá cambiar desde la página de opciones.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$valores_default</span><span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                    <span style="color: #0000ff;">'copyright'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&amp;copy;2011 Timersys'</span><span style="color: #339933;">,</span>
                    <span style="color: #0000ff;">'logo'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http://tudomain.com/images/logo_placeholder.png'</span>
              <span style="color: #009900;">&#41;</span>
<span style="color: #000088;">$opciones</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pa_opciones'</span><span style="color: #339933;">,</span><span style="color: #000088;">$valores_default</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>Perfecto!! Ya tenemos nuestra variable de opciones creada y le asignamos algunos valores por defecto. Ahora tenemos que <a href="http://codex.wordpress.org/Adding_Administration_Menus">crear el menu de configuración</a> de la siguiente manera:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> pa_opciones_theme<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    add_theme_page<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Opciones Theme'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Opciones Theme'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'edit_theme_options'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'opciones_theme'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pa_theme_page'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'admin_menu'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pa_opciones_theme'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>La función <strong>add_theme_page</strong> va a añadir una nueva opción dentro del menu <strong>Apariencia</strong>. Es el lugar lógico para guardar nuestra página de opciones del theme. En ocasiones donde nuestro themes contengan muchas opciones y queremos crear un menu padre aparte deberíamos usar <strong>add_menu_page()</strong> donde podremos agregar un icono y tendremos más opciones.</p>
<p>Explicando los cinco argumentos de <strong>add_theme_page</strong>:</p>
<ol>
<li>Título de la Ventana del Explorador</li>
<li>Título que aparece en el menu</li>
<li><a href="http://codex.wordpress.org/Roles_and_Capabilities">Capability</a> (no se decirlo en español <img src='http://www.masquewordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ) necesaria para poder acceder al menu.</li>
<li>Slug de la url. En este ejemplo wp-admin/admin.php?page=opciones_theme</li>
<li>Nombre de la función que crea la página de opciones</li>
</ol>
<p>Esta última función es la que nos interesa ahora, ya que es la encarga de mostrar la página con nuestras opciones como podemos ver a continuación.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">function pa_theme_page() {
    global $valores_default;
&nbsp;
    if ( ! isset( $_REQUEST['updated'] ) )
    $_REQUEST['updated'] = false; // Para comprobar si el formulario fue enviado o no. ?&gt;
&nbsp;
    &lt;div&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> screen_icon<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;h2&gt;&quot;</span><span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">' Opciones de '</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> get_current_theme<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/h2&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #666666; font-style: italic;">// Esto muestra el ícono de la página si es que tiene uno y el nombre del theme ?&gt;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">!==</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'settings-updated'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;div&gt;&lt;p&gt;&lt;strong&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Opciones guardadas'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Si el formulario se envia mostramos el mensaje. ?&gt;</span>
&nbsp;
    <span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;options.php&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$opciones</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'pa_opciones'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$valores_default</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> settings_fields<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'pa_opciones_theme'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #666666; font-style: italic;">/* Esta función imprime todos los campos hidden necesarios para que el formulario funcione correctamente */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
    &lt;table class=&quot;form-table&quot;&gt;
&nbsp;
    &lt;tr valign=&quot;top&quot;&gt;&lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;logo&quot;&gt;Logo Url&lt;/label&gt;&lt;/th&gt;
    &lt;td&gt;
    &lt;input id=&quot;theme_logo&quot; name=&quot;pa_opciones[theme_logo]&quot; type=&quot;text&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span>  esc_attr_e<span style="color: #009900;">&#40;</span><span style="color: #000088;">$opciones</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'theme_logo'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
   <span style="color: #000000; font-weight: bold;">&lt;?php</span>  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$opciones</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'theme_logo'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
        &lt;img src=&quot;$opciones['theme_logo']&quot; alt=&quot;logo&quot; /&gt;
   <span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/td&gt;
    &lt;/tr&gt;
&nbsp;
    &lt;tr valign=&quot;top&quot;&gt;&lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;favico&quot;&gt;Favico Url&lt;/label&gt;&lt;/th&gt;
    &lt;td&gt;
    &lt;input id=&quot;theme_favico&quot; name=&quot;pa_opciones[theme_logo]&quot; type=&quot;text&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span>  esc_attr_e<span style="color: #009900;">&#40;</span><span style="color: #000088;">$opciones</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'theme_favico'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$opciones</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'theme_favico'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
         &lt;img src=&quot;$opciones['theme_favico']&quot; alt=&quot;logo&quot; /&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/td&gt;
    &lt;/tr&gt;
&nbsp;
    &lt;tr valign=&quot;top&quot;&gt;&lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;google_analytics&quot;&gt;C&amp;oacute;digo de Google Analytics&lt;/label&gt;&lt;/th&gt;
    &lt;td&gt;
    &lt;textarea id=&quot;google_analytics&quot; name=&quot;pa_opciones[google_analytics]&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span>  esc_attr_e<span style="color: #009900;">&#40;</span><span style="color: #000088;">$opciones</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'google_analytics'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;/textarea&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
&nbsp;
    &lt;tr valign=&quot;top&quot;&gt;&lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;copyright&quot;&gt;Footer Copyright&lt;/label&gt;&lt;/th&gt;
    &lt;td&gt;
    &lt;input id=&quot;footer_copyright&quot; name=&quot;pa_opciones[copyright]&quot; type=&quot;text&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span>  esc_attr_e<span style="color: #009900;">&#40;</span><span style="color: #000088;">$opciones</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'copyright'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
&nbsp;
   &lt;p class=&quot;submit&quot;&gt;
    &lt;input type=&quot;submit&quot; class=&quot;button-primary&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Save Changes'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
    &lt;/p&gt;
&nbsp;
    &lt;/form&gt;
&nbsp;
    &lt;/div&gt;
&nbsp;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>El resto de opciones se imprime de igual manera. En la proximo les explico como agregar el media uploader de wordpress para subir el logo y el favico en vez de tener que pegar la url de las imagenes.</p>
<p>Saludos!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/crear-pagina-de-opciones-parar-tu-theme-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Como Deshabilitar la barra de admin de WordPress</title>
		<link>http://www.masquewordpress.com/como-deshabilitar-la-barra-de-admin-de-wordpress/</link>
		<comments>http://www.masquewordpress.com/como-deshabilitar-la-barra-de-admin-de-wordpress/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 13:49:19 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Recursos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[functions.php]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=804</guid>
		<description><![CDATA[La nueva barra introducida por WordPress 3.1 es tan útil como molesta. Aunque nos sirve para movernos mejor por el backend de WordPress, hay veces que molesta o simplemente no queda bien con nuestros diseños. Hoy les voy a explicar como quitarla manualmente o automáticamente en todos los usuarios. Quitar la barra de admin desde [...]]]></description>
			<content:encoded><![CDATA[<p>La nueva barra introducida por <a href="http://wordpress.org">WordPress 3.1</a> es tan útil como molesta. Aunque nos sirve para movernos mejor por el backend de WordPress, hay veces que molesta o simplemente no queda bien con nuestros diseños.<br />
Hoy les voy a explicar como quitarla manualmente o automáticamente en todos los usuarios.<br />
<span id="more-804"></span></p>
<h3>Quitar la barra de admin desde el Perfil</h3>
<p><img src="http://masquewordpress.com/wp-content/uploads/2011/09/wordpress3.1_admin_bar.jpg" alt="" title="wordpress3.1_admin_bar" width="550" height="268" class="aligncenter size-full wp-image-805" /><br />
Todos los usuarios pueden quitar la barra manualmente desde su perfil en <strong>wp-admin/profile.php</strong> . Además tienen la opción para mostrarla solo mientras navegamos o en el dashboard.</p>
<h3> Deshabilitar la barra para todos los usuarios</h3>
<p>Para ello agregamos este código en<strong> functions.php</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mi_barra_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_admin_bar'</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'mi_barra_admin'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3> Deshabilitar la barra para todos los usuarios excepto los administradores </h3>
<p>Para ello tan solo mejoramos la función previa de la siguiente manera</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mi_barra_admin<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span> current_user_can<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;administrator&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$content</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_admin_bar'</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'mi_barra_admin'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Sencillo verdad?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/como-deshabilitar-la-barra-de-admin-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Obtener nombre de la página en vez del primer post en WordPress</title>
		<link>http://www.masquewordpress.com/obtener-nombre-de-la-pagina-en-vez-del-primer-post-en-wordpress/</link>
		<comments>http://www.masquewordpress.com/obtener-nombre-de-la-pagina-en-vez-del-primer-post-en-wordpress/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 01:00:53 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[truco]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=800</guid>
		<description><![CDATA[Muchas veces tenemos nuestros posts en una página llamada BLOG o NOTICIAS , por que para imprimir el título de la página en vez del primer post (que obtenemos con get_the_title() ) podemos hacer simplemente: 1 echo wp_title&#40;''&#41;; Espero que este pequeño truco les haya sido útil]]></description>
			<content:encoded><![CDATA[<p>Muchas veces tenemos nuestros posts en una página llamada BLOG o NOTICIAS , por que para imprimir el título de la página en vez del primer post (que obtenemos con get_the_title() ) podemos hacer simplemente:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Espero que este pequeño truco les haya sido útil</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/obtener-nombre-de-la-pagina-en-vez-del-primer-post-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cambiar Logo y Link del login de WordPress</title>
		<link>http://www.masquewordpress.com/cambiar-logo-y-link-del-login-de-wordpress/</link>
		<comments>http://www.masquewordpress.com/cambiar-logo-y-link-del-login-de-wordpress/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 20:20:18 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[filtros]]></category>
		<category><![CDATA[hooks]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=795</guid>
		<description><![CDATA[Tengo varios clientes que me han pedido que les cambie el Logo y el Link del mismo dentro de su WordPress. Esto es porque en la mayoría de los casos requieren a sus propios clientes que se conecten al sitio y no queda muy profesional tener el logo de wordpress pudiendo crear una página personalizada. [...]]]></description>
			<content:encoded><![CDATA[<p>Tengo varios clientes que me han pedido que les cambie el Logo y el Link del mismo dentro de su WordPress. Esto es porque en la mayoría de los casos requieren a sus propios clientes que se conecten al sitio y no queda muy profesional tener el logo de wordpress pudiendo crear una página personalizada.<br />
Conseguirlo es muy sencillo y tan solo hace falta lo siguiente:<br />
<span id="more-795"></span><br />
Dentro del <strong>functions.php</strong> o donde tengan sus funciones agregar lo siguiente:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_login<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;'</span><span style="color: #339933;">.</span>get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'stylesheet_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/custom-login.css&quot; /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'login_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_login'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> the_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$url</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> get_bloginfo<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'siteurl'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'login_headerurl'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'the_url'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Básicamente en la primera función añadimos un nuevo css al de wp-login.php donde podremos modificar todo a nuestro gusto.<br />
Si quieren cambiar el logo en su archivo css deberán poner:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">h1 a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/logo-white.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>En la segunda función pasamos un filtro al link donde aparece dicho logo y le devolvemos la url de nuestro sitio en lugar de wordpress.org.</p>
<p>A que era fácil? Existen otras formas de cambiar el logo , pero esta personalmente es la que más me gusta.</p>
<p>Hay otros hooks para jugar ,pero yo no he probado. Y Ustedes?</p>
<ul>
<li>login_enqueue_scripts</li>
<li>login_errors</li>
<li>login_footer</li>
<li>login_form</li>
<li>login_form_bottom</li>
<li>login_form_defaults</li>
<li>login_form_middle</li>
<li>login_form_top</li>
<li>login_form_{$action}</li>
<li>login_head</li>
<li>login_headertitle</li>
<li>login_headerurl</li>
<li>login_init</li>
<li>login_message</li>
<li>login_messages</li>
<li>login_redirect</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/cambiar-logo-y-link-del-login-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Añadir wordpress media uploader en tus themes</title>
		<link>http://www.masquewordpress.com/anadir-wordpress-media-uploader-en-tus-themes/</link>
		<comments>http://www.masquewordpress.com/anadir-wordpress-media-uploader-en-tus-themes/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 00:54:15 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[media upload]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=785</guid>
		<description><![CDATA[Para usar el famoso media uploader en tu theme o plugin debes seguir estos sencillos pasos: html 1 &#60;input size=&#34;95&#34; type=&#34;text&#34; name=&#34;sw_logo&#34; value=&#34;&#60;?php echo get_option('sw_logo'); ?&#62;&#34; /&#62;&#60;input class=&#34;upload_image_button&#34; type=&#34;button&#34; value=&#34;Upload&#34; /&#62; upload.js 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 jQuery&#40;document&#41;.ready&#40;function&#40;&#41; &#123; &#160; jQuery&#40;'.upload_image_button'&#41;.click&#40;function&#40;&#41; &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>Para usar el famoso media uploader en tu theme o plugin debes seguir estos sencillos pasos:</p>
<p><span id="more-785"></span><br />
html</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;input size=&quot;95&quot; type=&quot;text&quot; name=&quot;sw_logo&quot; value=&quot;&lt;?php echo get_option('sw_logo'); ?&gt;&quot; /&gt;&lt;input class=&quot;upload_image_button&quot; type=&quot;button&quot; value=&quot;Upload&quot; /&gt;</pre></td></tr></table></div>

<p>upload.js</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.upload_image_button'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 formfield <span style="color: #339933;">=</span> jQuery<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prev</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 tb_show<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'media-upload.php?type=image&amp;amp;TB_iframe=true'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
window.<span style="color: #660066;">send_to_editor</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>html<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 imgurl <span style="color: #339933;">=</span> jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img'</span><span style="color: #339933;">,</span>html<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'src'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 jQuery<span style="color: #009900;">&#40;</span>formfield<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span>imgurl<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 tb_remove<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>y por último en tu functions.php</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> my_admin_scripts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 	wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'media-upload'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thickbox'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	wp_register_script<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'custom-upload'</span><span style="color: #339933;">,</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'stylesheet_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/jq/upload.js'</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'media-upload'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'thickbox'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    wp_enqueue_script<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'custom-upload'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> my_admin_styles<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
wp_enqueue_style<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thickbox'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'page'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'page'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'configuracion-theme'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_print_scripts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_admin_scripts'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_print_styles'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_admin_styles'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Un consejo super sencillo y útil!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/anadir-wordpress-media-uploader-en-tus-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fecha en español en WordPress 3.0.1</title>
		<link>http://www.masquewordpress.com/fecha-en-espanol-en-wordpress-3-0-1/</link>
		<comments>http://www.masquewordpress.com/fecha-en-espanol-en-wordpress-3-0-1/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 18:23:00 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Recursos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[fechas]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=706</guid>
		<description><![CDATA[Para los que sean cerrados como yo y usen WordPress 3.0.1 en ingles para un blog en español les traigo el archivo locale.php traducido para mostrar las fechas en español. Con este en vez de mostrar: Thursday, 11 November 2010 Se vera correctamente Jueves, 11 Noviembre 2010 Solamente tienen que subir el archivo a wp-includes\ [...]]]></description>
			<content:encoded><![CDATA[<p>Para los que sean cerrados como yo y usen WordPress 3.0.1 en ingles para un blog en español les traigo el archivo <strong>locale.php</strong> traducido  para mostrar las fechas en español. Con este en vez de mostrar:</p>
<p>Thursday, 11 November 2010</p>
<p>Se vera correctamente</p>
<p>Jueves, 11 Noviembre 2010<br />
<span id="more-706"></span><br />
Solamente tienen que subir el archivo a <strong>wp-includes\</strong> o modificar <strong>wp-includes\locale.php</strong></p>
<p><strong>locale.php</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
 * Traducido por http://masquewordpress.com
 * Date and Time Locale object
 *
 * @package WordPress
 * @subpackage i18n
 */</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Class that loads the calendar locale.
 *
 * @since 2.1.0
 */</span>
<span style="color: #000000; font-weight: bold;">class</span> WP_Locale <span style="color: #009900;">&#123;</span>
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the full weekday names.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$weekday</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the one character weekday names.
	 *
	 * There is a hack to make sure that Martes and Jueves, as well
	 * as Domingo and Sabado don't conflict. See init() method for more.
	 *
	 * @see WP_Locale::init() for how to handle the hack.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$weekday_initial</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the abbreviated weekday names.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$weekday_abbrev</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the full month names.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$month</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the abbreviated month names.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$month_abbrev</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for 'am' and 'pm'.
	 *
	 * Also the capalized versions.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$meridiem</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * The text direction of the locale language.
	 *
	 * Default is left to right 'ltr'.
	 *
	 * @since 2.1.0
	 * @var string
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$text_direction</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ltr'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Imports the global version to the class property.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$locale_vars</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'text_direction'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Sets up the translated strings and object properties.
	 *
	 * The method creates the translatable strings for various
	 * calendar elements. Which allows for specifying locale
	 * specific calendar names and text direction.
	 *
	 * @since 2.1.0
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// The Weekdays</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Domingo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lunes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Martes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Miercoles'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jueves'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Viernes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabado'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// The first letter of each day.  The _%day%_initial suffix is a hack to make</span>
		<span style="color: #666666; font-style: italic;">// sure the day initials are unique.</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Domingo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'D_Domingo_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lunes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'L_Lunes_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Martes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>   <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'M_Martes_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Miercoles'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'M_Miercoles_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jueves'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'J_Jueves_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Viernes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'V_Viernes_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabado'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'S_Sabado_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$weekday_</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$weekday_initial_</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$weekday_</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/_.+_initial$/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$weekday_initial_</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Abbreviations for each day.</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Domingo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Dom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lunes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lun'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Martes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>   <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Miercoles'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mie'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jueves'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jue'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Viernes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Vie'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabado'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sab'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// The Months</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'01'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Enero'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'02'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Febrero'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'03'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Marzo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'04'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Abril'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'05'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mayo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'06'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Junio'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'07'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Julio'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'08'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Agosto'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'09'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Septiembre'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'10'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Octubre'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'11'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Noviembre'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'12'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Diciembre'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Abbreviations for each month. Uses the same hack as above to get around the</span>
		<span style="color: #666666; font-style: italic;">// 'Mayo' duplication.</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Enero'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Ene_Enero_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Febrero'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Feb_Febrero_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Marzo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mar_Marzo_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Abril'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Abr_Abril_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mayo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'May_Mayo_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Junio'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jun_Junio_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Julio'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jul_Julio_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Agosto'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Ago_Agosto_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Septiembre'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sep_Septiembre_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Octubre'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Oct_Octubre_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Noviembre'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Nov_Noviembre_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Diciembre'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Dic_Diciembre_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$month_</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$month_abbrev_</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$month_</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/_.+_abbreviation$/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$month_abbrev_</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// The Meridiems</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'am'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'am'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pm'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pm'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AM'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AM'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'PM'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'PM'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Numbers formatting</span>
		<span style="color: #666666; font-style: italic;">// See http://php.net/number_format</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">/* translators: $thousands_sep argument for http://php.net/number_format, default is , */</span>
		<span style="color: #000088;">$trans</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number_format_thousands_sep'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">number_format</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'thousands_sep'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number_format_thousands_sep'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$trans</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">','</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$trans</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">/* translators: $dec_point argument for http://php.net/number_format, default is . */</span>
		<span style="color: #000088;">$trans</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number_format_decimal_point'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">number_format</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'decimal_point'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number_format_decimal_point'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$trans</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'.'</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$trans</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Import global locale vars set during inclusion of $locale.php.</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">locale_vars</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$var</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
				<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #000088;">$var</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve the full translated weekday word.
	 *
	 * Week starts on translated Domingo and can be fetched
	 * by using 0 (zero). So the week starts with 0 (zero)
	 * and ends on Sabado with is fetched by using 6 (six).
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param int $weekday_number 0 for Domingo through 6 Sabado
	 * @return string Full translated weekday
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_weekday<span style="color: #009900;">&#40;</span><span style="color: #000088;">$weekday_number</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$weekday_number</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve the translated weekday initial.
	 *
	 * The weekday initial is retrieved by the translated
	 * full weekday word. When translating the weekday initial
	 * pay attention to make sure that the starting letter does
	 * not conflict.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string $weekday_name
	 * @return string
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_weekday_initial<span style="color: #009900;">&#40;</span><span style="color: #000088;">$weekday_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$weekday_name</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve the translated weekday abbreviation.
	 *
	 * The weekday abbreviation is retrieved by the translated
	 * full weekday word.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string $weekday_name Full translated weekday word
	 * @return string Translated weekday abbreviation
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_weekday_abbrev<span style="color: #009900;">&#40;</span><span style="color: #000088;">$weekday_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$weekday_name</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve the full translated month by month number.
	 *
	 * The $month_number parameter has to be a string
	 * because it must have the '0' in front of any number
	 * that is less than 10. Starts from '01' and ends at
	 * '12'.
	 *
	 * You can use an integer instead and it will add the
	 * '0' before the numbers less than 10 for you.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string|int $month_number '01' through '12'
	 * @return string Translated full month name
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_month<span style="color: #009900;">&#40;</span><span style="color: #000088;">$month_number</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span>zeroise<span style="color: #009900;">&#40;</span><span style="color: #000088;">$month_number</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve translated version of month abbreviation string.
	 *
	 * The $month_name parameter is expected to be the translated or
	 * translatable version of the month.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string $month_name Translated month to get abbreviated version
	 * @return string Translated abbreviated month
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_month_abbrev<span style="color: #009900;">&#40;</span><span style="color: #000088;">$month_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$month_name</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve translated version of meridiem string.
	 *
	 * The $meridiem parameter is expected to not be translated.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string $meridiem Either 'am', 'pm', 'AM', or 'PM'. Not translated version.
	 * @return string Translated version
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_meridiem<span style="color: #009900;">&#40;</span><span style="color: #000088;">$meridiem</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$meridiem</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Global variables are deprecated. For backwards compatibility only.
	 *
	 * @deprecated For backwards compatibility only.
	 * @access private
	 *
	 * @since 2.1.0
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> register_globals<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'weekday'</span><span style="color: #009900;">&#93;</span>         <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'weekday_initial'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'weekday_abbrev'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'month'</span><span style="color: #009900;">&#93;</span>           <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'month_abbrev'</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * PHP4 style constructor which calls helper methods to set up object variables
	 *
	 * @uses WP_Locale::init()
	 * @uses WP_Locale::register_globals()
	 * @since 2.1.0
	 *
	 * @return WP_Locale
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> WP_Locale<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">register_globals</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #009933; font-style: italic;">/**
	 * Checks if current locale is RTL.
	 *
	 * @since 3.0.0
	 * @return bool Whether locale is RTL.
	 */</span>
	 <span style="color: #000000; font-weight: bold;">function</span> is_rtl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	 	<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'rtl'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">text_direction</span><span style="color: #339933;">;</span>
	 <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Checks if current locale is RTL.
 *
 * @since 3.0.0
 * @return bool Whether locale is RTL.
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> is_rtl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_locale</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$wp_locale</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_rtl</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Y un <a href="http://masquewordpress.com/ejemplos/locale.php.zip">link para descargarlo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/fecha-en-espanol-en-wordpress-3-0-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

