<?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>ilDavid</title>
	<atom:link href="http://www.ildavid.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ildavid.com</link>
	<description>la mia cassetta degli attrezzi</description>
	<lastBuildDate>Fri, 12 Aug 2011 15:26:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Nordica Ski</title>
		<link>http://www.ildavid.com/dblog/siti/2011-216/nordica-ski/</link>
		<comments>http://www.ildavid.com/dblog/siti/2011-216/nordica-ski/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 13:28:12 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[Siti]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=216</guid>
		<description><![CDATA[Based in Treviso, Italy under the Tecnica Group, the Nordica brand manufactures skis, ski boots, and accessories for skiing.]]></description>
			<content:encoded><![CDATA[<p>Based in Treviso, Italy under the Tecnica Group, the Nordica brand manufactures skis, ski boots, and accessories for skiing.</p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/siti/2011-216/nordica-ski/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/siti/2011-216/nordica-ski/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ThinkPink</title>
		<link>http://www.ildavid.com/dblog/siti/2011-209/thinkpink/</link>
		<comments>http://www.ildavid.com/dblog/siti/2011-209/thinkpink/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 13:20:53 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[Siti]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=209</guid>
		<description><![CDATA[Think Pink is an Italian casual wear brand offering apparel, accessories, shoes, and bags for men, women, and children.]]></description>
			<content:encoded><![CDATA[<p>Think Pink is an Italian casual wear brand offering apparel, accessories, shoes, and bags for men, women, and children.</p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/siti/2011-209/thinkpink/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/siti/2011-209/thinkpink/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autostrade.it</title>
		<link>http://www.ildavid.com/dblog/siti/2011-206/autostrade-it/</link>
		<comments>http://www.ildavid.com/dblog/siti/2011-206/autostrade-it/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 14:09:05 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[Siti]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=206</guid>
		<description><![CDATA[Autostrade per l&#8217;Italia is the leading European Concessionaire for toll motorway construction and management, and for related transport services.]]></description>
			<content:encoded><![CDATA[<p>Autostrade per l&#8217;Italia is the leading European Concessionaire for toll motorway construction and management, and for related transport services.</p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/siti/2011-206/autostrade-it/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/siti/2011-206/autostrade-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aggiungere l&#8217;attributo placeholder ai campi di testo</title>
		<link>http://www.ildavid.com/dblog/javascript/2010-190/aggiungere-lattributo-placeholder-ai-campi-di-testo/</link>
		<comments>http://www.ildavid.com/dblog/javascript/2010-190/aggiungere-lattributo-placeholder-ai-campi-di-testo/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 09:29:10 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[(x)html]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=190</guid>
		<description><![CDATA[Con l&#8217;avvento di html5 stanno aumentando i benefici per gli sviluppatori frontend che devono migliorare la user experience, ma si scontrando spesso con i limiti dei browser datati. Un piccolo aiuto viene dalla proposta del forum sull&#8217;html5 di utilizzare l&#8217;attributo placeholder nei campi di input testuali per suggerire all&#8217;utente cosa inserire. Questo attributo funziona per [...]]]></description>
			<content:encoded><![CDATA[<p>Con l&#8217;avvento di html5 stanno aumentando i benefici per gli sviluppatori frontend che devono migliorare la user experience, ma si scontrando spesso con i limiti dei browser datati.<br />
Un piccolo aiuto viene dalla proposta del forum sull&#8217;html5 di utilizzare l&#8217;attributo <em>placeholder</em> nei campi di input testuali per suggerire all&#8217;utente cosa inserire. Questo attributo funziona per il momento solo sui browser basati su Webkit (Safari e Chrome), ma è possibile clonarne la funzione con un po&#8217; di jQuery.<br />
Prima controlliamo se il browser supporta l&#8217;attributo placeholder (metodo usato su <a href="http://diveintohtml5.org/detect.html" target="_blank">Dive Into HTML5 </a>)</p>
<pre class="brush: jscript; title: ; notranslate">function supports_input_placeholder() {
  var i = document.createElement('input');
  return 'placeholder' in i;
}</pre>
<p>e poi la funzione vera e propria in jQuery</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function(){
if(!supports_input_placeholder()) {
        $('input[type=text]').each(function() {
            var plch = $(this).attr('placeholder');
            $(this).css('color','#999')
            .focus(function(){
                if($(this).val() == plch) {
                    $(this).val('').removeAttr('style');
                }
            })
            .blur(function(){
                if(!$(this).val()) {
                    $(this).css('color','#999').val(plch);
                }
            })
            .val(plch);
        })
    }
});</pre>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/javascript/2010-190/aggiungere-lattributo-placeholder-ai-campi-di-testo/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/javascript/2010-190/aggiungere-lattributo-placeholder-ai-campi-di-testo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cortivo</title>
		<link>http://www.ildavid.com/dblog/siti/2010-255/cortivo/</link>
		<comments>http://www.ildavid.com/dblog/siti/2010-255/cortivo/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 14:54:50 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[Siti]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=255</guid>
		<description><![CDATA[Istituto Cortivo is a leading training center for social assistance operators and animators. The site was developed by <a href="http://www.ildavid.com/link.php?u=www.cortivo.it" target="_blank">TSW search marketing</a>]]></description>
			<content:encoded><![CDATA[<p>Istituto Cortivo is a leading training center for social assistance operators and animators. The site was developed by <a href="http://www.ildavid.com/link.php?u=www.cortivo.it" target="_blank">TSW search marketing</a></p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/siti/2010-255/cortivo/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/siti/2010-255/cortivo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook per iPhone: usare Luoghi anche in Italia</title>
		<link>http://www.ildavid.com/dblog/iphone/2010-170/facebook-per-iphone-usare-luoghi-anche-in-italia/</link>
		<comments>http://www.ildavid.com/dblog/iphone/2010-170/facebook-per-iphone-usare-luoghi-anche-in-italia/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 09:20:09 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=170</guid>
		<description><![CDATA[Facebook ha lanciato da qualche settimana il servizio Luoghi (Places in lingua originale), e con l&#8217;ultima versione dell&#8217;app per iPhone è possibile geotaggarsi nei luoghi in cui ci si trova. Peccato che questa funzionalità esista solo per gli utenti che si trovano negli Stati Uniti: il controllo viene effettuato tramite l&#8217;indirizzo ip della connessione. Ma [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook ha lanciato da qualche settimana il servizio <em>Luoghi</em> (Places in lingua originale), e con l&#8217;ultima versione dell&#8217;app per iPhone è possibile <em>geotaggarsi</em> nei luoghi in cui ci si trova. Peccato che questa funzionalità esista solo per gli utenti che si trovano negli Stati Uniti: il controllo viene effettuato tramite l&#8217;indirizzo ip della connessione. Ma proprio perché questo è l&#8217;unico &#8220;ostacolo&#8221; per utilizzare questa feature, è facilmente raggirabile usando una VPN, come ad esempio <a href="http://hotspotshield.com/clientless/iphone/get_started.php">HotSpot Shield</a>. Seguite le istruzioni, attivate la VPN, accedete a Facebook, e Luoghi sarà utilizzabile.</p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/iphone/2010-170/facebook-per-iphone-usare-luoghi-anche-in-italia/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/iphone/2010-170/facebook-per-iphone-usare-luoghi-anche-in-italia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shortcode and custom quicktag</title>
		<link>http://www.ildavid.com/dblog/wordpress-2/2010-159/shortcode-and-custom-quicktag/</link>
		<comments>http://www.ildavid.com/dblog/wordpress-2/2010-159/shortcode-and-custom-quicktag/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 22:26:13 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=159</guid>
		<description><![CDATA[I was developing a WordPress custom theme for a client and I came across a small problem: the articles should have an introductory text other than the abstract (basic functionality of WP). In practice it was to include some text in a &#60;div&#62; with a specific class, and to avoid the customer having to remember [...]]]></description>
			<content:encoded><![CDATA[<p>I was developing a WordPress custom theme for a client and I came across a small problem: the articles should have an introductory text other than the abstract (basic functionality of WP). In practice it was to include some text in a <i>&lt;div&gt;</i> with a specific class, and to avoid the customer having to remember every time the correct syntax, I created a shortcode and a quicktag button on the bar of the text editor to allow him to do everything with a click.<br />
I recalled a post on the use of shortcode in WPrecipes, and so I went looking <a href="http://www.wprecipes.com/how-to-save-time-by-using-wordpress-shortcodes">for that article</a>, but then I stumbled on the problem of adding the quicktag button to the toolbar: all the results that I found was to edit a file of the basic installation of WordPress, and this would mean that an update of the platform would lose my changes. Until I found <a href="http://scribu.net/wordpress/right-way-to-add-custom-quicktags.html">this post</a> which explains how to add a button without changing the original file, with the creation of a plugin. But I prefer to have a theme related function, so that, once the theme is activated, everything would be available.<br />
So here is the code to get all this:</p>
<pre class="brush: php; title: ; notranslate">
function intro_shortcode( $atts, $content = null ) {
   return '&lt;div class=&quot;introtext&quot;&gt;' . $content . '&lt;/div&gt;';
}
add_shortcode('intro', 'intro_shortcode');

add_action('admin_print_scripts', 'my_custom_quicktags');
function my_custom_quicktags() {
	wp_enqueue_script(
		'my_custom_quicktags',
		get_bloginfo( 'template_url' ).'/js/custom-quicktags.js',
		array('quicktags')
	);
}
</pre>
<p>in the <em>functions.php</em> and the JavaScript is:</p>
<pre class="brush: jscript; title: ; notranslate">edButtons[edButtons.length] =
new edButton('ed_block'
,'intro'
,'[intro]'
,'[/intro]'
,''
);</pre>
<p>to put in <em>template_directory</em>/js/custom-quicktags.js</p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/wordpress-2/2010-159/shortcode-and-custom-quicktag/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/wordpress-2/2010-159/shortcode-and-custom-quicktag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Credit.fr</title>
		<link>http://www.ildavid.com/dblog/siti/2010-184/credit-fr/</link>
		<comments>http://www.ildavid.com/dblog/siti/2010-184/credit-fr/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 10:52:00 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[Siti]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=184</guid>
		<description><![CDATA[French site on loans advices. Developed with WordPress, custom plugins and widgets fo adv and sidebar management.]]></description>
			<content:encoded><![CDATA[<p>French site on loans advices. Developed with WordPress, custom plugins and widgets fo adv and sidebar management.</p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/siti/2010-184/credit-fr/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/siti/2010-184/credit-fr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get top level category of a post WP function</title>
		<link>http://www.ildavid.com/dblog/programmazione-web/2010-142/get-top-level-category-of-a-post-wp-function/</link>
		<comments>http://www.ildavid.com/dblog/programmazione-web/2010-142/get-top-level-category-of-a-post-wp-function/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 14:14:04 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[Programmazione Web]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=142</guid>
		<description><![CDATA[Let&#8217;s say you have a post under a subcategory and you want to show only the top level category that is assigned to the post, you can use this function:]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have a post under a subcategory and you want to show only the top level category that is assigned to the post, you can use this function:</p>
<pre class="brush: php; title: ; notranslate">
function GetTopLevelCategory() {
    $category = get_the_category();
    $parent = $category[0]-&gt;category_parent;
    while($parent &gt; 0) {
        $idlevel = &amp;get_category($parent);
        $cat = $idlevel-&gt;cat_ID;
        $parent = $idlevel-&gt;parent;
    }
    $name = get_the_category_by_ID($cat);
    $link = get_category_link($cat);
    print('&lt;a href=&quot;'.$link.'&quot;&gt;'.$name.'&lt;/a&gt;');
}
</pre>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/programmazione-web/2010-142/get-top-level-category-of-a-post-wp-function/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/programmazione-web/2010-142/get-top-level-category-of-a-post-wp-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mutui.com</title>
		<link>http://www.ildavid.com/dblog/siti/2010-181/mutui-com/</link>
		<comments>http://www.ildavid.com/dblog/siti/2010-181/mutui-com/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 10:39:33 +0000</pubDate>
		<dc:creator>ilDavid</dc:creator>
				<category><![CDATA[Siti]]></category>

		<guid isPermaLink="false">http://www.ildavid.com/?p=181</guid>
		<description><![CDATA[Loans resources website developed upon WordPress. Custom plugins and widgets for adv and sidebar management.]]></description>
			<content:encoded><![CDATA[<p>Loans resources website developed upon WordPress. Custom plugins and widgets for adv and sidebar management.</p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button_count" share_url="http://www.ildavid.com/dblog/siti/2010-181/mutui-com/"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ildavid.com/dblog/siti/2010-181/mutui-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

