<?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>xploit29 - Tecnología al alcance de tus manos &#187; Widgets</title>
	<atom:link href="http://www.xploit29.com/tag/widgets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xploit29.com</link>
	<description>Bienvenidos a xploit29, un blog de lo ultimo de la informacion acerca de tecnologia, web 2.0, usabilidad web y más.</description>
	<lastBuildDate>Sat, 24 Dec 2011 22:20:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Crear tabs para cualquier sitio con jQuery (Parte II)</title>
		<link>http://www.xploit29.com/2008/10/crear-tabs-para-cualquier-sitio-con-jquery-parte-ii/</link>
		<comments>http://www.xploit29.com/2008/10/crear-tabs-para-cualquier-sitio-con-jquery-parte-ii/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 08:03:00 +0000</pubDate>
		<dc:creator>ikcam</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Diseño]]></category>
		<category><![CDATA[Edicion]]></category>
		<category><![CDATA[Funciones]]></category>
		<category><![CDATA[Pestañas]]></category>
		<category><![CDATA[Plantillas]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Tabs]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.xploit29.com/2008/10/crear-tabs-para-cualquier-sitio-con-jquery-parte-ii/</guid>
		<description><![CDATA[<img width="120" height="19" src="http://www.xploit29.com/wp-content/uploads/2008/10/tabsedit.png" class="attachment-post-thumb" alt="tabsedit.png" title="tabsedit.png" />Continuando con este tutorial para incorporar “TABS” o pestañas a nuestro sitio web, ahora vamos a aprender a incorporarlos a WordPress, que pasos debemos seguir y que hay que tener en cuenta. Antes de comenzar es necesario que revisen el primer tutorial de esta serie para que tengan una idea de lo que me refiero con algunos términos. Para incorporarlos a nuestra plantilla debemos seguir lo siguientes pasos, Nos dirigimos a nuestro panel de administración en WordPress, luego al editor ... <div class="read-more"><a href="http://www.xploit29.com/2008/10/crear-tabs-para-cualquier-sitio-con-jquery-parte-ii/">Continuar leyendo <span class="meta-nav">&#187;</span></a></div>]]></description>
			<content:encoded><![CDATA[<p align="justify">Continuando con este tutorial para incorporar “TABS” o pestañas a nuestro sitio web, ahora vamos a aprender a <strong>incorporarlos a WordPress</strong>, que pasos debemos seguir y que hay que tener en cuenta. Antes de comenzar es necesario que <a href="http://www.xploit29.com/2008/10/crear-tabs-para-cualquier-sitio-con-jquery/">revisen el primer tutorial</a> de esta serie para que tengan una idea de lo que me refiero con algunos términos.</p>
<p align="justify">Para incorporarlos a nuestra plantilla debemos seguir lo siguientes pasos, </p>
<ul>
<li>
<div align="justify">Nos dirigimos a nuestro panel de administración en WordPress, luego al editor de temas y <strong>editamos</strong> el archivo <code>header.php </code>(Encabezado)</div>
</li>
</ul>
<p align="justify"><a href="http://www.xploit29.com/wp-content/uploads/2008/10/tabsedit.png"><img title="tabs-edit" style="display: block; float: none; margin-left: auto; margin-right: auto" height="87" alt="tabs-edit" src="http://www.xploit29.com/wp-content/uploads/2008/10/tabsedit-thumb.png" width="550" /></a> </p>
<ul>
</ul>
<p align="justify">Dentro de la edición de este archivo <strong>añadimos</strong> las siguientes líneas entre las etiquetas <code>&lt;head&gt;</code> y <code>&lt;/head&gt;</code></p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://code.jquery.com/jquery-latest.js&quot;</span>&gt;</span>
  	 <span style="color: #808080; font-style: italic;">&lt;!--mce:0--&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://dev.jquery.com/view/tags/ui/latest/ui/ui.core.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
     <span style="color: #808080; font-style: italic;">&lt;!--mce:1--&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://dev.jquery.com/view/tags/ui/latest/ui/ui.tabs.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
     <span style="color: #808080; font-style: italic;">&lt;!--mce:2--&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
     <span style="color: #808080; font-style: italic;">&lt;!--mce:3--&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<ul>
<li>
<div align="justify">A continuación nos dirigimos a <strong>editar</strong> el archivo <code>style.css</code> (Hoja de estilos) para definir el estilo de nuestro widget. </div>
</li>
</ul>
<p><a href="http://www.xploit29.com/wp-content/uploads/2008/10/tabseditcss.png"><img title="tabs-editcss" style="display: block; float: none; margin-left: auto; margin-right: auto" height="87" alt="tabs-editcss" src="http://www.xploit29.com/wp-content/uploads/2008/10/tabseditcss-thumb.png" width="550" /></a> </p>
<p align="justify">A este archivo le tenemos que <strong>añadir las líneas de código de CSS</strong> del tutorial anterior, lo mejor es que ingresen su hoja de estilos propias, verán que no es muy difícil editarla. Pero en caso deseen practicar, aquí tienen el ejemplo que tienen que añadir al final del archivo <code>style.css<code></code> </code></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.estilo</span> <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">310px</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
		.ui-tabs-nav<span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
		<span style="color: #6666ff;">.ui-tabs-nav</span> li <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #cc00cc;">#3399FF</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #cc00cc;">#3399FF</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #cc00cc;">#3399FF</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Verdana</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span><span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
		<span style="color: #6666ff;">.ui-tabs-nav</span> li<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#EBEBEB</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
			<span style="color: #6666ff;">.ui-tabs-nav</span> li<span style="color: #3333ff;">:hover </span>a <span style="color: #00AA00;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
			<span style="color: #00AA00;">&#125;</span>
		<span style="color: #6666ff;">.ui-tabs-nav</span> li <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
			<span style="color: #6666ff;">.ui-tabs-nav</span> li a <span style="color: #00AA00;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#336699</span><span style="color: #00AA00;">;</span>
				<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
			<span style="color: #00AA00;">&#125;</span>
		<span style="color: #6666ff;">.ui-tabs-panel</span> <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3399FF</span> <span style="color: #993333;">solid</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">298px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Verdana</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
			<span style="color: #6666ff;">.ui-tabs-panel</span> ul <span style="color: #00AA00;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
				<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
			<span style="color: #00AA00;">&#125;</span>
			<span style="color: #6666ff;">.ui-tabs-panel</span> ul li <span style="color: #00AA00;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #00AA00;">&#125;</span>
		<span style="color: #6666ff;">.ui-tabs-panel</span> a <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#336699</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
			<span style="color: #6666ff;">.ui-tabs-panel</span> a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3399FF</span><span style="color: #00AA00;">;</span>
				<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span>
			<span style="color: #00AA00;">&#125;</span>
		.ui-tabs-<span style="color: #993333;">hide</span> <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3399FF</span> <span style="color: #993333;">solid</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">298px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Verdana</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
			.ui-tabs-<span style="color: #993333;">hide</span> ul <span style="color: #00AA00;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
				<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
			<span style="color: #00AA00;">&#125;</span>
			.ui-tabs-<span style="color: #993333;">hide</span> ul li <span style="color: #00AA00;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
			<span style="color: #00AA00;">&#125;</span>
		.ui-tabs-<span style="color: #993333;">hide</span> a <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#336699</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
			.ui-tabs-<span style="color: #993333;">hide</span> a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3399FF</span><span style="color: #00AA00;">;</span>
				<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span>
			<span style="color: #00AA00;">&#125;</span></pre></div></div>

<ul>
<li>Lo siguiente, es editar el archivo <code>sidebar.php</code> (Barra lateral) <strong>para poder añadir nuestros “widgets” en código bruto PHP </strong>(que más adelante verán) ya que al usar esta sidebar con pestañas no pueden usar el sistema de WordPress para añadir “widgets” a sus recuadros con pestañas. </li>
</ul>
<p><a href="http://www.xploit29.com/wp-content/uploads/2008/10/tabseditsidebar.png"><img title="tabs-editsidebar" style="display: block; float: none; margin-left: auto; margin-right: auto" height="94" alt="tabs-editsidebar" src="http://www.xploit29.com/wp-content/uploads/2008/10/tabseditsidebar-thumb.png" width="550" /></a> </p>
<p align="justify">Dentro de la edición de este archivo, tenemos que añadir las siguientes líneas de código, si lo deseamos visualizar en la parte <strong>superior</strong> de nuestra plantilla lo tenemos que añadir antes de la siguiente línea de código:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><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: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p align="justify">Pero si lo desea visualizar en la parte <strong>inferior</strong>, lo tenemos que poner antes del final del sidebar, es decir, <strong>antes de la última etiqueta</strong> <code>&lt;/div&gt;</code>. La líneas de código a añadir son las siguientes:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;EJEMPLO&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;estilo&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#tab-1&quot;</span>&gt;</span>Título 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#tab-2&quot;</span>&gt;</span>Título 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tab-1&quot;</span>&gt;</span>
            Aquí el contenido<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tab-2&quot;</span>&gt;</span>
            Aquí el contenido<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Debemos recordar mantener la estructura que se mencionó en el <a href="http://www.xploit29.com/2008/10/crear-tabs-para-cualquier-sitio-con-jquery/">tutorial anterior</a> para así evitar que nuestro código no funcione.</p>
<ul>
<li>
<div align="justify">Finalmente, <strong>nuevamente</strong> nos dirigimos al archivo <code>header.php</code> para una <strong>última adición</strong>. Tenemos que añadir lo siguiente <strong>tantas veces se hallan añadido recuadros</strong> en la edición del archivo <code>sidebar.php</code> manteniendo los nombres de los respectivos <code>id</code>. La línea de código a añadir es la siguiente: </div>
</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">  <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
  $<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>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#EJEMPLO &gt; ul&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">tabs</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: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p><strong>Repito</strong>, debemos repetir, tantas veces sea necesario.</p>
<p align="justify">Luego de realizar todas esas modificaciones, nuestro widget con pestañas se mostrará en nuestra <strong>barra lateral</strong> de WordPress. A continuación, les daré una <strong>lista de funciones en PHP</strong> que llamarán algunos widgets sin la necesidad de llamarlos a través de nuestro panel de administración de WordPress:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//Mostrar cateogrías</span>
wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'orderby=name&amp;title_li='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #666666; font-style: italic;">//Mostrar archivo</span>
wp_get_archives<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=monthly'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//Ultimos 10 posts</span>
get_archives<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'postbypost'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//Blogroll</span>
wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_before=&lt;span style=&quot;display:none;&quot;&gt;&amp;title_after=&lt;/span&gt;&amp;title_li=&amp;category_before=&amp;category_after='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p align="justify">En caso, tengas alguna duda acerca de este tutorial, déjanos un comentario y recuerda que respecto a la edición de la barra lateral, cada barra lateral es distinta en cada plantilla así que ten cuidado.</p>

	<h4>Entradas relacionadas: </h4>
	<ul class="st-related-posts">
	<li><a href="http://www.xploit29.com/2008/10/crear-tabs-para-cualquier-sitio-con-jquery/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="Crear tabs para cualquier sitio con jQuery (Parte I) (13 octubre, 2008)">Crear tabs para cualquier sitio con jQuery (Parte I)</a></li>
	<li><a href="http://www.xploit29.com/2008/12/windows-vista-wordpress-theme/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="Windows Vista WordPress Theme (9 diciembre, 2008)">Windows Vista WordPress Theme</a></li>
	<li><a href="http://www.xploit29.com/2008/10/nuevo-diseno-del-blog/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="Nuevo dise&ntilde;o del blog (7 octubre, 2008)">Nuevo dise&ntilde;o del blog</a></li>
	<li><a href="http://www.xploit29.com/2008/11/liberado-x-blue-theme-para-wordpress-por-xploit29/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="Liberado &ldquo;X-Blue&rdquo; Theme para WordPress por xploit29 (21 noviembre, 2008)">Liberado &ldquo;X-Blue&rdquo; Theme para WordPress por xploit29</a></li>
	<li><a href="http://www.xploit29.com/2008/12/101-diseos-para-joomla/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="101 Dise&ntilde;os para Joomla (11 diciembre, 2008)">101 Dise&ntilde;os para Joomla</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.xploit29.com/2008/10/crear-tabs-para-cualquier-sitio-con-jquery-parte-ii/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Agrega un bot&#243;n de Ayuda Blogs a tu navegador</title>
		<link>http://www.xploit29.com/2008/07/agrega-un-boton-de-ayuda-blogs-a-tu-navegador/</link>
		<comments>http://www.xploit29.com/2008/07/agrega-un-boton-de-ayuda-blogs-a-tu-navegador/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 22:17:12 +0000</pubDate>
		<dc:creator>ikcam</dc:creator>
				<category><![CDATA[Trucos]]></category>
		<category><![CDATA[Ayuda Blogs]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://www.xploit29.com/2008/07/agrega-un-botn-de-ayuda-blogs-a-tu-navegador/</guid>
		<description><![CDATA[<img width="120" height="83" src="http://www.xploit29.com/wp-content/uploads/2008/07/abblogscuadro.png" class="attachment-post-thumb" alt="abblogscuadro.png" title="abblogscuadro.png" />A través de este botón podrás reducir un poco de tiempo para enviar noticias o novedades a Ayuda Blogs. Tome como principio el botón de TinyURL para acortar direcciones y lo apliqué para Ayuda Blogs y funcionó de maravilla. Para agregar el botón sigue los siguientes pasos. Puedes agregarlo como marcador a tu lista de marcadores, ya sea creándolo o arrastrarlo hasta tus marcadores. En caso desees crearlo haz clic derecho en tu barra de marcadores y haz clic en ... <div class="read-more"><a href="http://www.xploit29.com/2008/07/agrega-un-boton-de-ayuda-blogs-a-tu-navegador/">Continuar leyendo <span class="meta-nav">&#187;</span></a></div>]]></description>
			<content:encoded><![CDATA[<p align="justify">A través de este botón podrás reducir un poco de tiempo para enviar noticias o novedades a <a href="http://www.ayudablogs.com">Ayuda Blogs</a>. Tome como principio el botón de <a href="http://www.tinyurl.com">TinyURL</a> para acortar direcciones y lo apliqué para <a href="http://www.ayudablogs.com">Ayuda Blogs</a> y funcionó de maravilla.</p>
<p align="justify">Para agregar el botón sigue los siguientes pasos.</p>
<ul>
<li>
<div align="justify">Puedes <strong>agregarlo</strong> como marcador a tu lista de marcadores, ya sea creándolo <strong>o</strong> <strong>arrastrarlo</strong> hasta tus marcadores.</div>
</li>
<li>
<div align="justify">En caso desees crearlo haz clic derecho en tu barra de marcadores y haz clic en “<strong>Nuevo marcador…</strong>” a continuación:</div>
</li>
</ul>
<p align="center"><a href="http://www.xploit29.com/wp-content/uploads/2008/07/abblogscuadro1.png"><img title="abblogs-cuadro" height="232" alt="abblogs-cuadro" src="http://www.xploit29.com/wp-content/uploads/2008/07/abblogscuadro-thumb1.png" width="335" /></a> </p>
<ul>
<li>
<div align="left">Puedes establecer el título que gustes lo que si debes mantener es la <strong>localización que debe ser</strong> la siguiente: </div>
</li>
</ul>
<blockquote><p align="left"><a title="javascript:void(location.href=&#39;http://www.ayudablogs.com/submit.php?url=&#39;+location.href)" href="http://www.ayudablogs.com/submit.php?url='+location.href)">javascript:void(location.href=&#8217;http://www.ayudablogs.com/submit.php?url=&#8217;+location.href)</a>.</p>
</blockquote>
<ul>
<li>
<div align="justify">La <strong>otra opción</strong>, es arrastrar el siguiente enlace hasta tu barra de marcadores: <a href="javascript:void(location.href='http://www.ayudablogs.com/submit.php?url='+location.href)">Votar en AB Blogs</a></div>
</li>
</ul>
<p align="justify">Si tienes alguna otra idea o este manual contiene algún error coméntalo y lo solucionaré o publicaré en caso sea otra idea.</p>
<p align="right">Enlace | <a href="http://www.ayudablogs.com">Ayuda Blogs</a></p>

	<h4>Entradas relacionadas: </h4>
	<ul class="st-related-posts">
	<li><a href="http://www.xploit29.com/2008/12/trucos-para-need-for-speed-undercover/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="Trucos para Need for Speed Undercover (3 diciembre, 2008)">Trucos para Need for Speed Undercover</a></li>
	<li><a href="http://www.xploit29.com/2011/09/tips-para-netflix/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="Tips para Netflix (9 septiembre, 2011)">Tips para Netflix</a></li>
	<li><a href="http://www.xploit29.com/2009/12/simple-tags-en-wordpress-2-9/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="Simple Tags en WordPress 2.9 (21 diciembre, 2009)">Simple Tags en WordPress 2.9</a></li>
	<li><a href="http://www.xploit29.com/2008/07/opendns-solucin-a-problema-con-el-internet/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="OpenDNS: Soluci&oacute;n a problema con el Internet (8 julio, 2008)">OpenDNS: Soluci&oacute;n a problema con el Internet</a></li>
	<li><a href="http://www.xploit29.com/2008/09/mantener-una-ventana-siempre-visible/?utm_source=self&utm_medium=nav&utm_campaign=Relacionados" title="Mantener una ventana siempre visible (16 septiembre, 2008)">Mantener una ventana siempre visible</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.xploit29.com/2008/07/agrega-un-boton-de-ayuda-blogs-a-tu-navegador/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

