<?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>Eliseos.net</title> <atom:link href="http://eliseos.net/feed/" rel="self" type="application/rss+xml" /><link>http://eliseos.net</link> <description>Wordpress, Diseño, jQuery and Coffee</description> <lastBuildDate>Tue, 16 Mar 2010 00:51:54 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Crea una barra para compartir tus entradas al estilo Mashable</title><link>http://eliseos.net/destacadas/crea-barra-compartir-entradas-estilo-mashable/</link> <comments>http://eliseos.net/destacadas/crea-barra-compartir-entradas-estilo-mashable/#comments</comments> <pubDate>Mon, 15 Mar 2010 20:16:31 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Destacadas]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2761</guid> <description><![CDATA[Ayer me preguntaban si conocía algún plugin o al por estilo para poder emular el comportamiento de la barra horizontal que acompaña a los post en Mashable. Esta barra se "mueve" a lo largo de la entrada acompañando al scroll y en la que se encuentran botones para]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Ayer me preguntaban si conocía algún plugin o al por estilo para poder emular el comportamiento de la barra horizontal que acompaña a los post en <a
href="http://mashable.com/">Mashable</a>. Esta barra se &#8220;mueve&#8221; a lo largo de la entrada acompañando al scroll y en la que se encuentran botones para socializar contenido, como ser Tweetmeme, Facebook, etc.</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2010/03/mashable.jpg" alt="mashable Crea una barra para compartir tus entradas al estilo Mashable" title="mashable" width="500" height="250" class="alignnone size-full wp-image-2763" /></p><p><span
id="more-2761"></span></p><p
style="text-align: left;">Sinceramente nunca le había prestado demasiada atención a esa barra, por la que me puse a investigar un poco mas sobre su comportamiento y como funciona. Después de mirar un poco pude recrear el efecto sin demasiadas complicaciones con un poco de CSS y jQuery.</p><p
style="text-align: left;">Surgieron dos alternativas, la replica exacta (solo me tome el trabajo de explicar el código) de Mashable y otro un poco mas simple.</p><p
style="text-align: center;"><img
src="http://eliseos.net/wp-content/uploads/2010/03/Social-bar-al-estilo-Mashable.png" alt="Social bar al estilo Mashable Crea una barra para compartir tus entradas al estilo Mashable" title="Social bar al estilo Mashable" width="500" height="250" class="alignnone size-full wp-image-2762" /></p><p
style="text-align: left;">Si entramos a cualquier post en Mashable, veremos que la barra se acompaña al Scroll sin animaciones. Al usar valores negativos en el <em><code>margin</code></em>, esta barra no es visible en resoluciones menores (1024), por lo cual mediante <strong>jQuery </strong>se transforma en otra barra horizontal para mostrar el contenido; lo mismo sucede si redimencionamos la ventana.</p><p
style="text-align: left;">La alternativa mas simple ofrece las mismas funcionalidades y un efecto en el <em>scroll</em>, pero si te excedes en el <strong>viewport</strong>, los visitantes que tengan una resolución de pantalla menor, no podrán apreciarla. A que me refiero con el exceso en el <strong>viewport</strong>? Simple, si tu <em><code>container</code> </em>es de <strong>960px</strong> de ancho y posicionamos la barra a unos <strong>-80px</strong>, <strong>nos excedimos en el viewport</strong> (960px + 80px = 1040) para resoluciones menores o iguales a 1024&#215;768; ya que el <strong>safe area</strong> para esta resolución es de <strong>975px</strong> de ancho.</p><p
style="text-align: left;">Cualquiera de las dos alternativas es válida y funcional, queda en vos utilizar la que creas que mejor se adapte.</p><h2>Replica de Mashable</h2><p
style="text-align: left;">Esta opción requiere un poco mas de código dada la complejidad. Al utilizar la posición <em><code>fixed</code></em>, esta opción no sera compatible con <strong>IE6 </strong>ya que este navegador desconoce esta propiedad.</p><h3><a
href="http://eliseos.net/test/easy/demo1.html">Demo Replica de Mashable</a></h3><p
style="text-align: left;">No te olvides de redimensionar la ventana para apreciar el efecto completo</p><h2>HTML</h2><p
style="text-align: left;">Como lo podemos apreciar en Mashable tenemos botones para sindicar contenido en Twitter, Google Buzz, Facebook y otras. Cada botón funciona por medio de un <em>script </em>para que les sea mas sencillo de integrar, podes usar e incluir los botones que necesitas por medio de algún plugin o simple código, eso queda en vos.</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;social_bar&quot;</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_grandes&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gbuzz s_boton&quot;</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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&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: #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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tweetmeme s_boton&quot;</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: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">tweetmeme_source <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'baires'</span>; <span style="color: #66cc66;">//</span> Mi usuario en Twitter <span style="color: #66cc66;">//</span></span>
<span style="color: #009900;">tweetmeme_url <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'&lt;?php the_permalink(); ?&gt;</span></span>'; // URL a socializar en este caso para Wordpress //
//]]&gt;
<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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&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: #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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;faceboook s_boton&quot;</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://widgets.fbshare.me/files/fbshare.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: #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: #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>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_chicos&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small gbuzz_small&quot;</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: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">var njuice_buzz_size <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'small'</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&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: #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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small twwetmeme_small&quot;</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: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">tweetmeme_style <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'compact'</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&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: #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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small facebook_small&quot;</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: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">var fbShare <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;"><span style="color: #000066;">size</span>: <span style="color: #ff0000;">'small'</span>,</span>
<span style="color: #009900;"><span style="color: #66cc66;">&#125;</span></span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&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://widgets.fbshare.me/files/fbshare.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: #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: #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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
					<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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton_small&quot;</span>&gt;</span>
						<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=Eliseos%20Net&amp;amp;linkurl=eliseos.net&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&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: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">a2a_linkname<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;My Sitio&quot;</span>;a2a_linkurl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mi-url.com&quot;</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&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: #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>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
				<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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=My%20Sitio&amp;amp;linkurl=mi-url.com&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&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: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">a2a_linkname<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;My Sitio&quot;</span>;a2a_linkurl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mi-url.com&quot;</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&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: #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
style="text-align: left;">Nuestro <strong>markup </strong>es de lo mas sencillo, como se puede hay dos clases de botones: grandes y chicos. Los botones grandes son los que se aprecian a simple vista, los chicos se encuentran escondidos para las resoluciones inferiores o en caso de redimensioanarse la pantalla. Es necesario que edites los datos de cada botón para que coincida con los tuyos, en URL, Nombre del Sitio, etc.</p><p
style="text-align: left;">Recomiendo introducir la barra justo después del titulo y antes del contendido para poder desplazarnos sin problemas. Para el caso de Wordpress dentro del archivo <em><code>single.php</code></em></p><h2>CSS</h2><p
style="text-align: left;">Esto es parte de la magia, otra vez es algo extremadamente simple de entender. Intente comentar lo mas posible el código para que sea de fácil entendimiento.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;">&nbsp;
<span style="color: #cc00cc;">#social_bar</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">none</span> </span>repeat <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#DDDDDD</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;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-80px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* // La distacia de la barra que queremos tener en relacion al post */</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones grandes */</span>
<span style="color: #6666ff;">.s_boton</span> <span style="color: #00AA00;">&#123;</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;">clear</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;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones chicos */</span>
.s_boton_small<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</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;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Ocultamos los botones chicos de momento */</span>
<span style="color: #6666ff;">.botones_chicos</span><span style="color: #00AA00;">&#123;</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: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* //Iconos para los links de Share y Email */</span>
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-32px</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>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</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>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">4px</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>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">-14px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</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>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</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/social_sprites.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E8E8E8</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#989898</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span>/<span style="color: #cc66cc;">1.625</span> verdana<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</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;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">44px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">En caso que lo necesites <a
href="http://eliseos.net/wp-content/uploads/2010/03/social_sprites.png">esta es la imagen</a> que utilice en los links de <em>share </em>&amp; <em>e-mail</em>. Los iconos pertenecen al set <a
href="http://glyphish.com/">Glyphish</a>.</p><h2>jQuery</h2><p
style="text-align: left;">Y aquí viene la magia que hará que el comportamiento de la barra acompañe al <em>scroll </em>y diferencie las distintas resoluciones de pantalla.</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
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">$<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;
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#social_bar'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">msie</span> <span style="color: #339933;">&amp;&amp;</span> parseInt<span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">version</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> descripY <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.main'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">offset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">top</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">20</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> $postShare <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#social_bar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> pullX <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'margin-left'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003366; font-weight: bold;">function</span> positionShareScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> scrollY <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> fixedShare <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'position'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'fixed'</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> scrollY <span style="color: #339933;">&gt;</span> descripY <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>fixedShare <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                $postShare.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                    position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'fixed'</span><span style="color: #339933;">,</span>
                    left<span style="color: #339933;">:</span> <span style="color: #3366CC;">'50%'</span><span style="color: #339933;">,</span>
                    top<span style="color: #339933;">:</span> <span style="color: #CC0000;">20</span><span style="color: #339933;">,</span>
                    marginLeft<span style="color: #339933;">:</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">540</span> <span style="color: #006600; font-style: italic;">// Este valor se debe ajustar ya que depende de cada diseño//</span>
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> scrollY <span style="color: #339933;">&lt;</span> descripY <span style="color: #339933;">&amp;&amp;</span> fixedShare <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                    position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'relative'</span><span style="color: #339933;">,</span>
                    left<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
                    top<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
                    marginLeft<span style="color: #339933;">:</span> pullX
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">resize</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: #003366; font-weight: bold;">var</span> windowW <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> pulledOutside <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'margin-left'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> pullX<span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> windowW <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">1137</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>pulledOutside <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        $postShare.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginLeft<span style="color: #339933;">:</span> pullX <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #006600; font-style: italic;">//Crear barra Vertical</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_chicos'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_grandes'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border-width'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'1px'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'auto'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
							marginRight<span style="color: #339933;">:</span> <span style="color: #CC0000;">7</span><span style="color: #339933;">,</span>
							marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span>
						<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #009900;">&#125;</span>
                    $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scroll.positionShare'</span><span style="color: #339933;">,</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>
                            positionShareScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
                        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
                    positionShareScroll<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;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> pulledOutside <span style="color: #339933;">||</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    $postShare
                        .<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'relative'</span><span style="color: #339933;">,</span> left<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> top<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>marginLeft<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
					<span style="color: #006600; font-style: italic;">//Crear barra Horizontal</span>
					<span style="color: #006600; font-style: italic;">//$postShare.append(smallButtons);</span>
					<span style="color: #006600; font-style: italic;">//smallButtons = '';</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_grandes'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.botones_chicos'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
						marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span><span style="color: #339933;">,</span>
						marginBottom<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span>
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$postShare.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border-width'</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
					<span style="color: #003366; font-weight: bold;">var</span> content_width <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.main'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>content_width <span style="color: #339933;">==</span> <span style="color: #3366CC;">'undefined'</span><span style="color: #009900;">&#41;</span> content_width <span style="color: #339933;">=</span> <span style="color: #CC0000;">600</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> $postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span>$postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #003366; font-weight: bold;">var</span> block_width <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
						$postShare.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_width'</span><span style="color: #339933;">,</span> $postShare.<span style="color: #660066;">width</span><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: #003366; font-weight: bold;">var</span> block_width <span style="color: #339933;">=</span> $postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
					$postShare.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span>content_width<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #003366; font-weight: bold;">var</span> add_padding <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>content_width <span style="color: #339933;">-</span> block_width<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #009900;">&#40;</span>$postShare.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton_small'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">*</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">4</span><span style="color: #339933;">;</span>
&nbsp;
					<span style="color: #006600; font-style: italic;">//var add_padding = (642 - (88 + 120 * (buttons_count - 2) )) / (buttons_count * 2);</span>
					<span style="color: #006600; font-style: italic;">//var add_padding = ( ( 642 - ( 88 * buttons_count ) ) / (buttons_count * 2) ) + 5;</span>
					$postShare.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.s_boton_small'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
						paddingLeft<span style="color: #339933;">:</span> add_padding<span style="color: #339933;">,</span>
						paddingRight<span style="color: #339933;">:</span> add_padding
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
                    $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scrollBound'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
                        .<span style="color: #660066;">unbind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'scroll.positionShare'</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">resize</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;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p
style="text-align: left;">Solamente dos cosas debemos tener presentes, la primera es definir en la linea 4 cual sera nuestro valor de referencia para el comportamiento de la barra, es decir el ancho; generalmente corresponde al <em><code>container</code> </em>en el que se encuentra el post. En mi caso he utilizado la clase <em><code>main</code></em>, que se vuelve a utilizar en la linea <strong>76 </strong>y en la <strong>77 </strong>con su ancho.</p><p
style="text-align: left;">Luego procederemos a adaptar la distancia a la que se posicionara la barra cuando nos desplacemos, al utilizar la posición <em><code>fixed</code></em>, el valor difiere de los 80px originales. Este ejemplo muestra la barra posicionada a unos -540px (linea 18). Este valor tenes que ajustarlo vos ya que depende de tu diseño. Una aproximación a este numero responde a: <strong>Ancho del container (en este ejemplo: main) &#8211;  80px</strong></p><p
style="text-align: left;">Una vez presentadas todas las partes solo tenemos que integrarlas en nuestro Site, dependiendo de la plataforma con lo que estemos trabajando pude variar algún detalle, pero este código sirve tanto para Wordpress como para cualquier otro <strong>CMS</strong>.</p><h2>Replica de Mashable Simple</h2><p
style="text-align: left;">A diferencia de la opción anterior esta barra es <strong>compatible </strong>con <strong>IE6</strong>, pero no podrá ser apreciada en resoluciones menores. El <em>scroll </em>para este caso es una animación del <em><code>padding</code> </em>que produce un simpático efecto final.</p><h3><a
href="http://eliseos.net/test/easy/demo2.html">Demo Replica de Mashable</a></h3><h2>HTML</h2><p
style="text-align: left;">Es casi el mismo <em>markup </em>de la primera opción pero sin incluir los botones pequeños ya que no son necesarios.</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;social_bar_wrapper&quot;</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;social_bar&quot;</span>&gt;</span>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;botones_contenedor&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gbuzz s_boton&quot;</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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://button.njuice.com/buzz.js&quot;</span>&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: #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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tweetmeme s_boton&quot;</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>
tweetmeme_source = 'baires';
tweetmeme_url = '<span style="color: #009900;">&lt;?php the_permalink<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>';
&nbsp;
<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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tweetmeme.com/i/scripts/button.js&quot;</span>&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: #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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;faceboook s_boton&quot;</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://widgets.fbshare.me/files/fbshare.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: #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: #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>
				<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">target</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feedburner.google.com/fb/a/mailverify?uri=EliseosNet&amp;amp;loc=es_ES&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social_sprites&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_email&quot;</span>&gt;</span>email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
				<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;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_boton&quot;</span>&gt;</span>
					<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;a2a_dd social_sprites&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_share&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addtoany.com/share_save?linkname=My%20Sitio&amp;amp;linkurl=mi-url.com&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s_sharethis&quot;</span>&gt;</span>Share<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&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>
a2a_linkname=&quot;My Sitio&quot;;a2a_linkurl=&quot;mi-url.com&quot;;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&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> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://static.addtoany.com/menu/page.js&quot;</span>&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: #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>
		<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
style="text-align: left;">También se ha añadido un <em><code>wrapper</code></em>a la barra para poder controlar el <em><code>margin</code></em>.</p><h2>CSS</h2><p
style="text-align: left;">Es exactamente el mismo de la primera opción, con el adicional de <em><code>wrapper</code> </em> y sin los botones pequeños.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#social_bar_wrapper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">none</span> </span>repeat <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#DDDDDD</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;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-80px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* // La distacia de la barra que queremos tener en relacion al post */</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* // Formato de los Botones grandes */</span>
<span style="color: #6666ff;">.s_boton</span> <span style="color: #00AA00;">&#123;</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;">clear</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;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* //Iconos para los links de Share y Email */</span>
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-32px</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: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_email</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">-50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</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>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">4px</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>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#s_share</span><span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">-14px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4c545b</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>
&nbsp;
<span style="color: #cc00cc;">#social_bar</span> a<span style="color: #6666ff;">.social_sprites</span> <span style="color: #00AA00;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</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/social_sprites.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E8E8E8</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#989898</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span>/<span style="color: #cc66cc;">1.625</span> verdana<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</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;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">44px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">Quizás lo único que tengas que modificar es la distancia a la que se encuentra la barra con respecto del contenido, para este ejemplo es -80px (dentro de <em><code>#social_bar</code></em>). No te excedas en mas de <strong>-100px </strong>o no sera visible en varias resoluciones.</p><h2>jQuery</h2><p
style="text-align: left;">Como te lo adelante anteriormente solamente animamos el <em><code>padding</code> </em>(gracias <a
href="http://css-tricks.com/scrollfollow-sidebar/">CSS Tricks</a>), no es necesario modificar este código a no ser que sepas lo que estas haciendo.</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
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;">	$<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;
    <span style="color: #003366; font-weight: bold;">var</span> $sidebar   <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#social_bar&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        $window    <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        offset     <span style="color: #339933;">=</span> $sidebar.<span style="color: #660066;">offset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        topPadding <span style="color: #339933;">=</span> <span style="color: #CC0000;">15</span><span style="color: #339933;">;</span>
&nbsp;
    $window.<span style="color: #000066;">scroll</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: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$window.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> offset.<span style="color: #660066;">top</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $sidebar.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                marginTop<span style="color: #339933;">:</span> $window.<span style="color: #660066;">scrollTop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> offset.<span style="color: #660066;">top</span> <span style="color: #339933;">+</span> topPadding
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
            $sidebar.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                marginTop<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</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
style="text-align: left;">Por ultimo solo resta presentar todo en nuestro diseño y tendremos otra alternativa a a barra de Mashable.</p><p
style="text-align: left;">Cualquier duda que tengas, hacémelo saber.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/destacadas/crea-barra-compartir-entradas-estilo-mashable/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Esquinas redondeadas en todos los navegadores</title><link>http://eliseos.net/css/esquinas-redondeadas-todos-navegadores/</link> <comments>http://eliseos.net/css/esquinas-redondeadas-todos-navegadores/#comments</comments> <pubDate>Thu, 11 Mar 2010 22:55:55 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2756</guid> <description><![CDATA[Una de los mayores problemas a la hora de diseñar teniendo en la mira a los standards de estos tiempos es hacer que Internet Explorer se comporte como un navegador decente y nos permita sacar el máximo provecho a las nuevas tecnologías]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Una de los mayores problemas a la hora de diseñar teniendo en la mira a los standards de estos tiempos es hacer que Internet Explorer se comporte como un navegador decente y nos permita sacar el máximo provecho a las nuevas tecnologías, para este caso <strong>CSS3</strong> y sus nuevas posibilidades. Hoy vamos a ver como lograr redondear esquinas en todos los navegadores, incluyendo a Internet Explorer 8/7 y la tan temida versión 6.</p><p><span
id="more-2756"></span></p><p
style="text-align: left;">Para reazlizar esta tarea, solo vamos a necesitar un pequeño archivo HTC, que en definitiva es un archivo que guarda un conjunto de <em>scripts</em> exclusivamente para Internet Explorer. La forma correcta de lograr esquinas redondeadas en todos los navegadores sera:</p><h2>Cross Browser border-radius</h2><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.mi_selector</span> <span style="color: #00AA00;">&#123;</span> 
  -moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>  <span style="color: #808080; font-style: italic;">/* Firefox */</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Safari y Crhome */</span>
  -khtml-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Browser en Linux */</span>
  border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* CSS3  Standard */</span>
  behavior<span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>border-radius<span style="color: #6666ff;">.htc</span> standards <span style="color: #808080; font-style: italic;">/* Internet explorer */</span> <span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">Solo necesitas una copia del archivo <em><code>border-radius.htc</code></em> que se puede obtener <a
title="Rounded corner HTML elements using CSS3" href="http://code.google.com/p/curved-corner/">aquí</a>, y colocarlo en tu carpeta donde guardas la hoja de estilo. Con una simple linea extra en tu <strong>CSS</strong> ahora tendrás esquinas redondeadas en todos los navegadores.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/esquinas-redondeadas-todos-navegadores/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Speech bubbles con CSS solamente</title><link>http://eliseos.net/css/speech-bubbles-css-solamente/</link> <comments>http://eliseos.net/css/speech-bubbles-css-solamente/#comments</comments> <pubDate>Wed, 10 Mar 2010 01:02:32 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[CSS3]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2747</guid> <description><![CDATA[Nicolas Gallagher ha creado una serie de Speech bubbles solamente con CSS2.1 y condimentados con CSS3, logrando asi algo que solo se podría obtener mediante javascript]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="Pure CSS speech bubbles" href="http://nicolasgallagher.com/progressive-enhancement-pure-css-speech-bubbles/">Nicolas Gallagher</a> ha creado una serie de Speech bubbles solamente con <strong>CSS2.1</strong> y condimentados con <strong>CSS3</strong>, logrando así algo que solo se podria obtener mediante <strong>javascript</strong>. Usando un HTML semántico y cero imágenes se pueden lograr resultados como el siguiente:</p><p><span
id="more-2747"></span></p><p
style="text-align: center;"><a
href="http://nicolasgallagher.com/progressive-enhancement-pure-css-speech-bubbles/"><img
class="alignnone size-full wp-image-2748" title="CSS Speech bubbles" src="http://eliseos.net/wp-content/uploads/2010/03/CSS-Speech-bubbles.jpg" alt="CSS Speech bubbles Speech bubbles con CSS solamente" width="500" height="250" /></a></p><p
style="text-align: left;">El HTML del que les hablaba es muy simple, solamente podemos escribir <em><code>&lt;div&gt;Content&lt;/div&gt;</code></em> o <em><code>&lt;p&gt;Content&lt;/p&gt;</code></em> y la magia de CSS se hará cargo de ahí en mas.</p><p
style="text-align: left;">La mención honorifica se la llevan los <strong>pseudo-elements</strong> <em><code>:before</code></em> y/o <em><code>:after</code></em> que crearan nuestras formas (Speech bubbles) y las propiedades <em><code>border-radius</code></em> y <em><code>transform</code></em> son los condimentos.</p><p
style="text-align: left;">Si nos ponemos a trabajar con los <strong>pseudo-elements</strong> y las propiedades arriba mencionadas podemos lograr resultado muy interesantes.</p><p
style="text-align: left;">Un ejemplo de esto, puede ser este CSS donde se creara un Speech Bubble con un triangulo isoceles en la parte inferior</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Bubble con triangulo isósceles
------------------------------------------ */</span>
&nbsp;
<span style="color: #6666ff;">.triangle-isosceles</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">1em</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f3961c</span><span style="color: #00AA00;">;</span>
&nbsp;
   <span style="color: #808080; font-style: italic;">/* css3 */</span>
   -moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   -webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9d835</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f3961c</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9d835</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f3961c</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* crear triangulo */</span>
<span style="color: #6666ff;">.triangle-isosceles</span><span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\0</span>0a0&quot;</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* reduce the damage in FF3.0 */</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span>-<span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">-30px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f3961c</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">Dentro del demo podras observar el comportamiento y acceder a todo el CSS necesario para que puedas ver en detalle como funciona cada shape y así poder implementarlas o crear shapes propias.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/css/speech-bubbles-css-solamente/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>5 Nuevos plugins para Wordpress</title><link>http://eliseos.net/wordpress/5-nuevos-plugins-wordpress/</link> <comments>http://eliseos.net/wordpress/5-nuevos-plugins-wordpress/#comments</comments> <pubDate>Mon, 08 Mar 2010 23:23:24 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2742</guid> <description><![CDATA[El repositorio de Wordpress crece día a día y de eso no hay dudas. Diariamente nos encontramos con nuevos plugins que nos permiten extender las funcionalidades de Wordpress ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">El repositorio de Wordpress crece día a día y de eso no hay dudas. Diariamente nos encontramos con nuevos plugins que nos permiten extender las funcionalidades de Wordpress y facilitarnos el trabajo a la hora de trabajar con este magnifico <strong>CMS</strong>.</p><p><span
id="more-2742"></span></p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2744" title="5 Nuevos Plugins para Wordpress" src="http://eliseos.net/wp-content/uploads/2010/03/wp-plugin.jpg" alt="wp plugin 5 Nuevos plugins para Wordpress" width="500" height="250" /></p><h2><a
title="HiFi (Head Injection, Foot Injection)" href="http://wordpress.org/extend/plugins/hifi/">HiFi (Head Injection, Foot Injection)</a></h2><p
style="text-align: left;">Nos permite insertar <em>(injection</em>) porciones de código en el <em>Footer</em> y en <em>Header</em> de nuestro Theme, pero solamente cuando es necesario. Si estas escribiendo un tutorial y necesitas mostrar dentro de la entrada o pagina que trabaja como un demo online, muchas veces es necesario insertar <em>hojas de estilo</em> o algunas lineas de <em>javascript</em>.</p><p
style="text-align: left;">Este plugin crea un nuevo panel en nuestra entrada o pagina donde insertaremos esas porciones de código solo para el post pagina en cuestión.</p><h2><a
title="Hikari Titled Comments" href="http://wordpress.org/extend/plugins/hikari-title-comments/">Hikari Titled Comments</a></h2><p
style="text-align: left;">Como el titulo lo indica, nos ofrece la opción de permitirle a la persona que comenta en la entrada la chance de insertar un <strong>titulo</strong> a su comentario. Es una función que la podemos encontrar en <strong>Drupal</strong>, pero la extrañamos en <strong>Wordpress</strong>.</p><h2><a
title="Facebook Photo Fetcher" href="http://wordpress.org/extend/plugins/facebook-photo-fetcher/">Facebook Photo Fetcher</a></h2><p
style="text-align: left;">Una forma simple de insertar y crear galerías de imágenes en Wordpress usando un <strong>álbum</strong> de Facebook. Una vez activado solo necesitamos darle los permisos adecuados al plugin para conectarse a Facebook y seleccionaremos el Album que queremos mostrar en Wordpress. Este plugin trabaja con <em>shortcodes</em> a la hora de crear las galerías, por lo que su uso es de lo más simple.</p><h2><a
title="RSS Just Better" href="http://wordpress.org/extend/plugins/rss-just-better/">RSS Just Better</a></h2><p
style="text-align: left;">Ya he hablado aquí en Eliseos de como insertar cualquier RSS Feed en Wordpress, pero este plugin lo hace todavía mucho mas simple. Nos permite controlar cuantos items se mostraran, incluir la fecha de publicacion y la introducción. Funciona a modo de <em>widget</em> para incluir en el Sidebar o como <em>shortcode</em>, para incluirlo en las entradas o paginas.</p><h2><a
title="Facebook Share Statistics" href="http://wordpress.org/extend/plugins/facebook-share-statistics/">Facebook Share Statistics</a></h2><p
style="text-align: left;">Nos muestra en nuestro <strong>CP</strong> estadísticas y gráficos relativas a como se socializa nuestro Sitio en Facebook. Podemos ver, por ejemplo, la cantidad de usuarios que compartieron la entrada, la cantidad de &#8220;<em>like</em>s&#8221; que recibió un post, y muchos mas.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/5-nuevos-plugins-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Crea un Slider vistoso con jqFancyTransitions</title><link>http://eliseos.net/jquery/crea-slider-vistoso-jqfancytransitions/</link> <comments>http://eliseos.net/jquery/crea-slider-vistoso-jqfancytransitions/#comments</comments> <pubDate>Thu, 04 Mar 2010 22:58:41 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[slider]]></category> <category><![CDATA[slideshow]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2738</guid> <description><![CDATA[jqFancyTransitions es un Slideshow potenciado por jQuery que te permitirá crear Slideshows con la particularidad de añadir destacados efectos a cada transición, de ahi su nombre]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="jqFancyTransitions  slideshow with strip effects" href="http://workshop.rs/projects/jqfancytransitions/">jqFancyTransitions</a> es un Slideshow potenciado por <strong>jQuery</strong> que te permitirá crear <strong>Slideshows</strong> con la particularidad de añadir destacados efectos a cada transición, de ahí su nombre. La idea base de jqFancyTransitions es lograr el efecto cortina en las transiciones, junto con algunos efectos adicionales y la posibilidad de crear los nuestros.</p><p
style="text-align: center;"><a
href="http://workshop.rs/projects/jqfancytransitions/"><img
class="alignnone size-full wp-image-2739" title="jqFancyTransitions  slideshow with strip effects" src="http://eliseos.net/wp-content/uploads/2010/03/jqFancyTransitions.jpg" alt="jqFancyTransitions Crea un Slider vistoso con jqFancyTransitions " width="500" height="250" /></a></p><p
style="text-align: left;">Su funcionamiento es de lo mas simple, solo debemos crear un <em>container</em> con algunas imágenes dentro:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;div id='slideshowHolder'&gt;
&lt;img src='img1.jpg' alt='img1' /&gt;
&lt;img src='img2.jpg' alt='img2' /&gt;
&lt;img src='img3.jpg' alt='img3' /&gt;
&lt;/div&gt;</pre></div></div><p
style="text-align: left;">Y luego iniciar el plugin:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#slideshowHolder'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jqFancyTransitions</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> width<span style="color: #339933;">:</span> <span style="color: #CC0000;">400</span><span style="color: #339933;">,</span> height<span style="color: #339933;">:</span> <span style="color: #CC0000;">300</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Esta es la configuración por defecto, donde solo indicamos el ancho y el alto del Slider, si lo necesitáramos (seguramente) podemos indicar que efecto necesitamos, delay en las transiciones, etc.</p><p
style="text-align: left;">jqFancyTransitions cuenta con un demo online, donde podrás observar todos los efecto que comente anteriormente junto con la <a
title="jqFancyTransitions Docs" href="http://workshop.rs/2009/12/image-gallery-with-fancy-transitions-effects/">documentación necesaria</a>.Y por ultimo, este plugin prueba ser compatible con Safari 2+, Internet Explorer 6+, Firefox 2+, Google Chrome 3+, Opera 9+.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/jquery/crea-slider-vistoso-jqfancytransitions/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Obtene Screenshots de cualquier sitio en Wordpress</title><link>http://eliseos.net/wordpress/obtene-screenshots-cualquier-sitio-wordpress/</link> <comments>http://eliseos.net/wordpress/obtene-screenshots-cualquier-sitio-wordpress/#comments</comments> <pubDate>Wed, 03 Mar 2010 20:41:51 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[imagenes]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2730</guid> <description><![CDATA[Hoy a través de Wpbeginner me entero de la existencia del plugin BM Shots, el cual nos permite realizar screenshots de un sitio en concreto con el API de Wordpress]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Hoy a través de <a
title="WP  Beginner" href="http://www.wpbeginner.com/plugins/an-automated-way-of-taking-website-screenshot-in-wordpress/">Wpbeginner </a>me entero de la existencia del plugin <a
title="BM Shots" href="http://www.binarymoon.co.uk/projects/bm-shots-automated-screenshots-website/"><strong>BM Shots</strong></a>, el cual nos permite realizar screenshots de un sitio en concreto con el API de Wordpress. Existen varios servicios que nos brindan un servicio parecido, pero que mejor que ser fiel a Wordpress?</p><p
style="text-align: left;">Un ejemplo claro de uso se puede ver en <a
title="WPvote" href="http://wpvote.com"><strong>WPvote</strong></a>, donde cada articulo esta acompañado de su respectiva screenshot.</p><p
style="text-align: left;">A modo de ejemplo del funcionamiento del API, esta es una imagen generada para que aprecien el resultado final.</p><p
style="text-align: center;"><img
src="http://s.wordpress.com/mshots/v1/http%3A%2F%2Feliseos.net%2F?w=550" alt="Eliseos.net | Wordpress. jQuery and Coffee" title="Eliseos.net | Wordpress. jQuery and Coffee" /></p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">http://s.wordpress.com/mshots/v1/http%3A%2F%2Feliseos.net%2F?w=550</pre></div></div></p><h2>Uso</h2><p
style="text-align: left;">Su utilización es muy sencilla. y depende de los planes que tengas en mente, básicamente podes mostrar las capturas por medio de <em><code>shortcodes</code></em>o por medio de una <em><code>función</code></em>, directamente en nuestro Theme.</p><h2>Shortcode</h2><p
style="text-align: left;">Esta puede ser la opción fácil mas simple de implementar ya que no es necesario editar nuestro Theme. Solo sigue este formato:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">[browsershot url=&quot;http://eliseos.net&quot; width=&quot;550&quot;]</pre></div></div><p
style="text-align: left;">El valor de la <strong>URL </strong>representa el sitio en el que vamos a realizar la captura y <strong>width </strong>el ancho deseado. Casi no tenemos restricciones en nuestro ancho de la captura, por lo que podrás integrar la imagen a tu diseño sin problemas.</p><h2>PHP Function</h2><p
style="text-align: left;">Dentro de nuestro Theme, llamaremos a la función <em><code>bm_mshot</code></em>:</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: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://eliseos.net/'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$width</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">550</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> bm_mshot <span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <span style="color: #000088;">$width</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
style="text-align: left;">Los valores son los mismos que para el shortcode, por lo que no encontraras mayores dificultades.</p><p
style="text-align: left;">Por ultimo el autor nos señala que es las imágenes no se generan instantáneamente, sino que tardan unos segundos. En algunos sitios ese tiempo es mayor y en otros menor.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/obtene-screenshots-cualquier-sitio-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Utiliza el tag &lt;video&gt; en todos los navegadores</title><link>http://eliseos.net/general/utiliza-tag-video-todos-navegadores/</link> <comments>http://eliseos.net/general/utiliza-tag-video-todos-navegadores/#comments</comments> <pubDate>Mon, 01 Mar 2010 22:56:21 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[jQuery]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2713</guid> <description><![CDATA[Con html5media lograremos poder utilizar el nuevo tag &#60;video&#62; (HTML5) para poder reproducir videos en la mayoría de los navegadores que no soportan dicho tag]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Con <a
title="html5media" href="http://code.google.com/p/html5media/">html5media </a>lograremos poder utilizar el nuevo tag <em>&lt;video&gt;</em> (HTML5) para poder reproducir videos en la mayoría de los navegadores que no soportan dicho tag.</p><p
style="text-align: center;"><a
href="http://code.google.com/p/html5media/"><img
src="http://eliseos.net/wp-content/uploads/2010/03/html5media.jpg" alt="html5media Utiliza el tag &lt;video&gt; en todos los navegadores" title="html5media" width="500" height="250" class="alignnone size-full wp-image-2715" /></a></p><p
style="text-align: left;">Si el visitante utiliza un navegador no soportado para el tag <em>&lt;video&gt;</em>, el plugin reemplazara el tag por el reproductor <a
title="Flowplayer" href="http://flowplayer.org/">Flowplayer</a>, logrando así una consistencia en todos los navegadores.</p><p
style="text-align: left;">Este plugin soporta los formatos <strong>MP4</strong>, utilizando el codec <em>h.264 </em>y el <strong>OGV </strong>a través del codec <em>Theora</em>. Como si fuera poco, en html5media disponemos una serie de controles para tomar control sobre el video; como ser:</p><ul><li>Control: Posibilidad de mostrar los botones (controles) del reproductor</li><li>Autobuffer: Comenzar a cargar el video automáticamente</li><li>Autoplay: Reproducir el video automáticamente</li><li>Loop: Reproducir el video constantemente</li><li>Splash image: añadir una imagen a modo de introducción el nuestro reproductor.</li></ul><p
style="text-align: left;">Para utilizar este maravilloso plugin, solo debemos realizar el llamado dentro de nuestro header:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://html5media.googlecode.com/svn/trunk/src/jquery.html5media.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div><p
style="text-align: left;">Y seguir la siguiente sintaxis:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;video src=&quot;video.mp4&quot; width=&quot;320&quot; height=&quot;240&quot; controls autobuffer&gt;&lt;/video&gt;</pre></div></div><p
style="text-align: left;">Y si necesitáramos servir dos versiones del mismo video (Theora y h.254)</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;video class=&quot;video&quot; poster=&quot;cat.jpg&quot; width=&quot;352&quot; height=&quot;264&quot; controls autobuffer&gt;
    &lt;source src=&quot;cat.mp4&quot; type='video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;'&gt;
    &lt;source src=&quot;cat.ogv&quot; type='video/ogg; codecs=&quot;theora, vorbis&quot;'&gt;
&lt;/video&gt;</pre></div></div><p
style="text-align: left;">Por ultimo no te olvides que puedes<a
title="Demo html5media" href="http://static.etianen.com/html5media/"> visualizar un demo</a> del funcionamiento de este plugin.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/general/utiliza-tag-video-todos-navegadores/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Crear un the_excerpt() personalizado en Wordpress</title><link>http://eliseos.net/wordpress/crear-the_excerpt-personalizado-wordpress/</link> <comments>http://eliseos.net/wordpress/crear-the_excerpt-personalizado-wordpress/#comments</comments> <pubDate>Fri, 26 Feb 2010 01:42:14 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2706</guid> <description><![CDATA[Trabajando en Wordpress, una de las cuestiones que mas resulta tediosa es no contar con las herramientas necesario para poder personalizar el the_excerpt() ese tag que solo nos muestra un adelanto de la entrada en el front]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Trabajando en Wordpress, una de las cosas que mas resulta tedioso es no contar con las herramientas necesarias para poder personalizar <em><code>the_excerpt()</code></em> ese tag que solo nos muestra un adelanto de la entrada en el front, el archivo y en las categorías. Siempre tenemos que recurrir a pequeños hacks, para personalizarlo a nuestro gusto.</p><p
style="text-align: left;">Hoy leyendo en <a
href="http://www.milienzo.com/2007/09/02/improving-wordpress-the_excerpt-template-tag/">Milienzo</a> encontré un hack que me pareció correcto de reproducir ya que podemos lograr una personalización del tag <em><code>the_excerpt()</code></em> casi perfecta.</p><h2>Problemas con the_excerpt()</h2><p
style="text-align: left;">Solo se muestran las primeras 55 palabras, no dándonos la posibilidad de acomodar ese numero. En cuanto el al formato, el tag limpia todos los tags HTML, por lo que no se muestran imágenes ni formato en los párrafos. Y por ultimo, en cuanto hablamos de javascript tenemos un gran problema ya que <em><code>the_excerpt()</code></em> no lo filtra, lo que trae como aparejado posibles problemas en el formato y vulnerabilidades.</p><p
style="text-align: left;">Lo que en milienzo nos plantean, es crear una nueva función para solucionar los problemas mencionados mas arriba.</p><h2>Comencemos</h2><p
style="text-align: left;">En tu archivo <em><code>functions.php</code></em> introduciremos esta nueva función</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> improved_trim_excerpt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</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;">$post</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$text</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> get_the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">']]&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">']]&amp;gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@&lt;script[^&gt;]*?&gt;.*?&lt;/script&gt;@si'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$excerpt_length</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$words</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #000088;">$excerpt_length</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span> <span style="color: #000088;">$excerpt_length</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #990000;">array_pop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			ray_push<span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</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: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$text</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div><p
style="text-align: left;">Al no estar &#8220;tocando&#8221; no los archivos del core de Wordpress podremos reproducir esta función en todos los Themes que necesitemos.</p><h2>Controlar el tamaño en the_excerpt()</h2><p
style="text-align: left;">En lugar de mostrar solo las primeras 55 palabras, digamos que solo mostraremos las primeras 80.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$excerpt_length</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Para aumentar o disminuir las palabras, solo resta reemplazar el <strong>80</strong> por el numero deseado.</p><h2>Incluir tags HTML</h2><p
style="text-align: left;">Como lo mencione antes, al no poder contar con la posibilidad de mostrar dichos tags podemos encontrar problemas a la hora de dar formato</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">En este caso estamos incluyendo siempre el tag <em><code>&lt;p&gt;</code></em> Si lo necesitáramos podríamos también incluir el tag <em><code>&lt;img&gt;</code></em> o los que deseemos. Solo tenemos que mencionar los tags uno al lado de otro.</p><h2>Remover todo el código javascript que no necesitamos</h2><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@&lt;script[^&gt;]*?&gt;.*?&lt;/script&gt;@si'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Esta simple linea, nos ahorrara futuros dolores de cabeza.</p><p
style="text-align: left;">Ahora solo resta indicar nuestro nuevo filtro, otra vez dentro de <em><code>functions.php</code></em> insertamos:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">remove_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'get_the_excerpt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_trim_excerpt'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'get_the_excerpt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'improved_trim_excerpt'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><h2>Implementación</h2><p
style="text-align: left;">Solo nos queda integrar este nuevo <em><code>the_excerpt()</code></em> mejorado dentro de nuestro Theme reemplazando el <em><code>the_excerpt()</code></em> original por nuestro el nuevo y flamante tag:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> improved_trim_excerpt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></div></div><p
style="text-align: left;">Como lo notaras el hack es bastante flexible y podemos lograr buenos resultado con pocas lineas de código.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/crear-the_excerpt-personalizado-wordpress/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>MultiEdit: Editar paginas en Wordpress dinamicamente</title><link>http://eliseos.net/wordpress/multiedit-editar-paginas-wordpress-dinamicamente/</link> <comments>http://eliseos.net/wordpress/multiedit-editar-paginas-wordpress-dinamicamente/#comments</comments> <pubDate>Tue, 23 Feb 2010 23:13:12 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2702</guid> <description><![CDATA[Seguramente alguna vez te ha sucedido que cuentas con una pagina en Wordpress la cual editas regularmente.Dentro de esta pagina tenemos el contenido que genera el loop, una contenido estático a la derecha y otro contenido estático al pie]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Seguramente alguna vez te ha sucedido que cuentas con una pagina en Wordpress la cual editas regularmente. Dentro de esta pagina tenemos el contenido que genera el <strong>loop</strong>, una contenido estático a la derecha y otro contenido estático al pie.</p><p
style="text-align: left;">A la hora de editar dicha pagina, no tenemos muchas mas opciones que <em>&#8220;meter mano&#8221;</em> al código directamente, pero que tal si pudiéramos editar cada segmento de la pagina como editamos las entradas, es decir con el editor <a
title="WYSIWYG TinyMCE" href="tinymce.moxiecode.com">WYSIWYG TinyMCE</a>?</p><p
style="text-align: left;">Aquí es donde entra a jugar el <a
title="The Page.ly MultiEdit Plugin" href="http://blog.page.ly/multiedit-plugin/">Plugin MultiEdit</a>, el cual <strong>creara regiones</strong> editables dentro de nuestra pagina, para poder trabajar con TinyMCE como si estuviéramos trabajando con una entrada normal.</p><p
style="text-align: left;">MultiEdit creara 4 pestañas donde podremos crear y editar el contenido que necesitemos en 4 regiones de la pagina: El contenido normal, al pie, a la izquierda y a la derecha.</p><p
style="text-align: left;">Cada región almacena el contenido creado como si se tratara de un <em><code>custom field</code></em>, por ende si borramos o desactivamos el plugin nuestro contenido no se perdería.</p><h2>Instrucciones</h2><p
style="text-align: left;">Necesitas una copia de <a
title="The Page.ly MultiEdit Plugin" href="http://blog.page.ly/multiedit-plugin/">Plugin MultiEdit</a>, instala el plugin y activalo.</p><p
style="text-align: left;">Debemos crear una nueva Plantilla personalizada (<em><code>page template</code></em>) con el siguiente formato:</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;">/*
Template Name: MiNombre
MultiEdit: Right, Bottom, Left
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p
style="text-align: left;"><em><code>Right, bottom, y left</code></em> son las zonas o bloques que se añadirían a la pagina.</p><p
style="text-align: left;">Dentro de la nueva plantilla solo necesitamos definir las zonas, para este ejemplo el contenido al pie.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;pie_de_la_pagina&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> multieditDisplay<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Bottom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div</pre></div></div><p
style="text-align: left;">Por ultimo a la hora de crear o editar una pagina utilizaremos la plantilla que se creo anteriormente y podremos ver nuestro nuevo panel de administración para la pagina.</p><p
style="text-align: center;"><a
href="http://blog.page.ly/multiedit-plugin/"><img
src="http://eliseos.net/wp-content/uploads/2010/02/MultiEdit-Panel.jpg" alt="MultiEdit Panel MultiEdit: Editar paginas en Wordpress dinamicamente" title="MultiEdit Panel" width="500" height="250" class="alignnone size-full wp-image-2703" /></a></p><h2>Consideraciones finales</h2><p
style="text-align: left;">Pareciera ser un proceso un tanto engorroso, pero, como lo mencione al principio de esta forma podremos ahorrarnos un tiempo considerable a la hora de trabajar con una pagina que editamos constantemente.</p><p
style="text-align: left;">Este plugin solo trabaja correctamente dentro del editor visual, y no hace magia; por lo que el estilo via CSS es requerido para lograr una buena presentación</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/multiedit-editar-paginas-wordpress-dinamicamente/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>YoxView: Una alternativa para Lightbox</title><link>http://eliseos.net/jquery/yoxview-alternativa-para-lightbox/</link> <comments>http://eliseos.net/jquery/yoxview-alternativa-para-lightbox/#comments</comments> <pubDate>Mon, 22 Feb 2010 22:44:04 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Lightbox]]></category> <category><![CDATA[slideshow]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2698</guid> <description><![CDATA[YoxView es otro clon del ya conocido Lightbox, con la salvedad de estar potenciado por jQuery. A diferencia de otros clones este lightbox cuanta con algunas opciones que lo hacen una alternativa mas que interesante]]></description> <content:encoded><![CDATA[<p
style="text-align: left;"><a
title="YoxView jQuery image viewer plugin" href="http://www.yoxigen.com/yoxview/Default.aspx">YoxView</a> es otro clon del ya conocido Lightbox, con la salvedad de estar potenciado por jQuery.</p><p
style="text-align: center;"><a
href="http://www.yoxigen.com/yoxview/Default.aspx"><img
class="alignnone size-full wp-image-2699" title="YoxView jQuery image viewer plugin" src="http://eliseos.net/wp-content/uploads/2010/02/YoxView.jpg" alt="YoxView YoxView: Una alternativa para Lightbox" width="500" height="250" /></a></p><p><span
id="more-2698"></span></p><p
style="text-align: left;">A diferencia de otros clones este lightbox cuanta con algunas opciones que lo hacen una alternativa mas que interesante:</p><ul><li>Las imágenes son se &#8220;auto-acomodan&#8221; a la resolución de pantalla</li><li>Se puede hacer un pre-cache de las imágenes, para mejorar la experiencia del usuario</li><li>Múltiples instancias de la misma imagen</li><li>Multilenguaje, el plugin cuenta con los packs de lenguajes para su traducción</li><li>Slideshow automático</li><li>Control de las transiciones a través del teclado</li><li>SEO amigable, los spiders almacenaran tanto los links de las thumbnails como los links de la imagen original</li></ul> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/jquery/yoxview-alternativa-para-lightbox/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: eliseos.net @ 2010-03-17 04:26:49 by W3 Total Cache -->