<?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>piouPiouM&#039;s dev&#187; Archives pour le tag projet – piouPiouM&#039;s dev</title>
	<atom:link href="http://pioupioum.fr/tag/projet/feed/" rel="self" type="application/rss+xml" />
	<link>http://pioupioum.fr</link>
	<description>Bloc-note d&#039;un développeur web</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:47:44 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bundle License Helper pour TextMate</title>
		<link>http://pioupioum.fr/outils-astuces/license-helper-textmate-bundle.html</link>
		<comments>http://pioupioum.fr/outils-astuces/license-helper-textmate-bundle.html#comments</comments>
		<pubDate>Thu, 29 Jul 2010 16:29:29 +0000</pubDate>
		<dc:creator>piouPiouM</dc:creator>
				<category><![CDATA[Outils, trucs et astuces]]></category>
		<category><![CDATA[licence MIT]]></category>
		<category><![CDATA[projet]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://pioupioum.fr/?p=426</guid>
		<description><![CDATA[Parce que j&#8217;en avais ma claque de chercher le texte des licences à ajouter en en-tête de mes sources1, voici un bundle TextMate pour palier à cette répétitive perte de temps.



Table des matières


Installation
Utilisation du bundle
Personnaliser le sélecteur des licences
Corriger le formatage de la licence
Licences supportées
Développement


Installation

Depuis les sources, avec Git

cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/piouPiouM/license-helper.tmbundle.git "License Helper.tmbundle"
osascript [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Parce que j&#8217;en avais ma claque de chercher le texte des licences à ajouter en en-tête de mes sources<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup>, voici un <strong><a href="http://pioupioum.fr/tag/textmate/" title="Archives pour le tag TextMate – piouPiouM&#039;s dev">bundle TextMate</a></strong> pour palier à cette répétitive perte de temps.</p>

<p><img src="http://assets1.pioupioum.fr/uploads/2010/07/License-Helper-Textmate-Bundle.png" alt="License Helper Textmate Bundle" title="License Helper Textmate Bundle" width="610" height="385" class="aligncenter size-full wp-image-431" /><span id="more-426"></span></p>

<h2 id="toc">Table des matières</h2>

<ol>
<li><a href="#installer">Installation</a></li>
<li><a href="#usage">Utilisation du bundle</a></li>
<li><a href="#personnaliser">Personnaliser le sélecteur des licences</a></li>
<li><a href="#formatage">Corriger le formatage de la licence</a></li>
<li><a href="#licenses">Licences supportées</a></li>
<li><a href="#developpement">Développement</a></li>
</ol>

<h2 id="installer">Installation</h2>

<h3>Depuis les sources, avec Git</h3>

<pre><code>cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/piouPiouM/license-helper.tmbundle.git "License Helper.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'
</code></pre>

<h3>Depuis les sources, sans Git</h3>

<pre><code>cd ~/Library/Application\ Support/TextMate/Bundles
wget http://github.com/piouPiouM/license-helper.tmbundle/tarball/master
tar zxf license-helper.tmbundle.tar.gz
rm license-helper.tmbundle.tar.gz
mv license-helper.tmbundle "License Helper.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'
</code></pre>

<h3>Téléchargement direct</h3>

<div class="download box">
    <a href="http://github.com/piouPiouM/license-helper.tmbundle/tarball/master" title="Téléchargement depuis les serveurs de GitHub"><span>Télécharger la dernière version du bundle License Helper pour TextMate</span></a>
</div>

<p>Après récupération, décompressez l&#8217;archive, renommez le dossier en <code>License Helper.tmbundle</code>. Acceptez le changement d&#8217;extension. Il ne reste plus qu&#8217;à installer le bundle d&#8217;un double-clic sur le fichier.</p>

<h2 id="usage">Utilisation du bundle</h2>

<p>Utilisez le lanceur <code>license⇥</code> pour <strong>sélectionner une licence</strong> <em>via</em> la boîte de dialogue qui s&#8217;affiche.</p>

<p><div id="attachment_427" class="wp-caption aligncenter" style="width: 349px"><img src="http://assets1.pioupioum.fr/uploads/2010/07/license-helper-textmate-bundle-dialog.png" alt="Choix d&#039;une licence – License Helper Textmate Bundle" title="license-helper-textmate-bundle-dialog" width="339" height="384" class="size-full wp-image-427" /><p class="wp-caption-text">Choix d&#8217;une licence – License Helper Textmate Bundle</p></div></p>

<p>Un bloc de licence est inséré en tant que Snippet. Utilisez la touche de tabulation pour vous déplacez sur les différents placeholders.</p>

<h3>Liste des variables d&#8217;environnement utilisées</h3>

<p>Déclarez dans votre projet les variables d&#8217;environnement qui suivent pour auto-compléter les blocs de licence à insérer&#160;:</p>

<ul>
<li><code>TM_PROJECT_YEAR</code>. L&#8217;année de production. Par défaut&#160;: l&#8217;année courante.</li>
<li><code>TM_PROJECT_COPYRIGHT_HOLDERS</code> ou <code>TM_AUTHOR</code> ou <code>TM_ORGANIZATION_NAME</code>. Les détenteurs du copyright.</li>
<li><code>TM_ORGANIZATION_EMAIL</code>. Adresse mail de l&#8217;organisation détentrice du copyright.</li>
<li><code>TM_PROJECT_DESCRIPTION</code>. Description brève du projet.</li>
</ul>

<p>Notez que les variables sont utilisées en fonction de la licence choisie et qu&#8217;il n&#8217;est pas nécessaire de toutes les renseigner si vous n&#8217;en avez pas l&#8217;usage.</p>

<p>Vous pouvez fixer la licence de votre projet en ajoutant la variable d&#8217;environnement de projet <code>TM_PROJECT_LICENSE</code>. Ainsi, vous n&#8217;aurez plus à la sélectionner.</p>

<h2 id="personnaliser">Personnaliser le sélecteur des licences</h2>

<p>La commande accessible depuis le menu <em>License Helper → Edit licenses order</em> lance l&#8217;édition du fichier de configuration du bundle.<br />
Modifiez l&#8217;ordre des licences déclarées selon vos préférences d&#8217;apparition dans le sélecteur de licences.</p>

<h2 id="formatage">Corriger le formatage de la licence</h2>

<p>Il est possible qu&#8217;avec certains langages, le rendu des blocs de licences ne corresponde pas à vos attentes. Si tel est le cas, définissez votre propre format&#160;:</p>

<ol>
<li>Bundles → Bundle Editor</li>
<li>Dans l&#8217;entrée <strong>License Helper</strong>, créez une nouvelle Preference et donnez-lui le nom du langage.</li>
<li>Remplissez le champ Scope Selector avec le scope approprié – i.e. <code>source.java</code> pour les sources java.</li>
<li>Définissez les shellVariables <code>TM_LICENSE_HELPER_HEADER</code> (début du bloc de commentaire) et <code>TM_LICENSE_HELPER_FOOTER</code> (fin du bloc de commentaire), comme suit&#160;:</li>
</ol>

<pre>{  shellVariables = (
        {   name = 'TM_LICENSE_HELPER_HEADER';
            value = '/*';
        },
        {   name = 'TM_LICENSE_HELPER_FOOTER';
            value = '*/';
        },
    );
}</pre>

<p><strong>Note&#160;:</strong> chacune des lignes de la licence peut être préfixée de la variable <code>TM_LICENSE_HELPER_LINE</code>.</p>

<h2 id="licenses">Licences supportées</h2>

<p>La liste des licences prises en charge par le plugin n&#8217;est pas figée. N&#8217;hésitez pas à me <a href="#developpement">soumettre</a> celles qui vous font défaut.</p>

<ul>
<li><a href="http://www.opensource.org/licenses/agpl-v3.html" title="GNU AFFERO GENERAL PUBLIC LICENSE v3 | Open Source Initiative">Affero GNU Public License 3.0</a></li>
<li><a href="http://www.opensource.org/licenses/apache2.0.php" title="Open Source Initiative OSI - Apache License, Version 2.0:Licensing | Open Source Initiative">Apache license 2.0</a></li>
<li><a href="http://www.cecill.info/" title="CeCILL">CeCILL license</a></li>
<li><a href="http://sam.zoy.org/wtfpl/" title="WTFPL - Do What The Fuck You Want To Public License">Do What The Fuck You Want To Public License</a></li>
<li><a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html" title="GNU General Public License v2.0 - GNU Project - Free Software Foundation (FSF)">GNU General Public License version 2</a></li>
<li><a href="http://www.gnu.org/licenses/gpl-3.0.html" title="The GNU General Public License - GNU Project - Free Software Foundation (FSF)">GNU General Public License version 3</a></li>
<li><a href="http://www.gnu.org/licenses/lgpl.html" title="GNU Lesser General Public License - GNU Project - Free Software Foundation (FSF)">GNU Lesser General Public License version 3</a></li>
<li><a href="http://www.opensource.org/licenses/mit-license.html" title="Open Source Initiative OSI - The MIT License:Licensing | Open Source Initiative">MIT license</a></li>
<li><a href="http://www.opensource.org/licenses/bsd-license.php" title="Open Source Initiative OSI - The BSD License:Licensing | Open Source Initiative">New and Simplified BSD licenses</a></li>
<li><a href="http://www.opensource.org/licenses/bsd-license.php" title="Open Source Initiative OSI - The BSD License:Licensing | Open Source Initiative">Original BSD license</a></li>
<li><a href="http://www.opensource.org/licenses/postgresql" title="The PostgreSQL Licence (TPL) | Open Source Initiative">PostgreSQL license</a></li>
</ul>

<h2 id="developpement">Développement</h2>

<p>Distribué sous <a href="http://www.opensource.org/licenses/mit-license.html" title="Open Source Initiative OSI - The MIT License:Licensing | Open Source Initiative">license MIT</a>, le <a href="http://github.com/piouPiouM/license-helper.tmbundle" title="piouPiouM's license-helper.tmbundle at master - GitHub">code source du bundle</a> est accessible sur GitHub.</p>

<p>Une suggestion, une amélioration, une critique ou un bug à me soumettre&#160;? Ça se passe du côté du <a href="http://github.com/piouPiouM/license-helper.tmbundle/issues" title="Issues - piouPiouM/license-helper.tmbundle - GitHub">bugtracker</a> associé.</p>

<h3 class='related_post_title'>Continuez votre lecture sur des sujets similaires</h3>

<ul class='related_post'><li><a href='http://pioupioum.fr/snippets/textmate-commande-exporter-mots-word-wrap.html' title='TextMate : commande &laquo;&nbsp;Export words&nbsp;&raquo;'>TextMate&#160;: commande &laquo;&nbsp;Export words&nbsp;&raquo;</a></li><li><a href='http://pioupioum.fr/outils-astuces/textmate-convertir-couleur-hexadecimale-html-rgba.html' title='TextMate : convertir une couleur hexadécimale en notation RGBA'>TextMate&#160;: convertir une couleur hexadécimale en notation RGBA</a></li><li><a href='http://pioupioum.fr/developpement/javascript-array-intersection.html' title='JavaScript : optimiser le calcul de l&#8217;intersection de tableaux de grandes tailles'>JavaScript&#160;: optimiser le calcul de l&#8217;intersection de tableaux de grandes tailles</a></li><li><a href='http://pioupioum.fr/developpement/jslint-console-rhino.html' title='Une console JSLint pour aider vos validations JavaScript'>Une console JSLint pour aider vos validations JavaScript</a></li><li><a href='http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html' title='PHP : convertir un DATETIME en un timestamp UNIX'>PHP&#160;: convertir un DATETIME en un timestamp UNIX</a></li></ul>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>exception faite des projets pour lesquels j&#8217;utilise un builder qui l&#8217;ajoute comme un grand à ma place.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://pioupioum.fr/outils-astuces/license-helper-textmate-bundle.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress jQuery UI Effects</title>
		<link>http://pioupioum.fr/plugins-wordpress/wordpress-jquery-ui-effects.html</link>
		<comments>http://pioupioum.fr/plugins-wordpress/wordpress-jquery-ui-effects.html#comments</comments>
		<pubDate>Wed, 06 Jan 2010 01:37:10 +0000</pubDate>
		<dc:creator>piouPiouM</dc:creator>
				<category><![CDATA[Plugins WordPress]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[projet]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pioupioum.fr/?p=301</guid>
		<description><![CDATA[WordPress jQuery UI Effects est un plugin pour WordPress permettant d&#8217;enregistrer et de charger les composants JavaScript de la librairie jQuery UI Effects.

Ce ne sont pas moins de 14 effets que vous pourrez utiliser dans vos développement de plugins ou dans la personnalisation de vos thèmes&#160;: Blind, Clip, Drop, Explode, Fold, Puff, Slide, Scale, Bounce, [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><strong>WordPress jQuery UI Effects</strong> est un <strong>plugin</strong> pour <strong><a href="http://wordpress.org/" title="WordPress &#8250; Blog Tool and Publishing Platform">WordPress</a></strong> permettant d&#8217;enregistrer et de charger les composants JavaScript de la librairie <strong><a href="http://docs.jquery.com/UI/Effects/" title="UI/Effects - jQuery JavaScript Library">jQuery UI Effects</a></strong>.</p>

<p>Ce ne sont pas moins de 14 effets que vous pourrez utiliser dans vos développement de plugins ou dans la personnalisation de vos thèmes&#160;: <a href="http://docs.jquery.com/UI/Effects/Blind" title="UI/Effects/Blind - jQuery JavaScript Library">Blind</a>, <a href="http://docs.jquery.com/UI/Effects/Clip" title="UI/Effects/Clip - jQuery JavaScript Library">Clip</a>, <a href="http://docs.jquery.com/UI/Effects/Drop" title="UI/Effects/Drop - jQuery JavaScript Library">Drop</a>, <a href="http://docs.jquery.com/UI/Effects/Explode" title="UI/Effects/Explode - jQuery JavaScript Library">Explode</a>, <a href="http://docs.jquery.com/UI/Effects/Fold" title="UI/Effects/Fold - jQuery JavaScript Library">Fold</a>, <a href="http://docs.jquery.com/UI/Effects/Puff" title="UI/Effects/Puff - jQuery JavaScript Library">Puff</a>, <a href="http://docs.jquery.com/UI/Effects/Slide" title="UI/Effects/Slide - jQuery JavaScript Library">Slide</a>, <a href="http://docs.jquery.com/UI/Effects/Scale" title="UI/Effects/Scale - jQuery JavaScript Library">Scale</a>, <a href="http://docs.jquery.com/UI/Effects/Bounce" title="UI/Effects/Bounce - jQuery JavaScript Library">Bounce</a>, <a href="http://docs.jquery.com/UI/Effects/Highlight" title="UI/Effects/Highlight - jQuery JavaScript Library">Highlight</a>, <a href="http://docs.jquery.com/UI/Effects/Pulsate" title="UI/Effects/Pulsate - jQuery JavaScript Library">Pulsate</a>, <a href="http://docs.jquery.com/UI/Effects/Shake" title="UI/Effects/Shake - jQuery JavaScript Library">Shake</a>, <a href="http://docs.jquery.com/UI/Effects/Size" title="UI/Effects/Size - jQuery JavaScript Library">Size</a> et <a href="http://docs.jquery.com/UI/Effects/Transfer" title="UI/Effects/Transfer - jQuery JavaScript Library">Transfer</a>.</p>

<p><span id="more-301"></span></p>

<h2 id="toc">Table des matières</h2>

<ol>
<li><a href="#telecharger">Téléchargement</a></li>
<li><a href="#installer">Installation</a></li>
<li><a href="#faq">Foire aux questions</a>

<ol>
<li><a href="#usage">Comment utiliser ce plugin&#160;?</a></li>
<li><a href="#charger-dependance">Comment déclarer un script dépendant de l&#8217;effet jQuery UI Effect Highlight&#160;?</a></li>
<li><a href="#liste-gestionnaires">Comment trouver la liste des gestionnaires disponibles&#160;?</a></li>
<li><a href="#non-dependant-jquery-ui">La librairie jQuery UI est-elle nécessaire au fonctionnement de jQuery UI Effects&#160;?</a></li>
</ol></li>
<li><a href="#developpement">Développement</a></li>
<li><a href="#changelog">Historique des versions</a></li>
</ol>

<h2 id="telecharger">Téléchargement</h2>

<div class="download box">
    <a href="http://downloads.wordpress.org/plugin/wordpress-jquery-ui-effects.1.0.0.zip" title="Téléchargement depuis les serveurs de WordPress.org"><span>Télécharger la dernière version du plugin WordPress jQuery UI Effects</span></a>
</div>

<p>Vous pouvez également vous rendre sur la <a href="http://wordpress.org/extend/plugins/wordpress-jquery-ui-effects/" title="WordPress &#8250; WordPress jQuery UI Effects &laquo; WordPress Plugins">page WordPress.org du plugin</a> ou lancer son téléchargement et installation directement depuis l&#8217;interface d&#8217;administration de votre WordPress.</p>

<h2 id="installer">Installation</h2>

<p><strong>WordPress jQuery UI Effects</strong> s&#8217;installe en 3 étapes&#160;:</p>

<ol>
<li>Téléversez le répertoire <code>wp-jquery-ui-effects</code> et son contenu dans votre répertoire <code>/wp-content/plugins/</code>.</li>
<li>Activez le plugin <code>WordPress jQuery UI Effects</code> <em>via</em> le menu <em>Extensions</em> du panel d&#8217;administration de WordPress.</li>
<li>C&#8217;est tout <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
</ol>

<h2 id="faq">Foire aux questions</h2>

<h3 id="usage">Comment utiliser ce plugin&#160;?</h3>

<p>Pour charger l&#8217;effet <strong>Bounce</strong> dans votre thème ou un plugin, utilisez la méthode <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script" title="Function Reference/wp enqueue script &laquo; WordPress Codex">wp_enqueue_script</a>&#160;:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> my_init_method<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery-ui-effects-bounce'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_init_method'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>


<p>WordPress chargera<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> l&#8217;effet <em>jQuery UI Effects Bounce</em> et, si besoin est, ses dépendances&#160;: <em>jQuery</em> et <em>jQuery UI Effects Core</em>.</p>

<h3 id="charger-dependance">Comment déclarer un script dépendant de l&#8217;effet jQuery UI Effect Highlight&#160;?</h3>

<p>Déclarez et chargez en toute simplicité un nouveau script dépendant de jQuery UI Effect Highlight&#160;:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
wp_enqueue_script<span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'my-script'</span><span style="color: #339933;">,</span>
    get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_url'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'raw'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/js/my-script.js'</span><span style="color: #339933;">,</span>
    <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery-ui-effects-highlight'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'1.0'</span><span style="color: #339933;">,</span>
    <span style="color: #009900; font-weight: bold;">true</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>


<h3 id="liste-gestionnaires">Comment trouver la liste des gestionnaires disponibles&#160;?</h3>

<p>Préfixez le nom de l&#8217;effet voulu par <code>jquery-ui-effects-</code> pour obtenir le nom du gestionnaire associé<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup>. Attention, le nom du gestionnaire doit être en minuscules.</p>

<p>Par exemple, chargez l&#8217;effet <strong>Shake</strong> soit&#160;:</p>

<ul>
<li>avec le gestionnaire <code>jquery-ui-effects-shake</code>&#160;;</li>
<li>en utilisant la méthode statique <code>WPjQueryUIEffects::getHandle('shake')</code>.</li>
</ul>

<h3 id="non-dependant-jquery-ui">La librairie jQuery UI est-elle nécessaire au fonctionnement de jQuery UI Effects&#160;?</h3>

<p>Non. Vous n&#8217;avez donc pas à charger le gestionnaire <code>jquery-ui-core</code> (fichier <code>ui.core.js</code>) en tant que dépendance d&#8217;un quelconque effet pour que ce dernier fonctionne.</p>

<h3 id="version">Quelle est la version de jQuery UI Effects utilisé&#160;?</h3>

<p>Le <strong>plugin</strong> utilise <strong>jQuery UI Effects</strong> dans sa version <code>1.7.2</code>.<br />
Il nécessite également jQuery <code>1.3+</code>, disponible depuis WordPress 2.8.</p>

<h2 id="developpement">Développement</h2>

<p>Distribué sous licence <a href="http://fr.wikipedia.org/wiki/Licence_publique_générale_GNU">GNU/GLP</a>, le <a href="http://github.com/piouPiouM/wordpress-jquery-ui-effects" title="piouPiouM's wordpress-jquery-ui-effects at master - GitHub">code source du plugin</a> est accessible sur GitHub.</p>

<p>Une suggestion, une amélioration, une critique ou un bug à me soumettre&#160;? Ça se passe du côté du <a href="http://github.com/piouPiouM/wordpress-jquery-ui-effects/issues" title="Issues - piouPiouM/wordpress-jquery-ui-effects - GitHub">bugtracker</a> <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<h2 id="changelog">Historique des versions</h2>

<h3>1.0.0</h3>

<ul>
<li>Version initiale.</li>
</ul>

<h3 class='related_post_title'>Continuez votre lecture sur des sujets similaires</h3>

<ul class='related_post'><li><a href='http://pioupioum.fr/developpement/jquery-color-plugin-animation-rgba-support.html' title='Du RGBA dans vos animations avec le plugin jQuery Color'>Du RGBA dans vos animations avec le plugin jQuery Color</a></li><li><a href='http://pioupioum.fr/plugins-wordpress/get-authors-comments.html' title='Get Author&#8217;s Comments'>Get Author&#8217;s Comments</a></li><li><a href='http://pioupioum.fr/developpement/javascript-detecter-support-rgba.html' title='JavaScript : tester le support des couleurs RGBA'>JavaScript&#160;: tester le support des couleurs RGBA</a></li><li><a href='http://pioupioum.fr/outils-astuces/supprimer-neige-scripts-greasemonkey.html' title='Supprimer les effets de neige avec Greasemonkey'>Supprimer les effets de neige avec Greasemonkey</a></li><li><a href='http://pioupioum.fr/plugins-spip/google-tools-1-0-1.html' title='SPIP Google Tools 1.0.1'>SPIP Google Tools 1.0.1</a></li></ul>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>Les scripts sont chargés en pied de page.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:2">
<p>Notez que les effets <strong>Puff</strong> et <strong>Size</strong> sont accessibles en chargeant le composant <strong>Scale</strong>.&#160;<a href="#fnref:2" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://pioupioum.fr/plugins-wordpress/wordpress-jquery-ui-effects.html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SPIP Google Tools 1.0.1</title>
		<link>http://pioupioum.fr/plugins-spip/google-tools-1-0-1.html</link>
		<comments>http://pioupioum.fr/plugins-spip/google-tools-1-0-1.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 20:26:10 +0000</pubDate>
		<dc:creator>piouPiouM</dc:creator>
				<category><![CDATA[Plugins Spip]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[indefero]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[projet]]></category>
		<category><![CDATA[Spip]]></category>
		<category><![CDATA[statistiques]]></category>

		<guid isPermaLink="false">http://pioupioum.fr/?p=276</guid>
		<description><![CDATA[La version 1.0.1 du plugin SPIP Google Tools est disponible. Le plugin SPIP Google Tools ajoute proprement le code de suivi du service Google Analytics et le code de vérification du service Google Webmaster Tools sur les pages de votre site.

Cette nouvelle version supporte le nouveau tag Meta de validation de site requis par GWT. [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>La version 1.0.1 du plugin <strong><a href="http://pioupioum.fr/plugins-spip/google-tools.html" title="Plugin Spip Google Tools : intégration de l&#8217;outil de tracking Google Analytics et de Google Webmaster Tools – piouPiouM&#039;s dev">SPIP Google Tools</a></strong> est disponible. Le plugin <a href="http://www.spip.net/" title="SPIP">SPIP</a> Google Tools ajoute proprement le code de suivi du service <a href="http://www.google.com/analytics/" title="Google Analytics  | Official Website">Google Analytics</a> et le code de vérification du service <a href="https://www.google.com/webmasters/tools/">Google Webmaster Tools</a> sur les pages de votre site.</p>

<p>Cette nouvelle version supporte le nouveau tag Meta de validation de site requis par <abbr title="Google Webmaster Tools">GWT</abbr>. En effet, le nouveau meta tag <strong>google-site-verification</strong> remplace désormais l&#8217;ancien <strong>verify-v1</strong>.<br />
<strong>Attention&#160;:</strong> la valeur du code de validation n&#8217;est plus le même&#160;! N&#8217;oubliez pas de renseigner sa nouvelle valeur <em>via</em> la page d&#8217;administration du plugin.</p>

<h3 class='related_post_title'>Continuez votre lecture sur des sujets similaires</h3>

<ul class='related_post'><li><a href='http://pioupioum.fr/plugins-spip/google-tools.html' title='SPIP Google Tools'>SPIP Google Tools</a></li><li><a href='http://pioupioum.fr/plugins-wordpress/wordpress-jquery-ui-effects.html' title='WordPress jQuery UI Effects'>WordPress jQuery UI Effects</a></li><li><a href='http://pioupioum.fr/plugins-wordpress/get-authors-comments.html' title='Get Author&#8217;s Comments'>Get Author&#8217;s Comments</a></li><li><a href='http://pioupioum.fr/outils-astuces/license-helper-textmate-bundle.html' title='Bundle License Helper pour TextMate'>Bundle License Helper pour TextMate</a></li><li><a href='http://pioupioum.fr/developpement/jquery-color-plugin-animation-rgba-support.html' title='Du RGBA dans vos animations avec le plugin jQuery Color'>Du RGBA dans vos animations avec le plugin jQuery Color</a></li></ul>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://pioupioum.fr/plugins-spip/google-tools-1-0-1.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phing Header&#160;: une tâche pour ajouter un en-tête aux fichiers</title>
		<link>http://pioupioum.fr/developpement/phing-header-task.html</link>
		<comments>http://pioupioum.fr/developpement/phing-header-task.html#comments</comments>
		<pubDate>Sun, 30 Aug 2009 19:54:24 +0000</pubDate>
		<dc:creator>piouPiouM</dc:creator>
				<category><![CDATA[Développement Web]]></category>
		<category><![CDATA[automatisation]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[phing]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[projet]]></category>

		<guid isPermaLink="false">http://pioupioum.fr/?p=215</guid>
		<description><![CDATA[Une des tâches les plus rébarbatives est bien l&#8217;ajout d&#8217;une licence d&#8217;utilisation à tous les fichiers sources de ses projets. Ajoutez à cela que, comme tout bon développeur, je n&#8217;aime pas répéter la même opération plus de deux fois, je me suis codé l&#8217;an dernier une tâche Phing pour automatiser cela1&#160;: Header.

Présentation

Phing Header se découpe [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Une des tâches les plus rébarbatives est bien l&#8217;ajout d&#8217;une licence d&#8217;utilisation à tous les fichiers sources de ses projets. Ajoutez à cela que, comme tout bon développeur, je n&#8217;aime pas répéter la même opération plus de deux fois, je me suis codé l&#8217;an dernier une tâche <a href="http://phing.info/" title="Phing"><strong>Phing</strong></a> pour <strong>automatiser</strong> cela<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup>&#160;: <em>Header</em>.</p>

<h2>Présentation</h2>

<p><strong>Phing Header</strong> se découpe en deux tâches&#160;: <strong>HeaderTask</strong> et <strong>HeaderPhpTask</strong>.</p>

<p>La tâche <strong>HeaderTask</strong> permet d&#8217;ajouter un en-tête à n&#8217;importe quel fichier. Elle peut être comparée au paramètre imbriqué <em>header</em> de la tâche <a href="http://ant.apache.org/manual/CoreTasks/concat.html" title="Concat">Concat</a> d&#8217;<a href="http://ant.apache.org/" title="Apache Ant - Welcome">Ant</a><sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup>.</p>

<p>Plus spécifique, la tâche <strong>HeaderPhpTask</strong> est à utiliser pour ajouter un en-tête aux fichiers PHP. Le tag PHP <code>&lt;?php</code> précédera ainsi le contenu à concaténer&#160;; le premier tag PHP étant supprimé.
<span id="more-215"></span></p>

<h2 id="toc">Table des matières</h2>

<ol>
<li><a href="#presentation">Présentation</a></li>
<li><a href="#telecharger">Téléchargement</a></li>
<li><a href="#installation">Installation</a></li>
<li><a href="#attributs">Attributs</a></li>
<li><a href="#nested-tags">Tags imbriquées supportées</a></li>
<li><a href="#utilisation">Exemples d&#8217;utilisation</a></li>
<li><a href="#licence">Licence</a></li>
<li><a href="#todo">Tâches à faire</a></li>
<li><a href="#changelog">Historique des versions et changelog</a></li>
</ol>

<h2 id="telecharger">Téléchargement</h2>

<div class="download box">
    <a href="http://cloud.github.com/downloads/piouPiouM/phing-header/phing-header-1.0.zip" title="Téléchargement depuis les serveurs de GitHub"><span>Télécharger la dernière version de la tâche <strong>Phing Header</strong> (8&#160;Ko)</span></a>
</div>

<p>Vous pouvez également cloner le projet depuis son <a href="http://github.com/piouPiouM/phing-header/" title="piouPiouM's phing-header at master - GitHub">dépôt GitHub</a>.</p>

<h2 id="installer">Installation</h2>

<p>Si vous suivez la <a href="http://phing.info/docs/guide/current/chapters/ExtendingPhing.html#CreatingATask" title="Phing Guide - Extending Phing">documentation</a> de Phing, il vous faut copier le répertoire<sup id="fnref:3"><a href="#fn:3" rel="footnote">3</a></sup> <code>header</code> contenu dans l&#8217;archive dans le dossier <code>classes/phing/tasks/my</code> de votre installation Phing.</p>

<p>Personnellement je préfère utiliser un chemin externe à l&#8217;installation de base de Phing. Pour ce faire, il suffit de créer l&#8217;arborescence <code>phing/tasks/my</code> à l&#8217;endroit désiré (par exemple <code>/Library/WebServer/share/php</code>) et de déclarer ce dernier <em>via</em> la propriété <code>include_path</code> de votre fichier <code>php.ini</code>. Ce qui nous donne ici&#160;:</p>


<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">include_path</span> <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;.:/Library/WebServer/share/php:/usr/local/php5/lib/php&quot;</span></pre></div></div>


<p>et l&#8217;arborescence suivante&#160;:</p>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">/Library/WebServer/share/php/
  `-- phing/
       `-- tasks/
            `-- my/
                 `-- header/
                      |-- HeaderPhpTask.php
                      `-- HeaderTask.php</pre></div></div>


<p>Vous devrez déclarer ces nouvelles tâches à l&#8217;aide de la tâche <a href="http://phing.info/docs/guide/current/chapters/appendixes/AppendixB-CoreTasks.html#TaskdefTask" title="Phing Guide - Core Tasks">Taskdef</a> dans vos fichiers de build. Par exemple&#160;:</p>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;header&quot;</span> <span style="color: #000066;">classname</span>=<span style="color: #ff0000;">&quot;phing.tasks.my.header.HeaderTask&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>


<h2>Attributs</h2>

<p>Les tâches <strong>HeaderTask</strong> et <strong>HeaderPhpTask</strong> se partagent la liste d&#8217;attributs qui suit&#160;:</p>

<table>
<thead>
<tr>
  <th>Nom</th>
  <th>Type</th>
  <th>Description</th>
  <th align="center">Defaut</th>
  <th align="center">Requis</th>
</tr>
</thead>
<tbody>
<tr>
  <td>file</td>
  <td>String</td>
  <td>Le chemin du fichier en-tête à charger.</td>
  <td align="center">n/a</td>
  <td align="center">Oui</td>
</tr>
<tr>
  <td>eol</td>
  <td>String</td>
  <td>Préciser le <a href="#eol">caractère de fin de ligne</a>.</td>
  <td align="center"><code>PHP_EOL</code></td>
  <td align="center">Non</td>
</tr>
<tr>
  <td>preservelastmodified</td>
  <td>Boolean</td>
  <td>Conserver la date de dernière modification de tous les fichiers.</td>
  <td align="center">false</td>
  <td align="center">Non</td>
</tr>
<tr>
  <td>failonerror</td>
  <td>Boolean</td>
  <td>Stopper le processus à la première erreur survenue.</td>
  <td align="center">true</td>
  <td align="center">Non</td>
</tr>
<tr>
  <td>verbose</td>
  <td>Boolean</td>
  <td>Activer le mode verbeu.</td>
  <td align="center">false</td>
  <td align="center">Non</td>
</tr>
<tr>
  <td>encoding</td>
  <td>String</td>
  <td>Préciser l&#8217;encodage du fichier en-tête.</td>
  <td align="center">UTF-8</td>
  <td align="center">Non</td>
</tr>
<tr>
  <td>toencoding</td>
  <td>String</td>
  <td>Préciser l&#8217;encodage des fichiers de destination.</td>
  <td align="center">UTF-8</td>
  <td align="center">Non</td>
</tr>
</tbody>
</table>

<h3 id="eol">Caractères de fin de ligne valides</h3>

<ul>
<li>cr&#160;: un unique CR.</li>
<li>lf&#160;: un unique LF.</li>
<li>crlf&#160;: la paire CRLF.</li>
<li>mac&#160;: un unique CR.</li>
<li>unix&#160;: un unique LF.</li>
<li>dos&#160;: la paire CRLF.</li>
</ul>

<p>La valeur par défaut est dépendante de la plateforme utilisée. Pour les système Unix, le caractère de fin de ligne par défaut est <code>LF</code>. Pour les systèmes de types DOS (incluant Windows), il s&#8217;agit de <code>CRLF</code>. Enfin, <code>CR</code> est la caractère utilisé par défaut sur les systèmes Mac OS.</p>

<h2 id="nested-tags">Tags imbriquées supportées</h2>

<ul>
<li><a href="http://phing.info/docs/guide/current/chapters/appendixes/AppendixD-CoreTypes.html#Fileset" title="Phing Guide - Core Types">FileSet</a>.</li>
</ul>

<h2 id="utilisation">Exemples d&#8217;utilisation</h2>

<h3>Ajouter un en-tête à un fichier PHP</h3>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!-- load the header php task --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;phpheader&quot;</span> <span style="color: #000066;">classname</span>=<span style="color: #ff0000;">&quot;phing.tasks.my.header.HeaderPhpTask&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;phpheader</span></span>
<span style="color: #009900;">    <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${project.basedir}/LICENSE&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">tofile</span>=<span style="color: #ff0000;">&quot;${project.basedir}/build/foo.php&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/phpheader<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>


<h3>Ajouter un en-tête à un ensemble de fichiers PHP</h3>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!-- load the header php task --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;phpheader&quot;</span> <span style="color: #000066;">classname</span>=<span style="color: #ff0000;">&quot;phing.tasks.my.header.HeaderPhpTask&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;phpheader</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${project.basedir}/LICENSE&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${project.basedir}/build&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.php&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exclude</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/foo*.php&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/phpheader<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>


<h3>Ajouter un en-tête encodé en ISO-8859-1 à un fichier encodé en UTF-8</h3>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!-- load the header task --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;header&quot;</span> <span style="color: #000066;">classname</span>=<span style="color: #ff0000;">&quot;phing.tasks.my.header.HeaderTask&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;header</span></span>
<span style="color: #009900;">    <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${project.basedir}/LICENSE&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;ISO-8859-1&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">tofile</span>=<span style="color: #ff0000;">&quot;${project.basedir}/build/foo.txt&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>


<h2 id="licence">Licence</h2>

<p>Copyright (C) 2008 Mehdi Kabab, distribué sous licence <a href="http://www.gnu.org/licenses/lgpl.html" title="GNU Lesser General Public License - GNU Project - Free Software Foundation (FSF)"><abbr title="GNU Lesser Public General License">LGPL</abbr></a> version 3 ou supérieure.</p>

<h2 id="todo">Tâches à faire</h2>

<p>Fonctionnalités en attente de développement.</p>

<ul>
<li>[HeaderPhpTask] Optimiser la détection des tags PHP.</li>
<li>[Projet] Améliorer l&#8217;aspect POO.</li>
</ul>

<h2 id="changelog">Historique des versions et changelog</h2>

<h3>1.0</h3>

<ul>
<li>Version initiale.</li>
</ul>

<h3 class='related_post_title'>Continuez votre lecture sur des sujets similaires</h3>

<ul class='related_post'><li><a href='http://pioupioum.fr/snippets/ant-bookmarklet-macrodef.html' title='Générer des bookmarklets via Ant'>Générer des bookmarklets via Ant</a></li><li><a href='http://pioupioum.fr/outils-astuces/license-helper-textmate-bundle.html' title='Bundle License Helper pour TextMate'>Bundle License Helper pour TextMate</a></li><li><a href='http://pioupioum.fr/snippets/textmate-commande-exporter-mots-word-wrap.html' title='TextMate : commande &laquo;&nbsp;Export words&nbsp;&raquo;'>TextMate&#160;: commande &laquo;&nbsp;Export words&nbsp;&raquo;</a></li><li><a href='http://pioupioum.fr/snippets/php-installer-apc-macosx.html' title='PHP : installer APC sous Mac OS X Leopard'>PHP&#160;: installer APC sous Mac OS X Leopard</a></li><li><a href='http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html' title='PHP : convertir un DATETIME en un timestamp UNIX'>PHP&#160;: convertir un DATETIME en un timestamp UNIX</a></li></ul>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>nous travaillons par conséquent sur des projets PHP. Cependant, la tâche est utilisable pour tout type de fichier non binaire.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:2">
<p>la tâche <em>Concat</em> n&#8217;est malheureusement pas encore disponible dans Phing.&#160;<a href="#fnref:2" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:3">
<p>ou directement les fichiers <code>HeaderTask.php</code> et <code>HeaderPhpTask.php</code>. Il vous suffira d&#8217;adapter en conséquence le chemin d&#8217;accès lors de leur déclaration <em>via</em> <code>taskdef</code>.&#160;<a href="#fnref:3" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://pioupioum.fr/developpement/phing-header-task.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SPIP Google Tools</title>
		<link>http://pioupioum.fr/plugins-spip/google-tools.html</link>
		<comments>http://pioupioum.fr/plugins-spip/google-tools.html#comments</comments>
		<pubDate>Tue, 04 Aug 2009 09:54:37 +0000</pubDate>
		<dc:creator>piouPiouM</dc:creator>
				<category><![CDATA[Plugins Spip]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[indefero]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[projet]]></category>
		<category><![CDATA[Spip]]></category>
		<category><![CDATA[statistiques]]></category>

		<guid isPermaLink="false">http://pioupioum.fr/?p=179</guid>
		<description><![CDATA[Le plugin SPIP Google Tools propose d&#8217;ajouter proprement1 le code de suivi du service Google Analytics sur les pages de votre site.

Optionnellement, ce plugin vous permet de choisir le champ d&#8217;application du code de tracking GA&#160;: restreindre son ajout à l&#8217;espace publique ou le généraliser à l&#8217;ensemble du site (partie privée et publique).

Autre fonctionnalité, le [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Le plugin <strong><a href="http://www.spip.net/" title="SPIP">SPIP</a> Google Tools</strong> propose d&#8217;ajouter <em>proprement</em><sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> le code de suivi du service <a href="http://www.google.com/analytics/" title="Google Analytics | Official Website">Google Analytics</a> sur les pages de votre site.</p>

<p>Optionnellement, ce plugin vous permet de choisir le champ d&#8217;application du code de tracking GA&#160;: restreindre son ajout à l&#8217;espace publique ou le généraliser à l&#8217;ensemble du site (partie privée et publique).</p>

<p>Autre fonctionnalité, le plugin <strong>SPIP Google Tools</strong> propose d&#8217;inclure sur la page d&#8217;accueil du site la balise Meta de vérification de site proposé par le service <a href="https://www.google.com/webmasters/tools/">Google Webmasters Tools</a>.
<span id="more-179"></span></p>

<h2 id="toc">Table des matières</h2>

<ol>
<li><a href="#telecharger">Téléchargement</a></li>
<li><a href="#installation">Installation</a></li>
<li><a href="#compatibilite">Compatibilité</a></li>
<li><a href="#todo">Tâches à faire</a></li>
<li><a href="#developpement">Développement</a></li>
<li><a href="#changelog">Historique des versions et changelog</a></li>
</ol>

<h2 id="telecharger">Téléchargement</h2>

<div class="download box">
    <a href="http://pioupioum.indefero.net/p/spip-google-tools/downloads/3/get/" title="Téléchargement depuis la forge InDefero"><span>Télécharger la dernière version du plugin SPIP Google Tools (15.01&#160;Ko)</span></a>
</div>

<h2 id="installer">Installation</h2>

<ol>
<li>Décompressez l&#8217;archive puis téléversez le répertoire <code>spip-google-tools</code> dans votre répertoire <code>plugins</code>.</li>
<li>Procédez à son <a href="http://www.spip.net/fr_article3396.html" title="Installer un plugin - SPIP">activation</a>.</li>
<li>Rendez-vous sur la page d&#8217;administration du plugin <em>via</em> le menu Statistiques > Google Tools.</li>
</ol>

<p><div id="attachment_178" class="wp-caption aligncenter" style="width: 466px"><a href="http://assets1.pioupioum.fr/uploads/2009/08/spip-google-tools.png"><img src="http://assets1.pioupioum.fr/uploads/2009/08/spip-google-tools-456x350.png" alt="Panel de configuration du plugin Spip Google Tools" title="Configuration du plugin Spip Google Tools" width="456" height="350" class="size-medium wp-image-178" /></a><p class="wp-caption-text">Panel de configuration du plugin Spip Google Tools</p></div></p>

<h3>Notes</h3>

<ul>
<li>Le plugin ne nécessite aucune dépendance particulière.</li>
<li>L&#8217;inclusion de la balise de validation de Google Webmasters Tools requiert la présence de la balise <code>#INSERT_HEAD</code> dans les squelettes.</li>
</ul>

<h2 id="compatibilite">Compatibilité</h2>

<ul>
<li>SPIP 1.9.2+</li>
<li>SPIP 2.0.0+</li>
</ul>

<h2 id="todo">Tâches à faire</h2>

<p>Fonctionnalités en attente de développement.</p>

<ul>
<li>Ajouter une gestion des liens sortants et des téléchargements.</li>
</ul>

<h2 id="developpement">Développement</h2>

<p>Le code source du plugin, distribué sous licence <a href="http://fr.wikipedia.org/wiki/Licence_publique_g%C3%A9n%C3%A9rale_GNU" title="Licence publique générale GNU - Wikipédia">GNU/GLP</a>, est accessible sur <a href="http://pioupioum.indefero.net/p/spip-google-tools/" title="spip-google-tools - Plugin Spip d'intégration de Google Analytics et Google Webmasters Tools.">ma forge InDefero</a>.</p>

<p>Vous venez de trouver un bug&#160;? N&#8217;hésitez pas à me <a href="http://pioupioum.indefero.net/p/spip-google-tools/issues/" title="spip-google-tools Open Issues - Plugin Spip d'intégration de Google Analytics et Google Webmasters Tools.">le faire remonter</a>&#160;!</p>

<h2 id="changelog">Historique des versions et changelog</h2>

<h3>1.0.1</h3>

<ul>
<li>Support du nouveau code Meta de vérification de site <code>google-site-verification</code> du service Google Webmaster Tools.</li>
</ul>

<h3>1.0.0</h3>

<ul>
<li>Version initiale.</li>
</ul>

<h3 class='related_post_title'>Continuez votre lecture sur des sujets similaires</h3>

<ul class='related_post'><li><a href='http://pioupioum.fr/plugins-spip/google-tools-1-0-1.html' title='SPIP Google Tools 1.0.1'>SPIP Google Tools 1.0.1</a></li><li><a href='http://pioupioum.fr/plugins-wordpress/wordpress-jquery-ui-effects.html' title='WordPress jQuery UI Effects'>WordPress jQuery UI Effects</a></li><li><a href='http://pioupioum.fr/plugins-wordpress/get-authors-comments.html' title='Get Author&#8217;s Comments'>Get Author&#8217;s Comments</a></li><li><a href='http://pioupioum.fr/outils-astuces/license-helper-textmate-bundle.html' title='Bundle License Helper pour TextMate'>Bundle License Helper pour TextMate</a></li><li><a href='http://pioupioum.fr/developpement/jquery-color-plugin-animation-rgba-support.html' title='Du RGBA dans vos animations avec le plugin jQuery Color'>Du RGBA dans vos animations avec le plugin jQuery Color</a></li></ul>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>c&#8217;est à dire que le code de suivi est ajouté en fin de page comme le préconise Google ainsi que tout bon développeur web. Le chargement de vos pages n&#8217;est ainsi pas bloqué par une latence des serveurs du service.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://pioupioum.fr/plugins-spip/google-tools.html/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Get Author&#8217;s Comments</title>
		<link>http://pioupioum.fr/plugins-wordpress/get-authors-comments.html</link>
		<comments>http://pioupioum.fr/plugins-wordpress/get-authors-comments.html#comments</comments>
		<pubDate>Mon, 03 Aug 2009 14:45:18 +0000</pubDate>
		<dc:creator>piouPiouM</dc:creator>
				<category><![CDATA[Plugins WordPress]]></category>
		<category><![CDATA[commentaires]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[projet]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pioupioum.fr/?p=168</guid>
		<description><![CDATA[Get Author&#8217;s Comments est un plugin pour WordPress permettant de récupérer ou d&#8217;afficher la liste des commentaires posté par un utilisateur. De nombreuses options sont disponibles offrant entre autres comme possibilités de&#160;:


lister les commentaires d&#8217;un utilisateur dans l&#8217;article courant.
récupérer les commentaires qu&#8217;une personne a posté dans un article donné.
afficher les 10 derniers commentaires d&#8217;un utilisateur.
etc.


Afin [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><strong>Get Author&#8217;s Comments</strong> est un <strong>plugin</strong> pour <strong><a href="http://wordpress.org/" title="WordPress &#8250; Blog Tool and Publishing Platform">WordPress</a></strong> permettant de récupérer ou d&#8217;afficher la liste des <strong>commentaires</strong> posté par un utilisateur. De nombreuses options sont disponibles offrant entre autres comme possibilités de&#160;:</p>

<ul>
<li>lister les commentaires d&#8217;un utilisateur dans l&#8217;article courant.</li>
<li>récupérer les commentaires qu&#8217;une personne a posté dans un article donné.</li>
<li>afficher les 10 derniers commentaires d&#8217;un utilisateur.</li>
<li>etc.</li>
</ul>

<p>Afin d&#8217;éviter les homonymes, un utilisateur est identifié par son nom et son ou ses adresses e-mails.</p>

<p>En affichage direct, <strong>Get Author&#8217;s Comments</strong> produit des items de liste (&lt;li>). Il se base en effet sur la fonction <a href="http://codex.wordpress.org/Template_Tags/wp_list_comments" title="Template Tags/wp list comments &laquo; WordPress Codex">wp_list_comments</a> qui a été introduite dans la version 2.7 de l&#8217;API de WordPress.
<span id="more-168"></span></p>

<h2 id="toc">Table des matières</h2>

<ol>
<li><a href="#telecharger">Téléchargement</a></li>
<li><a href="#installer">Installation</a></li>
<li><a href="#exemples">Exemples d&#8217;utilisation</a></li>
<li><a href="#parametres">Liste des paramètres</a></li>
<li><a href="#todo">Tâches à faire</a></li>
<li><a href="#changelog">Historique des versions et changelog</a></li>
</ol>

<h2 id="telecharger">Téléchargement</h2>

<div class="download box">
    <a href="http://downloads.wordpress.org/plugin/get-authors-comments.1.1.0.zip" title="Téléchargement depuis les serveurs de WordPress.org"><span>Télécharger la dernière version du plugin Get Author&#8217;s Comments</span></a>
</div>

<p>Vous pouvez également vous rendre sur la <a href="http://wordpress.org/extend/plugins/get-authors-comments/" title="WordPress &#8250; Get Author's Comments &laquo; WordPress Plugins">page WordPress.org du plugin</a> ou lancer son téléchargement et installation directement depuis l&#8217;interface d&#8217;administration de votre WordPress.</p>

<h2 id="installer">Installation</h2>

<p>Get Author&#8217;s Comments s&#8217;installe en 3 étapes&#160;:</p>

<ol>
<li>Téléversez le répertoire <code>get_authors_comments</code> dans votre répertoire <code>/wp-content/plugins/</code>.</li>
<li>Activez le plugin <code>Get Author's Comments</code> <em>via</em> le menu <em>Extensions</em> du pannel d&#8217;administration de WordPress.</li>
<li>Utilisez-le dans votre thème&#160;:</li>
</ol>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>function_exist<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ppm_author_comments'</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>
    &lt;ol&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> ppm_author_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'nom'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'email'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_ID'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'args'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/ol&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>


<h2 id="exemples">Exemples d&#8217;utilisation</h2>

<h3>Afficher les commentaires d&#8217;un utilisateur postés dans l&#8217;article courant</h3>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #339933;">&lt;</span>ol<span style="color: #339933;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> ppm_author_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'piouPiouM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'foo@example.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/ol&gt;
?&gt;</pre></td></tr></table></div>


<p>Ou, si l&#8217;utilisateur <em>piouPiouM</em> a écrit avec 2 adresses e-mails différentes&#160;:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #339933;">&lt;</span>ol<span style="color: #339933;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> ppm_author_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'piouPiouM'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'foo@example.com'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'bar@example.org'</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>
    &lt;/ol&gt;
?&gt;</pre></td></tr></table></div>


<h3>Afficher l&#8217;intégralité des commentaires posté par un utilisateur sur le site</h3>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #339933;">&lt;</span>ol<span style="color: #339933;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> ppm_author_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'piouPiouM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'foo@example.com'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'all=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/ol&gt;
?&gt;</pre></td></tr></table></div>


<h3>Lister les commentaires rédigés par un utilisateur dans l&#8217;article ayant 9 pour identifiant</h3>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #339933;">&lt;</span>ol<span style="color: #339933;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> ppm_author_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'piouPiouM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'foo@example.com'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/ol&gt;
?&gt;</pre></td></tr></table></div>


<p><strong>Note&#160;:</strong><br />
Si vous utilisez les fonctions <code>ppm_author_comments</code> ou <code>ppm_get_author_comments</code> à l&#8217;intérieur de <a href="http://codex.wordpress.org/fr:La_Boucle" title="La Boucle &laquo; WordPress Codex">la boucle</a>, l&#8217;argument <code>$postID</code> sera remplacé automatiquement par l&#8217;identifiant numérique de l&#8217;article courant s&#8217;il n&#8217;était pas renseigné ou défini à <code>null</code>.</p>

<h3>Afficher les derniers commentaires d&#8217;un utilisateur, ordonnés par post_ID</h3>

<p>Le code qui suit sert à lister les 10 derniers commentaires de piouPiouM, ordonnés par post_ID ascendant, et affichera la date et l&#8217;extrait des commentaires concernés.</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #000088;">$comments</span> <span style="color: #339933;">=</span> ppm_get_author_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'piouPiouM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'foo@example.com'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number=10&amp;order=ASC&amp;orderby=post_id'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comment</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;p&gt;&lt;cite&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_author_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/cite&gt; à dit&amp;nbsp;:&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;
        &lt;p&gt;Commentaire posté le <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_date<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'n-j-Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>:&lt;br/&gt;&lt;/p&gt;
        &lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_excerpt<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>&lt;/p&gt;
    &lt;/li&gt;
&lt;/ol&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>


<h3>Commentaires avec un affichage personnalisé</h3>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #339933;">&lt;</span>ol<span style="color: #339933;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> ppm_author_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'piouPiouM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'info@example.com'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'callback=mytheme_comment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/ol&gt;
?&gt;</pre></td></tr></table></div>


<p>Se reporter à la page <a href="http://codex.wordpress.org/Template_Tags/wp_list_comments#Comments_Only_With_A_Custom_Comment_Display" title="Template Tags/wp list comments &laquo; WordPress Codex">Comments Only With A Custom Comment Display</a> pour un exemple d&#8217;utilisation de la fonction de callback.</p>

<h3>Afficher un compteur des commentaires posté par l&#8217;utilisateur identifié sur le site</h3>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    get_currentuserinfo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$comments</span> <span style="color: #339933;">=</span> ppm_get_author_comments<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_email</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'all=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Hello &lt;a href=&quot;/author/%s/&quot;&gt;%s&lt;/a&gt;&amp;nbsp;! '</span>
         <span style="color: #339933;">.</span> <span style="color: #0000ff;">'[ &lt;a href=&quot;%s&quot; class=&quot;logout&quot;&gt;Déconnexion&lt;/a&gt; ]&lt;br/&gt;'</span>
         <span style="color: #339933;">.</span> <span style="color: #0000ff;">'%d articles and %d commentaires'</span><span style="color: #339933;">,</span>
        <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_login</span><span style="color: #339933;">,</span>
        <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span><span style="color: #339933;">,</span>
        wp_logout_url<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        get_usernumposts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments</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></td></tr></table></div>


<p>Produira le code HTML&#160;:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">Hello &lt;a href=&quot;/author/piouPiouM/&quot;&gt;piouPiouM&lt;/a&gt;&amp;nbsp;! [ &lt;a href=&quot;http://www.example.com/wp-login.php?action=logout&amp;amp;_wpnonce=xxxxxxxxxx&quot; class=&quot;logout&quot;&gt;Déconnexion&lt;/a&gt; ]&lt;br/&gt;
12 articles and 35 commentaires</pre></td></tr></table></div>


<p><div id="attachment_167" class="wp-caption aligncenter" style="width: 620px"><a href="http://assets1.pioupioum.fr/uploads/2009/08/get-authors-comment-la-lune-mauve.jpg" title="Agrandir"><img src="http://assets1.pioupioum.fr/uploads/2009/08/get-authors-comment-la-lune-mauve-610x205.jpg" alt="Afficher un compteur de commentaires pour un utilisateur donné" width="610" height="205" class="size-medium wp-image-167"/></a><p class="wp-caption-text">Afficher un compteur de commentaires pour un utilisateur donné. Source&#160;: <a href='http://www.lalunemauve.fr/'>La Lune Mauve</a>.</p></div></p>

<h2 id="parametres">Liste des paramètres</h2>

<p>Voici la liste des paramètres acceptés par le 4<sup>ème</sup> argument <code>$args</code> des fontions <code>ppm_get_author_comments</code> et <code>ppm_author_comments</code>&#160;:</p>

<p><strong>all</strong><br />
<em>(boolean)</em> <em>(optionnel)</em> Récupérer tous les commentaires. Par défaut à <em>FALSE</em>.</p>

<p><strong>number</strong><br />
<em>(integer)</em> <em>(optionnel)</em> Le nombre de commentaires à retourner. Par défaut à <em>None</em>, retourne tous les commentaires.</p>

<p><strong>offset</strong><br />
<em>(integer)</em> <em>(optionnel)</em> Numéro de commentaire à partir duquel la recherche sera effectuée. Par défaut à 0.</p>

<p><strong>orderby</strong><br />
<em>(string)</em> <em>(optionnel)</em> Ordonner les commentaires par l&#8217;une ou plusieurs des valeurs qui suivent (séparées par un espace)&#160;:</p>

<ul>
<li><code>'comment_ID'</code> - Trier numériquement par l&#8217;ID des commentaires.</li>
<li><code>'content'</code> - Trier suivant le contenu.</li>
<li><code>'date'</code> - Trier selon la date de création. (Par Défaut)</li>
<li><code>'post_ID'</code> - Trier numériquement par l&#8217;ID des articles.</li>
<li><code>'rand'</code> - Trier aléatoirement.</li>
<li><code>'status'</code> - Trier par statut.</li>
<li><code>'type'</code> - Trier par type.</li>
</ul>

<p><strong>order</strong><br />
<em>(string)</em> <em>(optionnel)</em> Ordre de tri. Les valeurs valides sont&#160;:</p>

<ul>
<li><code>'ASC'</code> - Croissant (du plus petit au plus grand).</li>
<li><code>'DESC'</code> - Décroissant (du plus grand au plus petit). (Par défaut)</li>
</ul>

<p><strong>output</strong><br />
<em>(string)</em> <em>(optionnel)</em> Le format de sortie. Seulement pour <code>ppm_get_author_comments</code>.</p>

<ul>
<li><code>OBJECT</code> - Retourne un objet. (Default)</li>
<li><code>ARRAY_A</code> - Retourne un tableau associatif (nom des champs => valeurs).</li>
<li><code>ARRAY_N</code> - Retourne un tableau indexé numériquement de la valeur des champs.</li>
<li><code>HTML</code> - Retourne une version (x)HTML générée par la fonction <a href="http://codex.wordpress.org/Template_Tags/wp_list_comments">wp&#95;list&#95;comments</a>.</li>
</ul>

<p><strong>status</strong><br />
<em>(string)</em> <em>(optionnel)</em> Les statut des commentaires. Par défaut à «&thinsp;en attente&thinsp;» et «&thinsp;approuvé&thinsp;». Valeurs valides&#160;:</p>

<ul>
<li><code>'hold'</code> - En attente de validation.</li>
<li><code>'approve'</code> - Approuvé.</li>
<li><code>'spam'</code> - Indésirable.</li>
</ul>

<h2 id="todo">Tâches à faire</h2>

<p>Fonctionnalités en attente de développement.</p>

<ul>
<li>Tester la prise en charge de la pagination.</li>
</ul>

<h2 id="changelog">Historique des versions et changelog</h2>

<h3>1.1.0</h3>

<ul>
<li>Ajout du paramètre <code>all</code> permettant de récupérer tous les commentaires d&#8217;un utilisateur.</li>
<li>Ajout du changelog et de nouveaux exemples d&#8217;utilisation.</li>
</ul>

<h3>1.0.1</h3>

<ul>
<li>Les paramètres de <code>$args</code> sont désormais non sensibles à la casse.</li>
<li>Support de 2 nouveaux paramètres de tri&#160;: <code>comment_ID</code> et <code>post_ID</code>.</li>
<li>Définit par défaut le tri par <code>date</code>.</li>
</ul>

<h3>1.0.0</h3>

<ul>
<li>Version initiale.</li>
</ul>

<h3 class='related_post_title'>Continuez votre lecture sur des sujets similaires</h3>

<ul class='related_post'><li><a href='http://pioupioum.fr/plugins-wordpress/wordpress-jquery-ui-effects.html' title='WordPress jQuery UI Effects'>WordPress jQuery UI Effects</a></li><li><a href='http://pioupioum.fr/plugins-spip/google-tools-1-0-1.html' title='SPIP Google Tools 1.0.1'>SPIP Google Tools 1.0.1</a></li><li><a href='http://pioupioum.fr/plugins-spip/google-tools.html' title='SPIP Google Tools'>SPIP Google Tools</a></li><li><a href='http://pioupioum.fr/outils-astuces/license-helper-textmate-bundle.html' title='Bundle License Helper pour TextMate'>Bundle License Helper pour TextMate</a></li><li><a href='http://pioupioum.fr/developpement/jquery-color-plugin-animation-rgba-support.html' title='Du RGBA dans vos animations avec le plugin jQuery Color'>Du RGBA dans vos animations avec le plugin jQuery Color</a></li></ul>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://pioupioum.fr/plugins-wordpress/get-authors-comments.html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
