<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2italianfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Il Blog di Rocco Agostino</title>
	
	<link>http://blog.roccoagostino.eu</link>
	<description>Il mio blog personale in cui si discute di libri,musica,scrittura,poesia,video,foto,news,attualità,informatica e tecnologia. Un "corner" da condividere con voi che commentate,criticate o apprezzate.</description>
	<lastBuildDate>Fri, 18 Nov 2011 05:48:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/roccoagostino" /><feedburner:info uri="roccoagostino" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://blog.roccoagostino.eu/?pushpress=hub" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nc-sa/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId>roccoagostino</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/content?lg=it&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://eur.i1.yimg.com/eur.yimg.com/i/it/my/mioya1.gif">Subscribe with Mio Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/roccoagostino" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Froccoagostino" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item>
		<title>[ebook] – Forum: come creare una community di successo.</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/KSW3M-_kqJw/</link>
		<comments>http://blog.roccoagostino.eu/2011/11/17/ebook-forum-come-creare-una-community-di-successo/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 23:45:23 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Ebooks]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[webmarket]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=980</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/classifica-ebook-320x3201-e1318165258220.jpg" width="32" height="32" alt="" title="Ebooks" /><br/>"Lanciare, Gestire, Promuovere un Forum non è un'operazione facile e sicuramente non s'impara leggendo questo ebook, ma sperimentando sulla propria pelle e sul proprio tempo.
Quest'ebook vuole essere solo una traccia, che voglio dare e lasciare a tutti quelli che hanno le idee confuse e cercano qualche spunto." (Giorgio Taverniti).]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/classifica-ebook-320x3201-e1318165258220.jpg" width="32" height="32" alt="" title="Ebooks" /><br/><p>Interessante ebook su come creare e gestire un forum.<br />
<br />
<a href="http://www.roccoagostino.eu/ebook/Strategie per far decollare un forum.pdf"><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/catablog/fullsize/cover_forum-e1321589269336.jpg" alt="" title="cover_forum" width="115" height="150" class="aligncenter size-full wp-image-976" /></a><br />
<br />
<em>&#8220;Lanciare, Gestire, Promuovere un Forum non è un&#8217;operazione facile e sicuramente non s&#8217;impara leggendo questo ebook, ma sperimentando sulla propria pelle e sul proprio tempo. Quest&#8217;ebook vuole essere solo una traccia, che voglio dare e lasciare a tutti quelli che hanno le idee confuse e cercano qualche spunto.&#8221; <a href="http://www.giorgiotaverniti.it/" target="_blank">(Giorgio Taverniti)</a>.</em></p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/KSW3M-_kqJw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/11/17/ebook-forum-come-creare-una-community-di-successo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/11/17/ebook-forum-come-creare-una-community-di-successo/</feedburner:origLink></item>
		<item>
		<title>Blogging Groover: Metodi per Incrementare Visite e Lettori</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/l50W6QrqXIk/</link>
		<comments>http://blog.roccoagostino.eu/2011/11/09/blogging-groover-metodi-per-incrementare-visite-e-lettori/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 23:08:27 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Podcast]]></category>
		<category><![CDATA[Tecniche di SEO]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[bloggin grover]]></category>
		<category><![CDATA[link popularity]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[sviluppo siti web]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=923</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/11/podcast2_p.jpg" width="38" height="38" alt="" title="Podcast" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/11/google_p.jpg" width="32" height="32" alt="" title="Tecniche di SEO" /><br/>Intervista a Paolo Console, che spiega in modo chiaro e semplice i punti essenziali per creare un blog interessante e le strategie per aumentare il link popularity e le visite.]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/11/podcast2_p.jpg" width="38" height="38" alt="" title="Podcast" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/11/google_p.jpg" width="32" height="32" alt="" title="Tecniche di SEO" /><br/><p>Intervista a <a title="Come creare una mole di Traffico incontrollabile verso la tua Attività Online" href="http://www.autostima.net/raccomanda/101-traffico/" target="_blank">Paolo Console</a>, che spiega in modo chiaro e semplice i punti essenziali per creare un blog interessante e le strategie per aumentare il link popularity e le visite.<br />
&nbsp;<br />
<br />
&nbsp;<br />
Fonte: <a title="Blogging Groover: Metodi per Incrementare Visite e Lettori" href="http://www.danielesalamina.it/blogging-groover-metodi-per-incrementare-visite-e-lettori" target="_blank">Blogging Groover: Metodi per Incrementare Visite e Lettori</a></p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/l50W6QrqXIk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/11/09/blogging-groover-metodi-per-incrementare-visite-e-lettori/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.danielesalamina.it/wp-content/uploads/podcast/paolo-console-podcast-danielesalamina.it.mp3" length="24370104" type="audio/mpeg" />
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/11/09/blogging-groover-metodi-per-incrementare-visite-e-lettori/</feedburner:origLink></item>
		<item>
		<title>Personalizzare i commenti nidificati in WordPress</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/nJkR8HJXzt4/</link>
		<comments>http://blog.roccoagostino.eu/2011/11/06/personalizzare-i-commenti-nidificati-in-wordpress/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 05:55:36 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[funzioni]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=910</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/>WordPress dalla versione 2.7 supporta il threading dei commenti, ovvero l’incapsulamento di tutte le discussioni di un articolo. Il tag wp_list_comments() si prende carico della gestione delle liste nidificate, delle classi associate ad ogni livello di commento, di predisporre i link giusti e di recuperare i contenuti dei commenti. Il problema nasce quando si vuole personalizzare la modalità di visualizzazione dei commenti. In questo caso è necessario utilizzare l'opzione di callback che viene fornito nella lista degli argomenti di wp_list_comments().]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/><p>WordPress dalla versione 2.7 supporta il threading dei commenti, ovvero l’incapsulamento di tutte le discussioni di un articolo. Il tag <em>wp_list_comments()</em> si prende carico della gestione delle liste nidificate, delle classi associate ad ogni livello di commento, di predisporre i link giusti e di recuperare i contenuti dei commenti. Il problema nasce quando si vuole personalizzare la modalità di visualizzazione dei commenti. In questo caso è necessario utilizzare l&#8217;opzione di callback che viene fornito nella lista degli argomenti di <em>wp_list_comments()</em>.</p>
<p><span id="more-910"></span></p>
<p>Un callback è un&#8217;istruzione per eseguire un&#8217;altra funzione definita. Nel nostro caso la useremo per personalizzare il codice HTML dei commenti, pur mantenendo la possibilità di utilizzare il threading.<br />
&nbsp;</p>
<h1>Definiamo il callback</h1>
<p>&nbsp;<br />
Per prima cosa definiamo la nostra funzione di callback ed inseriamola nel file <em>function.php</em> (ovviamente ricordatevi si fare una copia di backup).<br />
&nbsp;</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">function miotema_comment($comment, $args, $depth) {
	$GLOBALS['comment'] = $comment;
?&gt;
	&lt;li <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_class<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> id=&quot;li-comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;div id=&quot;comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
			&lt;div class=&quot;comment-author vcard&quot;&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_avatar<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_email</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">48</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;cite class=&quot;fn&quot;&gt;%s&lt;/cite&gt; &lt;span class=&quot;says&quot;&gt;says:&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_comment_author_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/div&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_approved</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				&lt;em&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Il tuo commento è in attesa di moderazione.'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/em&gt;
				&lt;br /&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			&lt;div class=&quot;comment-meta commentmetadata&quot;&gt;
				&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span> get_comment_link<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%1$s at %2$s'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_comment_date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>  get_comment_time<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_comment_link<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'(Edit)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'  '</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/div&gt;
                        &lt;/br&gt;&lt;/br&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_text<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;div class=&quot;reply&quot;&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_reply_link<span style="color: #009900;">&#40;</span><span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'depth'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$depth</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'max_depth'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'max_depth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/div&gt;
		&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;<br />
Vediamo quale funzione entra in gioco.<br />
&nbsp;<br />
<span style="color: #ff0000;"><em>comment_class()</em></span><br />
Questa funzione crea un elenco di classi come class = &#8220;classe1 class2 class3&#8243; per identificare i commenti pari/dispari, la profondità attuale dei commenti o altro.<br />
&nbsp;<br />
<span style="color: #ff0000;"><em>comment_ID()</em></span><br />
L&#8217;ID è il numero univoco del commento in corso.<br />
&nbsp;<br />
<span style="color: #ff0000;"><em>get_avatar()</em></span><br />
Utilizza l&#8217;e-mail per associare un gravatar. Primo parametro deve essere l&#8217;oggetto $ comment, il secondo è il formato per l&#8217;avatar, l&#8217;ultimo è l&#8217;URL di un avatar di default (deve essere URL completo).<br />
&nbsp;<br />
<span style="color: #ff0000;"><em>get_comment_link()</em></span><br />
Ottiene il link al commento in corso.<br />
&nbsp;<br />
<span style="color: #ff0000;">edit_comment_link()</span><br />
Ottiene il link per modificare il commento corrente.<br />
&nbsp;<br />
<span style="color: #ff0000;"><em>comment_text()</em></span><br />
Ottiene il testo del il commento in corso.<br />
&nbsp;<br />
<span style="color: #ff0000;"><em>comment_reply_link()</em></span><br />
Ottiene il link per rispondere al commento in corso.<br />
&nbsp;</p>
<h1>Agganciamo la nostra funzione</h1>
<p>&nbsp;<br />
Il layout che andiamo a ridefinire è quello generato proprio da <em>wp_list_comments()</em>. Per fare ciò è sufficiente fornire il parametro “callback=nome_funzione” per indicare a WordPress di ignorare il normale comportamento della funzione e utilizzare invece una nostra versione personalizzata.<br />
&nbsp;<br />
Nel nostro file comments.php andiamo dunque a modificare <em>wp_list_comments()</em> in questo modo:<br />
&nbsp;</p>

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

<p>&nbsp;<br />
Ovviamente è possibile utilizzare un foglio di stile CSS per rendere i commenti gradevoli da vedere:  per esempio io ho utilizzato <a title="CSS Triangle Arrow DIVs" href="http://www.dynamicdrive.com/style/csslibrary/item/css_triangle_arrow_divs/" target="_blank">questo metodo</a> e questo è il risultato:<br />
&nbsp;<br />
<a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/11/commenti.png"><img class="aligncenter size-full wp-image-911" title="commenti" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/11/commenti.png" alt="" width="500" height="522" /></a><br />
&nbsp;<br />
<strong>Tutto qui. Come sempre lasciate dei commenti o magari mandatemi una e-mail. Anche eventuali suggerimenti o consigli sono sempre graditi.</strong></p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/nJkR8HJXzt4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/11/06/personalizzare-i-commenti-nidificati-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/11/06/personalizzare-i-commenti-nidificati-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Thumbnails per WordPress.com Popular Posts</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/yi7pHtkmPsQ/</link>
		<comments>http://blog.roccoagostino.eu/2011/10/23/thumbnails-per-wordpress-com-popular-posts/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 17:49:58 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[In evidenza]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Sviluppo WEB]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[funzioni]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[WordPress.com Popular Posts]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=829</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/css_ico.JPG" width="32" height="32" alt="" title="Sviluppo WEB" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/>Modifica del plugin WordPress.com Popular Posts per inserire nella lista degli articoli più popolari, la thumbnail associata al post.]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/css_ico.JPG" width="32" height="32" alt="" title="Sviluppo WEB" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/><p>Per la visualizazione degli articoli più popolari uso il plugin <a href="http://wordpress.org/extend/plugins/wordpress-popular-posts/" target="_blank">WordPress.com Popular Post</a>. Tale plugin permette molte personalizzazioni, ma manca la possibilità di poter visualizzare le immagini riferite ai post. L&#8217;idea di fondo parte da <a href="http://www.geoffblog.com/2010/07/thumbnails-for-wordpresscom-popular.html" target="_blank">questo articolo</a> che spiega come aggiungere delle immagini all&#8217;elenco dei post con l&#8217;ausilio di uno script esterno. Senza utilizzare script esterni, possiamo, invece, sfruttare le <a href="http://blog.roccoagostino.eu/2011/10/06/modificare-il-tema-di-wordpress-parte-1-la-funzione-post-thumbnail/" target="_blank">nuove features</a> di WordPress 3.x.<br />
<span id="more-829"></span><br />
Nel momento in cui vogliamo il percorso dell&#8217;immagine associata al post il programma procederà in questo modo:</p>
<ul>
<li>cerca la thumbnail associata al post;</li>
<li>nel caso in cui il tema non supporti tale funzione o non si è inserita in fase di creazione del post, cerca la prima immagine nel post;</li>
<li>nel caso in cui il post non abbia neanche una immagine, me associa una di default.</li>
</ul>
<p>&nbsp;</p>
<p>Vediamo come:</p>
<p>&nbsp;</p>
<h1>1) Modifica del plugin</h1>
<p>&nbsp;</p>
<p>Andando in Plugin-&gt;Editor selezioniamo il plugin WPPP e quindi il file <em>wppp.php</em>.</p>
<p>&nbsp;</p>
<p>Per prima cosa troviamo il codice:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Replace format with data</span>
<span style="color: #000088;">$replace</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'%post_permalink%'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'%post_title%'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> esc_html<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>truncateText<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$instance</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title_length'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'%post_title_attribute%'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_title'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'%post_views%'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> number_format_i18n<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'views'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>e aggiungiamo la seguente riga:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'%post_thumb%'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>return_post_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>A questo punto dobbiamo inserire la funzione <em>return_post_image</em>.</p>
<p>&nbsp;</p>
<h1>2) Modifica del file function.php</h1>
<p>&nbsp;</p>
<p>Nel file <em>function.php</em> aggiungiamo:</p>
<p>&nbsp;</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
* Capture the first image from the post.
* @global object $post
* @global object $posts
* @return string
*/</span>
<span style="color: #000000; font-weight: bold;">function</span> theme_function_capture_first_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$p</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$firstImg</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$p</span><span style="color: #009900;">&#41;</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: #000088;">$posts</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$firstImg</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ob_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #990000;">ob_end_clean</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'//i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>post_content<span style="color: #339933;">,</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$firstImg</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'//i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$p</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>post_content<span style="color: #339933;">,</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$firstImg</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$firstImg</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// ritorna una immagine associata al post: thumb, prima immagine del post, default</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> return_post_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">,</span><span style="color: #000088;">$dim</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$imgpath</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dim</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$dim</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">60</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$imgpath</span><span style="color: #339933;">=</span>get_the_post_thumbnail<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dim</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;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imgpath</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$imgpath</span> <span style="color: #339933;">=</span> theme_function_capture_first_image<span style="color: #009900;">&#40;</span>get_post<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</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;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imgpath</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$imgpath</span> <span style="color: #339933;">=</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/images/default_pp.gif'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$imgpath</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$imgpath</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$title</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$imgpath</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>N.B.: Di default la dimensione dell&#8217;imamgine è di 60&#215;60. Nel caso in cui noi volessimo una immagine di dimensione diversa, per esempio 32&#215;32, basta modificare la chiamata alla funzione nel file <em>wppp.php</em> in questo modo:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">replace<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'%post_thumb%'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>return_post_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">32</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">32</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>Un&#8217;altra modifica, in futuro, potrebbe essere fare in modo di passare la dimensione dei thumbs nel momento in cui viene richiamato il plugin.</p>
<p>&nbsp;</p>
<p>A questo punto quando richiamiamo il plugin avremo a possibilità di inserire il tag %post_thumb% che ci darà l&#8217;&lt;img&gt; riferita all&#8217;immagine associata al post.</p>
<p>&nbsp;</p>
<h1>3) il CSS per lo stile</h1>
<p>&nbsp;</p>
<p>Concludiamo con il css per lo stile dell&#8217;elenco dei post, che nel mio caso è:</p>
<p>&nbsp;</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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*Popular Posts*/</span>
&nbsp;
ul<span style="color: #6666ff;">.wppp_list</span> li <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">65px</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;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span> <span style="color: #993333;">outside</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #6666ff;">.wppp_list</span> img <span style="color: #00AA00;">&#123;</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-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ECEFF5</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>Ed ecco il risultato finale:<br />
<a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/ppp.png"><img class="aligncenter size-full wp-image-831" title="ppp" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/ppp.png" alt="" width="378" height="473" /></a></p>
<p>&nbsp;</p>
<p><strong>Enjoy it!</strong></p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/yi7pHtkmPsQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/10/23/thumbnails-per-wordpress-com-popular-posts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/10/23/thumbnails-per-wordpress-com-popular-posts/</feedburner:origLink></item>
		<item>
		<title>28/10/2011 – Anticipato l’ultimo giorno del Calendario Maya</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/ONiRcb_Muc4/</link>
		<comments>http://blog.roccoagostino.eu/2011/10/19/28102011-anticipato-lultimo-giorno-del-calendario-maya/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 18:18:27 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Fine del mondo]]></category>
		<category><![CDATA[In evidenza]]></category>
		<category><![CDATA[Maya]]></category>
		<category><![CDATA[Miti e leggende?]]></category>
		<category><![CDATA[21 dicembre 2012]]></category>
		<category><![CDATA[28 ottobre 2011]]></category>
		<category><![CDATA[3 giorni di buio]]></category>
		<category><![CDATA[ascesa]]></category>
		<category><![CDATA[Calendario Maya]]></category>
		<category><![CDATA[cataclismi]]></category>
		<category><![CDATA[catastrofi]]></category>
		<category><![CDATA[fine dell'umanità]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=786</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/impatto_ico.JPG" width="32" height="32" alt="" title="Fine del mondo" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/maya-ico.PNG" width="32" height="32" alt="" title="Maya" /><br/>Il biologo dott. Cari Johan Calleman,propone un interpretazione del calendario maya secondo la quale la storia dell’universo dal Big Bang si compone di 9 periodi, gli “inframondi”, a loro volta divisi in 13 periodi, che chiama “cieli” (Heavens),  ripartiti in 7 “giorni” e 6 “notti”. Secondo la sua interpretazione il Calendario Maya terminerà il suo ciclo il 28 Ottobre 2011.]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/impatto_ico.JPG" width="32" height="32" alt="" title="Fine del mondo" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/maya-ico.PNG" width="32" height="32" alt="" title="Maya" /><br/><p>Non più il 21/12/2012, ma il 28/10/2011 avverrà la fine del mondo così come noi lo conosciamo. Pochi giorni, quindi, ci separano dalla distruzione globale dell&#8217;intero pianeta terra: diventeremo tutti delle sfere di luce o dei tizzoni ardenti? O forse basterà solamente anticipare la festa del &#8220;Capodanno&#8221; Maya?<br />
<span id="more-786"></span><br />
Il biologo dott. <a href="http://www.calleman.com/" target="_blank">Cari Johan Calleman</a> propone un interpretazione del calendario maya secondo la quale la storia dell’universo dal Big Bang si compone di 9 periodi, gli “inframondi”, a loro volta divisi in 13 periodi, che chiama “cieli” (Heavens), ripartiti in 7 “giorni” e 6 “notti”. Ogni inframondo ha una durata venti volte inferiore al precedente ma tutti finiscono non il 21 dicembre 2012 ma il 28 ottobre 2011. Secondo questo calendario, l’entrata nel 7° giorno dell’inframondo galattico (ottavo livello della piramide cosmica) si è svolta il 3 novembre 2010. Questo 7° giorno o 13° cielo è retto da Ometeol e Omecinatl, dio e dea della dualità. Subito dopo l’entrata in questo 7° giorno, secondo quanto scritto sul blog dell’assistente di Cari Johan Calleman, dei rappresentanti dell’antica tradizione occidentale maya e dell’antica tradizione orientale buddista si sono riuniti per “una cerimonia del fuoco e una trasmissione di vibrazioni”.</p>
<p>&nbsp;</p>
<p><a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/maya.jpg"><img class="aligncenter size-medium wp-image-787" title="maya" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/maya-300x204.jpg" alt="" width="300" height="204" /></a></p>
<p>&nbsp;</p>
<p>Questo calendario presenta una teoria dalle implicazioni affascinanti. Fra queste implicazioni : quella che riguarda il 9° inframondo previsto dal calendario maya, al termine del quale – o durante il quale, secondo Calleman &#8211; l’umanità nel suo insieme è chiamato a fare un salto qualitativo di coscienza senza precedenti, un salto evolutivo che alcuni assimilano ad una “iniziazione collettiva” (Gregg Braden), una specie di “ Illuminazione” (Calleman) o di “ liberazione “ (Gilles Siniquin) come i buddisti la intendono ma su scala planetaria. Secondo Calleman, l’onda di energia dell’Inframondo universale ha iniziato il suo effetto il 9 marzo 2011 per terminare il 28 ottobre 2011, la data che alcuni associano ai famosi “<a href="http://angeliinastronave.blogspot.com/2011/09/28-ottobre-2011-linizio-dei-3-giorni-di.html" target="_blank">3 giorni di buio</a>“ oppure l’inizio della presa di conoscenza da parte dell’umanità di uno stato mentale nuovo, o altri ancora dicono che ci sarà una trasformazione dimensionale… qualsiasi cosa questo significhi. <a href="http://www.stazioneceleste.it/articoli/Calleman/calleman_Cometa_Giu11.htm" target="_blank">Qui</a> l&#8217;articolo tradotto in italiano del dott. Calleman.</p>
<p>&nbsp;</p>
<p>Ovviamente nel passato ci siamo imbattuti in moltissime date che poi non hanno portato a niente e anche questa volta lo scetticismo è d’obbligo, per non dire che sarà una grossa bufala. Vedremo il 28 Ottobre p.v. cosa succederà. La data inoltre corrisponde anche al periodo in cui la famosa cometa Elenin dovrebbe comprarire nelle vicinanze della terra. Sara un &#8220;segno&#8221;? In ogni caso bisogna non valutare questo ipotetico cambiamento come una cosa negativa, ma con spirito positivo di cambiamento “in meglio”, anche se ciò dovrebbe avvenire ogni giorno della nostra esistenza e non esclusivamente il 28/10/2011.</p>
<p>&nbsp;</p>
<p>In attesa dell&#8217;imminente ascesa dimensionale della nostra consapevolezza, divertiamoci con il messia Quelo, ricordandoci che c&#8217;è molta crisi!!!</p>
<p>&nbsp;</p>
<p><center><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/lpYSFPO7pqw" frameborder="0" allowFullScreen="true"> </iframe></center></p>
<p>&nbsp;</p>
<p>P.S.: Il 20/10/2011 cade di venerdì. Ma i tre giorni di buio non potevano cominciare da lunedì?</p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/ONiRcb_Muc4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/10/19/28102011-anticipato-lultimo-giorno-del-calendario-maya/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/10/19/28102011-anticipato-lultimo-giorno-del-calendario-maya/</feedburner:origLink></item>
		<item>
		<title>Modificare il tema di WordPress (parte 3): personalizzare l’intestazione e lo sfondo</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/wwj0SgEEwIs/</link>
		<comments>http://blog.roccoagostino.eu/2011/10/17/modificare-il-tema-di-wordpress-parte-3-personalizzare-lintestazione-e-lo-sfondo/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 17:16:26 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[funzioni]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[sfondo]]></category>
		<category><![CDATA[testata]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=760</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/>Aggiornando la piattaforma alla versione 3.x di Wordpress, il tema che avete installato precedentemente sicuramente non conterrà le nuove funzioni di personalizzazione dell'intestazione e dello sfondo del blog. Grazie a semplici modifiche ai files del tema è possibile inserire, lato pannello di amministrazione, queste funzioni in modo da modificare l'aspetto del blog senza dover agire sul codice del tema stesso.]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/><p>Aggiornando la piattaforma alla versione 3.x di WordPress, il tema che avete installato precedentemente sicuramente non conterrà le nuove funzioni di personalizzazione dell&#8217;intestazione e dello sfondo del blog. Grazie a semplici modifiche ai files del tema è possibile inserire, lato pannello di amministrazione, queste funzioni in modo da modificare l&#8217;aspetto del blog senza dover agire sul codice del tema stesso.</p>
<p><span id="more-760"></span></p>
<p>&nbsp;</p>
<h1>la Testata</h1>
<p>Tra le novità di WordPress 3.x vi è il pannello per la personalizzazione delle intestazioni. E&#8217; possibile accedere alle intestazioni personalizzate abilitando la voce nel pannello di amministrazione di WordPress 3.x anche se il vostro tema non lo supporta nativamente.<br />
Per fare ciò basta inserire nel file <em>function.php</em> le seguenti linee di codice:</p>
<p>&nbsp;</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">define( 'HEADER_IMAGE', '%s/images/logo.jpj' ); //logo di defaul
define( 'HEADER_IMAGE_WIDTH', apply_filters( '', 948 ) ); // Larghezza del logo
define( 'HEADER_IMAGE_HEIGHT', apply_filters( '', 180 ) ); // Altezza del logo
define( 'NO_HEADER_TEXT', true );
add_custom_image_header( '', 'admin_header_style' ); // Abilita la voce nel pannello di controllo 
&nbsp;
// Foglio di stile per il pannello amministratore
if ( ! function_exists( 'admin_header_style' ) ) :
function admin_header_style() {
?&gt;
&lt;style type=&quot;text/css&quot;&gt;
#headimg {
height: <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> HEADER_IMAGE_HEIGHT<span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>px;
width: <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> HEADER_IMAGE_WIDTH<span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>px;
}
#headimg h1, #headimg #desc {
display: none;
}
&lt;/style&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>Nel pannelo di controllo nel menu &#8220;aspetto&#8221; comparirà la voce &#8220;Testata&#8221;.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/aspetto_testa.jpg"><img class="aligncenter size-full wp-image-761" style="border-width: 1px; border-color: black; border-style: solid;" title="aspetto_testa" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/aspetto_testa.jpg" alt="" width="166" height="168" /></a></p>
<p>&nbsp;</p>
<p>Selezionandola, comparirà la nuova pagina di amministrazione per la scelta delle immagini da inserire nell&#8217;header del blog.<br />
Una volta caricate le immagini possiamo anche decidere di visualizzarle in maniera random.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/testata_personalizzazione.jpg"><img class="aligncenter size-full wp-image-764" style="border-width: 1px; border-color: black; border-style: solid;" title="testata_personalizzazione" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/testata_personalizzazione.jpg" alt="" width="540" height="568" /></a></p>
<p>&nbsp;</p>
<p>Nel <em>header.php</em> basta inserire la seguente linea di codice:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> header_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; width=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> HEADER_IMAGE_WIDTH<span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; height=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> HEADER_IMAGE_HEIGHT<span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; alt=&quot;&quot; /&gt;</pre></td></tr></table></div>

<p>o anche</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;header-container&quot; style=&quot;background: url('<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> header_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>');&quot;&gt;</pre></td></tr></table></div>

<p>&nbsp;</p>
<h1>lo Sfondo</h1>
<p>Altra modifica possibile per utilizzare le nuove funzioni di WordPress 3.x è la possibilità di personalizza lo sfondo</p>
<p>&nbsp;</p>
<p>Aggiungendo nel file <em>function.php</em> la linea di codice:</p>
<p>&nbsp;</p>

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

<p style="text-align: center;">nel pannello di amministrazione comparirà la voce &#8220;Sfondo&#8221; nel menù &#8220;Aspetto&#8221;:<br />
<a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/aspetto_sfondo.jpg"><img class="aligncenter size-full wp-image-780" style="border-width: 1px; border-color: black; border-style: solid;" title="aspetto_sfondo" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/aspetto_sfondo.jpg" alt="" width="166" height="168" /></a><br />
Selezionandola, comparirà la nuova pagina di amministrazione per la scelta dello sfondo da inserire nel blog.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/sfondo_personalizzazione.jpg"><img class="aligncenter size-full wp-image-767" style="border-width: 1px; border-color: black; border-style: solid;" title="sfondo_personalizzazione" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/sfondo_personalizzazione.jpg" alt="" width="540" height="662" /></a></p>
<p>&nbsp;</p>
<p><strong>Enjoy it and.. see you soon!</strong></p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/wwj0SgEEwIs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/10/17/modificare-il-tema-di-wordpress-parte-3-personalizzare-lintestazione-e-lo-sfondo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/10/17/modificare-il-tema-di-wordpress-parte-3-personalizzare-lintestazione-e-lo-sfondo/</feedburner:origLink></item>
		<item>
		<title>Modificare il tema di WordPress (parte 2): menù di navigazione</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/U9ZhBz7Vj5k/</link>
		<comments>http://blog.roccoagostino.eu/2011/10/08/modificare-il-tema-di-wordpress-parte-2-menu-di-navigazione/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 21:04:17 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[funzioni]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=669</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/>Modificare il tema di Wordpress per poter utilizzare il menù di navigazione.]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/><p>WordPress include un meccanismo semplice per introdurre dei menù di navigazione personalizzati nel proprio tema. Per incorporare nel tema il supporto al menù, è necessario aggiungere poche righe di codice. Innanzitutto nel file <em>functions.php</em> del tema, si deve scrivere una funzione per registrare il nome dei menù che si vogliono creare. Il nome sarà quello che comparirà nella pagina del pannello di amministrazione di WordPress alla pagina Aspetto-&gt;Menu.<br />
<span id="more-669"></span><br />
Per esempio, tramite questo codice, nel box “Posizione dei temi” comparirà la posizione “Menu Intestazione”:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> register_my_menus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  register_nav_menus<span style="color: #009900;">&#40;</span>
    <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'menu-intestazione'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Menu Intestazione'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>questo codice, invece, farà comparire due nuove posizioni:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> register_my_menus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
register_nav_menus<span style="color: #009900;">&#40;</span>
  <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'menu-intestazione'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Menu Intestazione'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'menu-extra'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Menu Extra'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Per assicurarsi che il tema attivi l’opzione dei menù personalizzati, è necessario aggiungere anche questa riga che comunica al tema di eseguire la funzione “<em>register_my_menus</em>”:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'register_my_menus'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>A questo punto resta da inserire nel tema la posizione in cui vogliamo che il menù (o i vari menù) siano visualizzati. Per far questo si deve aprire nell’editor il file del template corrispondente alla posizione desiderata e inserire una chiamata alla funzione <em>wp_nav_menu()</em> per ciascuna posizione. Per esempio, si vuole posizionare il menu “Menu Intestazione”, precedentemente registrato nel file <em>header.php</em>, in modo che compaia nella testata del tema. Il codice da inserire è il seguente:</p>
<p>&nbsp;</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> wp_nav_menu<span style="color: #009900;">&#40;</span>  <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu-intestazione'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><strong>IMPORTANTE: il nome associato a theme_location deve essere lo stesso inserito in <em>functions.php</em>.</strong></p>
<p>&nbsp;</p>
<p>Questa funzione crea una lista del tipo</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;ul&gt; 
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p>Se si aggiunge alla funzione <em>wp_nav_menu()</em> il parametro “<em>container_class</em>”, si può specificare la classe associata al menù:</p>
<p>&nbsp;</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> wp_nav_menu<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu-intestazione'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'container_class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'classe_menu_intestazione'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>In questo modo si può personalizzare la grafica del menù specificando nel CSS gli attributi della classe “classe_menu_intestazione”.</p>
<p>Oppure, come nel mio caso, se già esiste nel foglio di stile una classe per i menù tradizionali, basta sostituire il codice all&#8217;interno, per esempio, del</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=”menu”&gt;......&lt;/div&gt;</pre></div></div>

<p>richiamando la funzione</p>
<p>&nbsp;</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> wp_nav_menu<span style="color: #009900;">&#40;</span>  <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu-intestazione'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Enjoy it and.. see you soon!</p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/U9ZhBz7Vj5k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/10/08/modificare-il-tema-di-wordpress-parte-2-menu-di-navigazione/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/10/08/modificare-il-tema-di-wordpress-parte-2-menu-di-navigazione/</feedburner:origLink></item>
		<item>
		<title>Modificare il tema di WordPress (parte 1): la funzione post thumbnail</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/qVH9ZgtxuWU/</link>
		<comments>http://blog.roccoagostino.eu/2011/10/06/modificare-il-tema-di-wordpress-parte-1-la-funzione-post-thumbnail/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 18:34:49 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[funzioni]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=625</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/>Come inserire nel proprio tema funzione post thumbnail (miniature) per associare una immagine agli articoli.]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/wordpress_ico.jpg" width="33" height="33" alt="" title="WordPress" /><br/><p>Ormai del mio tema per wordpress, che ho scaricato tra quelli gratuiti nel lontano 2009, ci sta ben poco. Nel corso dei mesi tante sono state le modifiche: supporto ai plugin, ai widget, agli script in JQuery, modifiche in php che adesso ad elencarli tutti ho davvero tanta difficoltà. Wordpress si aggiorna, introduce nuove funzioni e nuove possibilità di fare blogging, ma il mio tema &#8220;no, non lo voglio cambiare!&#8221;.</p>
<p><span id="more-625"></span></p>
<p>Così, armato di santa pazienza, googlando un pò in giro, ecco che mi ritrovo per l&#8217;ennesima volta a far modifiche.</p>
<p>&nbsp;</p>
<p>Vediamo la prima: la funzione post thumbnail (miniature).</p>
<p>&nbsp;</p>
<p>Le icone che vedere associate agli articoli di questo blog sono in realtà associate alle categorie (uso il plugin <a href="http://blog.roccoagostino.eu/2009/08/30/associa-le-icone-alle-categorie-del-blog-wordpresscategory-icons-plugin/" target="_blank">Category Icons</a>). Pertanto esse non sono direttamente legate al contenuto dell&#8217;articolo. Stanco della visualizzazione testuale a lista dei post correlati ho installato il plugin <a href="http://wordpress.org/extend/plugins/related-posts-thumbnails/" target="_blank">Related Posts Thumbnails</a> che crea un riquadro per ogni articolo correlato inserendo una immagine contenuta nell&#8217;articolo stesso. Problema: e se nel contenuto non vi sono inserite delle immagini? Il plugin usa la minitura associata all&#8217;articolo!</p>
<p>&nbsp;</p>
<p>Per attivare la gestione lato backend della “miniatura articolo” è sufficiente editare il file <em>functions.php</em> e inserire le seguenti linee di codice che, nell&#8217;ottica di compatibilità e stabilità, sono:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'add_theme_support'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    add_theme_support<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post-thumbnails'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>&nbsp;</p>
<p>Fatto questo, entrando nell’amministrazione e andando nella modifica di un post, troveremo sulla sidebar destra un nuovo pannello:</p>
<p>&nbsp;</p>
<p><center><img class="aligncenter size-full wp-image-617" title="thumbs" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/thumbs.jpg" alt="" width="295" height="76" /></center>Da qui possiamo associare una immagine all&#8217;articolo.</p>
<p>&nbsp;</p>
<p>Con</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>?php get_post_thumbnail<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>?<span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>recuperiamo l’url della nostra thumbnail e possiamo tranquillamente inserirlo nel loop in questo modo ad esempio:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_post_thumbnail<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; alt=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;&lt;/div&gt;</pre></td></tr></table></div>

<p>&nbsp;</p>
<p>Enjoy it and.. see you soon!</p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/qVH9ZgtxuWU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/10/06/modificare-il-tema-di-wordpress-parte-1-la-funzione-post-thumbnail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/10/06/modificare-il-tema-di-wordpress-parte-1-la-funzione-post-thumbnail/</feedburner:origLink></item>
		<item>
		<title>La casa del futuro – Domotica e Bioedilizia</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/QHFUdmBKcJM/</link>
		<comments>http://blog.roccoagostino.eu/2011/10/03/la-casa-del-futuro-domotica-e-bioedilizia/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 14:40:21 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Tecnologia]]></category>
		<category><![CDATA[bioarchitettura]]></category>
		<category><![CDATA[bioedilizia]]></category>
		<category><![CDATA[domotica]]></category>
		<category><![CDATA[edilizia]]></category>
		<category><![CDATA[futuro]]></category>
		<category><![CDATA[industria]]></category>
		<category><![CDATA[tecnologia]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=555</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/leonardo_p.jpg" width="32" height="32" alt="" title="Tecnologia" /><br/>Che cos'è di preciso la domotica e la bioedilizia? Come verranno costruite le case del futuro?]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/leonardo_p.jpg" width="32" height="32" alt="" title="Tecnologia" /><br/><p style="text-align: justify;">Che cos&#8217;è di preciso la <a href="http://it.wikipedia.org/wiki/domotica" rel="nofollow" target="_blank" title="Da Wikipedia la definizione di: domotica" style="padding-bottom: 2px; border-bottom: 1px dotted #DD0000" >domotica</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup>? Come saranno le case del futuro? Luce attivabili da comandi vocali, dispositivi ed elettrodomestici comandanti a distanza, finestre e porte automatizzate e non solo&#8230;La domotica nasce dall&#8217;incontro tra l&#8217;esigenza di migliorare la qualità della vita tra le mura domestiche, ma anche in uffici ed altri ambienti, e gli sviluppi avvenuti nel campo dell&#8217;informatica, dell&#8217;elettronica e della telematica.</p>
<p><span id="more-555"></span></p>
<p>&nbsp;</p>
<p align="center">
<div id="featuredvid" class="scatola">
<div id="vid-1" class="fvid"><object width="425" height="344" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/6pwTL34uyVk&amp;hl=it&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed width="425" height="344" type="application/x-shockwave-flash" src="http://www.youtube.com/v/6pwTL34uyVk&amp;hl=it&amp;fs=1&amp;" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></div>
<div id="vid-2" class="fvid"><object width="425" height="344" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Fs4XtZ-dU4c&amp;hl=it&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed width="425" height="344" type="application/x-shockwave-flash" src="http://www.youtube.com/v/Fs4XtZ-dU4c&amp;hl=it&amp;fs=1&amp;" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></div>
<div id="vid-3" class="fvid"><object width="425" height="344" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/9un2PqF3ovo&amp;hl=it&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed width="425" height="344" type="application/x-shockwave-flash" src="http://www.youtube.com/v/9un2PqF3ovo&amp;hl=it&amp;fs=1&amp;" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></div>
<div id="vid-4" class="fvid"><object width="425" height="344" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/6jckWJEb4oQ&amp;hl=it&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed width="425" height="344" type="application/x-shockwave-flash" src="http://www.youtube.com/v/6jckWJEb4oQ&amp;hl=it&amp;fs=1&amp;" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></div>
<p><span style="color: red; font-size: xx-small;"><strong>VIDEOTECA</strong></span></p>
<ul class="vidselector">
<li><a href="#vid-1">Tecnologie Del Futuro &#8211; Case Del Futuro [Parte 1/3]</a></li>
<li><a href="#vid-2">Tecnologie Del Futuro &#8211; Case Del Futuro [Parte 2/3]</a></li>
<li><a href="#vid-3">Tecnologie Del Futuro &#8211; Case Del Futuro [Parte 3/3]</a></li>
<li><a href="#vid-4">Casa domotica e scene di vita familiare</a></li>
</ul>
</div>
<p><!--/featuredvid--><br />
&nbsp;<br />
&nbsp;</p>
<p style="text-align: justify;">Microsoft, che brevetta centinaia di idee ogni anno, ha realizzato nel suo campus la casa del futuro. All’interno ci sono tante idee per semplificare la vita degli utenti. Si nota il portaoggetti in grado di sincronizzare e ricaricare lo smartphone, il mega monitor per accedere ad internet, le mura che cambiano colore e design con un click, bacheche interattive e molto altro. Uno sguardo verso il futuro che, speriamo, non sia tanto lontano.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/q_n7AiPeCBo" frameborder="0" allowFullScreen="true"> </iframe></p>
<p>&nbsp;</p>
<p style="text-align: justify;">Ma se da un lato la domotica ci consente di vivere in case automatizzate, la bioedilizia o <a href="http://it.wikipedia.org/wiki/bioarchitettura" rel="nofollow" target="_blank" title="Da Wikipedia la definizione di: bioarchitettura" style="padding-bottom: 2px; border-bottom: 1px dotted #DD0000" >bioarchitettura</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> ci invita a ricostruire dalla fondamenta le case ed anche i nostri stili di vita. La bioedilizia ci ricorda, infatti, che il pianeta in cui viviamo va tutelato nel suo equilibrio naturale e preservato nelle sue risorse limitate al fine di raggiungere il benessere e risparmiare denaro, tramite il risparmio energetico. Una casa costruita con tutti gli elementi e criteri della bioedilizia può raggiungere “performance” incredibili. Perfino nei climi più freddi il fabbisogno di energie per il riscaldamento può essere ridotto del 90%. I vantaggi che se ne ricavano non si limitano al risparmio energetico, ma soprattutto all’impatto ambientale (patrimonio nostro ed eredità per i nostri figli) e alla qualità della vita di chi abita la casa.</p>
<p>&nbsp;</p>
<p>Ecco un interessante intervento di Striscia La Notizia sulla bioedilizia e la si la possibilità di isolare un edificio utilizzando addirittura materiali di scarto o di riciclo.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/DS_YgBmy-hw" frameborder="0" allowFullScreen="true"> </iframe></p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/QHFUdmBKcJM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/10/03/la-casa-del-futuro-domotica-e-bioedilizia/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/10/03/la-casa-del-futuro-domotica-e-bioedilizia/</feedburner:origLink></item>
		<item>
		<title>Statistiche di Settembre 2011</title>
		<link>http://feedproxy.google.com/~r/roccoagostino/~3/qHKs8f92ntg/</link>
		<comments>http://blog.roccoagostino.eu/2011/10/01/statistiche-di-settembre/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 22:00:48 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Statistiche del Blog]]></category>
		<category><![CDATA[statistiche]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=566</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/grafici-statistiche_p.jpg" width="32" height="32" alt="" title="Statistiche del Blog" /><br/>Statistiche di settembre]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/grafici-statistiche_p.jpg" width="32" height="32" alt="" title="Statistiche del Blog" /><br/><p style="text-align: center;"><a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/statistiche-di-settembre.jpg"><img class="aligncenter size-full wp-image-567" title="statistiche di settembre" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2011/10/statistiche-di-settembre.jpg" alt="" width="489" height="710" /></a></p>
<img src="http://feeds.feedburner.com/~r/roccoagostino/~4/qHKs8f92ntg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2011/10/01/statistiche-di-settembre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.roccoagostino.eu/2011/10/01/statistiche-di-settembre/</feedburner:origLink></item>
	</channel>
</rss><!-- This Quick Cache file was built for (  blog.roccoagostino.eu/feed/ ) in 22.99521 seconds, on May 28th, 2012 at 12:31 am UTC. --><!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Jun 4th, 2012 at 12:31 am UTC --><!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  blog.roccoagostino.eu/feed/ ) in 0.00048 seconds, on May 31st, 2012 at 3:14 am UTC. -->

