<?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>Kune.fr &#187; Wordpress</title>
	<atom:link href="http://kune.fr/blog/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://kune.fr</link>
	<description>Bougeons le web</description>
	<lastBuildDate>Fri, 18 Sep 2009 17:11:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WP Serie: Les meilleurs hacks wordpress #2</title>
		<link>http://kune.fr/blog/wordpress/wp-serie-les-meilleurs-hacks-wordpress/</link>
		<comments>http://kune.fr/blog/wordpress/wp-serie-les-meilleurs-hacks-wordpress/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 16:09:07 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[fonction]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=210</guid>
		<description><![CDATA[Suite de la série des meilleurs hacks WordPress. Au sommaire: Reconnaissance du navigateur de vos visiteurs, Proposer un flux RSS personnalisé Tester si l&#8217;article consulté contient au moins une image Reconnaitre le navigateur de vos visiteurs dans WordPress: Rendre son site compatible avec internet explorer tous les navigateurs est souvent un travail de longue haleine. [...]]]></description>
			<content:encoded><![CDATA[<p>Suite de la série des meilleurs hacks WordPress. Au sommaire:</p>
<ol>
<li><a href="#id1">Reconnaissance du navigateur de vos visiteurs,</a></li>
<li><a href="#id2">Proposer un flux RSS personnalisé</a></li>
<li><a href="#id3">Tester si l&#8217;article consulté contient au moins une image</a></li>
</ol>
<ol>
<li><span id="id1">Reconnaitre le navigateur de vos visiteurs dans WordPress:</span><br />
		<br />
		Rendre son site compatible avec <s>internet explorer</s> tous les navigateurs est souvent un travail de longue haleine.<br />
		Voilà une fonctions aux multiples usages qui vous permettra de savoir quel est le navigateur de vos visiteurs, afin de changer le style css de votre page.<br />
		Pour ce faire, ouvrez (ou créez) votre fichier functions.php (situé dans le dossier de votre thème et collez-y:</p>
<pre class="brush: php;">
		&lt;?php
			add_filter('body_class','browser_body_class');
			function browser_body_class($classes) {
				global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;

				if($is_lynx) $classes[] = 'lynx';
				elseif($is_gecko) $classes[] = 'gecko';
				elseif($is_opera) $classes[] = 'opera';
				elseif($is_NS4) $classes[] = 'ns4';
				elseif($is_safari) $classes[] = 'safari';
				elseif($is_chrome) $classes[] = 'chrome';
				elseif($is_IE) $classes[] = 'ie';
				else $classes[] = 'unknown';

				if($is_iphone) $classes[] = 'iphone';
				return $classes;
			}
			?&gt;
		</pre>
<p>		Une fois l&#8217;opération terminée, votre balide  devrait ressemble à ceci pour un visiteur utilisant safari:</p>
<pre class="brush: xml;">
		&lt;body class=&amp;quot;home blog logged-in safari&amp;quot;&gt;
		</pre>
<p>		Pratique non? Une fonction trouvée via <a href="http://www.nathanrice.net/blog/browser-detection-and-the-body_class-function/" target="_blank">http://www.nathanrice.net/blog/browser-detection-and-the-body_class-function/</a>
		</li>
<li>
			<span id="id1">Proposer un flux RSS personnalisé:</span><br />
			Si vous passer par Feed-Burner pour proposer votre flux RSS ou si vous souhaitez simplement fournir un lien vers un flux RSS perticulier et personnalisé (avec par exemple une catégorie en moins et comportant le tag &laquo;&nbsp;WordPress&nbsp;&raquo;), voilà une fonction simple est utile.<br />
			Commencez par créer un template de page (que vous enregistrerez dans le dossier de votre thème), en la nommant par exemple custom-feed.php, et collez-y ceci:</p>
<pre class="brush: php;">
			&lt;?php
/*
Template Name: Custom Feed
*/

$numposts = 5;

function yoast_rss_date( $timestamp = null ) {
  $timestamp = ($timestamp==null) ? time() : $timestamp;
  echo date(DATE_RSS, $timestamp);
}

function yoast_rss_text_limit($string, $length, $replacer = '...') {
  $string = strip_tags($string);
  if(strlen($string) &gt; $length)
    return (preg_match('/^(.*)\W.*$/', substr($string, 0, $length+1), $matches) ? $matches[1] : substr($string, 0, $length)) . $replacer;
  return $string;
}

$posts = query_posts('showposts='.$numposts);

$lastpost = $numposts - 1;

header(&quot;Content-Type: application/rss+xml; charset=UTF-8&quot;);
echo '&lt;?xml version=&quot;1.0&quot;?&gt;';
?&gt;&lt;rss version=&quot;2.0&quot;&gt;
&lt;channel&gt;
  &lt;title&gt;VotreSite E-mail Update&lt;/title&gt;
  &lt;link&gt;http://votresite.com/&lt;/link&gt;
  &lt;description&gt;Les articles personnalise de mon blog.&lt;/description&gt;
  &lt;language&gt;en-us&lt;/language&gt;
  &lt;pubDate&gt;&lt;?php yoast_rss_date( strtotime($ps[$lastpost]-&gt;post_date_gmt) ); ?&gt;&lt;/pubDate&gt;
  &lt;lastBuildDate&gt;&lt;?php yoast_rss_date( strtotime($ps[$lastpost]-&gt;post_date_gmt) ); ?&gt;&lt;/lastBuildDate&gt;
  &lt;managingEditor&gt;votre@email.com&lt;/managingEditor&gt;
&lt;?php foreach ($posts as $post) { ?&gt;
  &lt;item&gt;
    &lt;title&gt;&lt;?php echo get_the_title($post-&gt;ID); ?&gt;&lt;/title&gt;
    &lt;link&gt;&lt;?php echo get_permalink($post-&gt;ID); ?&gt;&lt;/link&gt;
    &lt;description&gt;&lt;?php echo '&lt;![CDATA['.yoast_rss_text_limit($post-&gt;post_content, 500).'&lt;br/&gt;&lt;br/&gt;Keep on reading: &lt;a href=&quot;'.get_permalink($post-&gt;ID).'&quot;&gt;'.get_the_title($post-&gt;ID).'&lt;/a&gt;'.']]&gt;';  ?&gt;&lt;/description&gt;
    &lt;pubDate&gt;&lt;?php yoast_rss_date( strtotime($post-&gt;post_date_gmt) ); ?&gt;&lt;/pubDate&gt;
    &lt;guid&gt;&lt;?php echo get_permalink($post-&gt;ID); ?&gt;&lt;/guid&gt;
  &lt;/item&gt;
&lt;?php } ?&gt;
&lt;/channel&gt;
&lt;/rss&gt;
</pre>
<p>			Maintenant une modification s&#8217;impose. Repérez la ligne:</p>
<pre class="brush: php;">
			$posts = query_posts('showposts='.$numposts);
			</pre>
<p>			Dans les parenthèses, mettez les conditions qui vous interressent. Si vous n&#8217;y connaissez rien, visitez cette page: <a href="http://codex.wordpress.org/Template_Tags/query_posts" target="_blank">Les requetes query_post() de wordpress</a><br />
			Ensuite, allez créer une nouvelle page, que vous nommerez comm vous voulez. N&#8217;y mettez pas de texte à l&#8217;interieur et choisissez &#8216;Custom Feed&#8217; comme modèle de page.</p>
<p>			Il ne vous reste plus qu&#8217;à cliquer sur le lien de la page est vous verrez votre flux RSS!</p>
<p>			Article original: <a href="http://www.wprecipes.com/creating-user-defined-rss-feeds-in-wordpress" target="_blank">http://www.wprecipes.com/creating-user-defined-rss-feeds-in-wordpress</a>
		</li>
<li>
			<span id="id3">Tester si l&#8217;article consulté  contient au moins une image:<span id="id1"> </br><br />
			Si vous souhaitez savoir si un article possède au moins un image (pratique si on veut l&#8217;afficher par exemple!), collez ce morceau de code dans la boucle des articles (loop):</p>
<pre class="brush: php;">
			&lt;?php
			$content = $post-&gt;post_content;
			$searchimages = '~&lt;img [^&gt;]* /&gt;~';

			preg_match_all( $searchimages, $content, $pics );

			// verifie que l'on ait au moins 1 image
			$iNumberOfPics = count($pics[0]);

			if ( $iNumberOfPics &gt; 0 ) {
				 // afficher l'image, par exemple ...
			}

			?&gt;
</pre>
<p>			Article original: <a href="http://www.wprecipes.com/wordpress-tip-detect-if-a-post-has-at-least-one-image" target="_blank">http://www.wprecipes.com/wordpress-tip-detect-if-a-post-has-at-least-one-image</a></p>
<p>			Dans la même idée, on peut essayer d&#8217;afficher directement une image que l&#8217;on aurait  uploadé lors de la création de l&#8217;article. Il suffit d&#8217;ajouter ce code à la place:</p>
<pre class="brush: php;">
			&lt;?php echo wp_get_attachment_image($post-&gt;ID); ?&gt;
			</pre>
</li>
</ol>
<p>	C&#8217;est terminé pour aujourd&#8217;hui! Si vous avez des questions, n&#8217;hésitez pas à me laisser un commentaire! Si vous avez manqué l&#8217;article précédent, suivez le lien: </p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/wp-serie-les-meilleurs-hacks-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WP Serie: Les meilleurs hacks wordpress #1</title>
		<link>http://kune.fr/blog/wordpress/wp-serie-les-meilleurs-hacks-wordpress-1/</link>
		<comments>http://kune.fr/blog/wordpress/wp-serie-les-meilleurs-hacks-wordpress-1/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 16:00:46 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[article hasard]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[random post]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[surbrillance]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=188</guid>
		<description><![CDATA[Parce que tout le monde ne parle pas forcément anglais (difficile aujourd&#8217;hui dans le métier de développer), parce que souvent les meilleurs tutoriaux qui transforment wordpress sont souvent dans la langue de Shakespeare, je me suis dis que vous faire partager les hack que je préfère en francais. Bien évidement, je citerai la source des [...]]]></description>
			<content:encoded><![CDATA[<p>Parce que tout le monde ne parle pas forcément anglais (difficile aujourd&#8217;hui dans le métier de développer), parce que souvent les meilleurs tutoriaux qui transforment wordpress sont souvent dans la langue de Shakespeare, je me suis dis que vous faire partager les hack que je préfère en francais.</p>
<p>Bien évidement, je citerai la source des sites où j&#8217;ai pu trouver les articles.</p>
<p>Et on va commencer aujourd&#8217;hui avec une série qui vous permettra de marier jQuery, la célèbre librairie javascript et wordpress. On commence:</p>
<ol>
<li><strong>Afficher un article au hasard (avec rafraichissement AJAX)</strong>
<ol>
<li>Préparer la zone de l&#8217;article à afficher (HTML)<br />
Prenons par exemple notre sidebar (sidebar.php), et ajoutons le code suivant:</p>
<pre class="brush: xml;">
&lt;h4&gt;Article au hasard&lt;/h4&gt;
&lt;ul&gt;
	&lt;li id=&quot;randomPost&quot;&gt;... loading ...&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;#&quot; id=&quot;another&quot;&gt;Je veux en voir un autre!&lt;/a&gt;
</pre>
</li>
<li> Créer un nouveau template de page:Le seul intérêt de cette page est de faire une requète sur un article et de l&#8217;afficher. C&#8217;est simple, créez une nouvelle page dans le dossier de votre thème et collez-y:
<pre class="brush: php;">&lt;?php
/*
Template Name: Random Post
*/
?&gt;

&lt;?php
	query_posts('showposts=1&amp;orderby=rand');
	the_post();
?&gt;

&lt;a href='&lt;?php the_permalink(); ?&gt;'&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
</pre>
<p>
Publiez maintenant une page avec un contenu vide, et comme modèle de page &#8216;Random Post&#8217;. Notes bien l&#8217;adresse, plus particulièrement la fin qui est générée selon votre titre (pour nous ce sera /random/).</li>
<li> La requète:<br />
Dans le dossier de votre thème, créez un fichier javascript et collez-y ce code:</p>
<pre class="brush: jscript;">
$(&quot;#randomPost&quot;).load(&quot;/random/&quot;);
$(&quot;#another&quot;).click(function(){
   $(&quot;#randomPost&quot;)
			.text(&quot;... loading ...&quot;)
			.load(&quot;/random/&quot;);
   return false;
});
</pre>
<p>
Si vous avez publiez votre page avec un autre nom, pensez à changer /random/ sur les 2 lignes.<br />
Enfin, il faut appeler votre script et jQuery. Pour ce faire, ajoutez ces lignes dans votre header:</p>
<pre class="brush: xml;">
&lt;?php wp_enqueue_script(&quot;jquery&quot;); ?&gt;
&lt;script src=&quot;&lt;?php bloginfo(&quot;template_url&quot;); ?&gt;/votreScript.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>Pensez à modifier une fois encore, le nom du fichier javascript si vous ne l&#8217;avez pas appelé votreScript.js !</p>
<p>Et voilà, nous avons terminé! Plutôt simple non?<br />
L&#8217;article original a été trouvé ici: <a href="http://digwp.com/2009/07/display-a-random-post-with-ajax-refresh/">Display a Random Post (with AJAX Refresh) </a></li>
<p>
</ol>
</li>
<li>
<strong>Colorer les mots recherché avec jQuery:</strong></p>
<p>Un excellent moyen de d&#8217;améliorer votre page de recherche est de surligner les mots qui ont été recherché dans les résultats. Voici comment s&#8217;y prendre:</p>
<ol>
<li>
Installation:<br />
Copiez collez le code suivant dans votre fichier functions.php (qui se trouve dans le dossier du thème que vous utilisez). Si il n&#8217;existe pas, créez le!</p>
<pre class="brush: php;">
function hls_set_query() {
  $query  = attribute_escape(get_search_query());

  if(strlen($query) &gt; 0){
	echo '
	  &lt;script type=&quot;text/javascript&quot;&gt;
		var hls_query  = &quot;'.$query.'&quot;;
	  &lt;/script&gt;
	';
  }
}

function hls_init_jquery() {
  wp_enqueue_script('jquery');
}

add_action('init', 'hls_init_jquery');
add_action('wp_print_scripts', 'hls_set_query');
</pre>
<p>
</li>
<li>Maintenant, copier ce code entre les balises  de votre fichier header.php:
<pre class="brush: jscript;">&lt;br /&gt;
&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
	.hls { background: #D3E18A; }
  &lt;/style&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  jQuery.fn.extend({
	highlight: function(search, insensitive, hls_class){
	  var regex = new RegExp(&quot;(&lt;[^&gt;]*&gt;)|(\\b&quot;+ search.replace(/([-.*+?^${}()|[\]\/\\])/g,&quot;\\$1&quot;) +&quot;)&quot;, insensitive ? &quot;ig&quot; : &quot;g&quot;);
	  return this.html(this.html().replace(regex, function(a, b, c){
		return (a.charAt(0) == &quot;&lt;&quot;) ? a : &quot;&lt;strong class=\&quot;&quot;+ hls_class +&quot;\&quot;&gt;&quot; + c + &quot;&lt;/strong&gt;&quot;;
	  }));
	}
  });
  jQuery(document).ready(function($){
	if(typeof(hls_query) != 'undefined'){
	  $(&quot;#post-area&quot;).highlight(hls_query, 1, &quot;hls&quot;);
	}
  });
  &lt;/script&gt;
</pre>
<p>
(le code jQuery a été adapté de <a href="http://devthought.com/blog/client-side/2009/04/javascript-regexp-based-highlighting-function-for-mootools-and-jquery/">devthought’s JavaScript RegExp based highlighting</a>.)</p>
<p>ATTENTION: Il faut changer #post-area par l&#8217;id conteneur de vos résultats! Si par exemple ils se trouvent dans:</p>
<pre class="brush: xml;">&lt;div id=&quot;search-result&quot;&gt; ..... &lt;/div&gt;</pre>
<p>
Vous devrez remplacer #post-area par #search-result</p>
</li>
<li>Additionnellement, vous pouvez changer le css présent dans la deuxième étape afin de modifier l&#8217;affichage du surlignement.<br />
Source: http://weblogtoolscollection.com/archives/2009/04/10/how-to-highlight-search-terms-with-jquery/</li>
</ol>
</li>
</ol>
<p>J&#8217;espere que ces deux hacks vous seront utiles! Pensez à laisser un commentaire pour me dire ce que vous en pensez!</p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/wp-serie-les-meilleurs-hacks-wordpress-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eshop Cart Widget (votre panier)</title>
		<link>http://kune.fr/blog/wordpress/eshop-cart-widget-votre-panier/</link>
		<comments>http://kune.fr/blog/wordpress/eshop-cart-widget-votre-panier/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 07:35:37 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[eShop]]></category>
		<category><![CDATA[cart]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[panier]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=185</guid>
		<description><![CDATA[Bonjour à tous ! Je reviens avec un plugin que j&#8217;ai fait et qui, il me semble, était plutôt demandé. Il va vous permettre d&#8217;afficher le panier de vos visiteur dans vos emplacements à widget, quand vous utilisez le plugin eShop. Pour le moment il n&#8217;y a pas d&#8217;option disponible, simplement le titre. J&#8217;attend vos [...]]]></description>
			<content:encoded><![CDATA[<p>Bonjour à tous ! Je reviens avec un plugin que j&#8217;ai fait et qui, il me semble, était plutôt demandé. Il va vous permettre d&#8217;afficher le panier de vos visiteur dans vos emplacements à widget, quand vous utilisez le <a href="http://wordpress.org/extend/plugins/eshop/">plugin eShop</a>.<br />
Pour le moment il n&#8217;y a pas d&#8217;option disponible, simplement le titre. J&#8217;attend vos commentaires pour ajouter des fonctions à ce plugin!</p>
<p>Pour le télécharger:</p>
<ul>
<li><a title="Eshop cart widget plugin" href="http://www.kune.fr/share/wp/plugins/eshop_cart_widget.zip" target="_blank">Eshop Cart Widget plugin (.zip)</a></li>
<li><a title="Eshop cart widget plugin" href="http://www.kune.fr/share/wp/plugins/eshop_cart_widget.tar.gz" target="_blank">Eshop Cart Widget plugin (.tar.gz)</a></li>
</ul>
<p>Dès que WordPress m&#8217;aura ouvert le svn pour le plugin, je mettrai à jour ces liens.</p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/eshop-cart-widget-votre-panier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Une galerie WordPress sans saut de ligne</title>
		<link>http://kune.fr/blog/wordpress/une-galerie-wordpress-sans-saut-de-ligne/</link>
		<comments>http://kune.fr/blog/wordpress/une-galerie-wordpress-sans-saut-de-ligne/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 12:53:46 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[galerie]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=162</guid>
		<description><![CDATA[Je travaille en ce moment sur le site internet d&#8217;un Designer (j&#8217;ajouterais le site une fois terminé sur le site de ma société: http://www.kune-studio.com). J&#8217;ai voulu utiliser la galerie que propose WordPress, pour créer un caroussel de photos. Le problème était simple, WP ajoute systématiquement unn saut de ligne entre les items de la galerie, [...]]]></description>
			<content:encoded><![CDATA[<p>Je travaille en ce moment sur le site internet d&#8217;un Designer (j&#8217;ajouterais le site une fois terminé sur le site de ma société: http://www.kune-studio.com).</p>
<p>J&#8217;ai voulu utiliser la galerie que propose <a class="zem_slink" title="WordPress" rel="homepage" href="http://wordpress.org">WordPress</a>, pour créer un caroussel de photos. Le problème était simple, WP ajoute systématiquement unn saut de ligne entre les items de la galerie, et un dernier saut de ligne à la fin de la gallerie.</p>
<p>Voilà donc un moyen simple pour les supprimer. Ouvrez (ou créez) un fichier functions.php dans le dossier de votre thème et collez y ceci:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> my_gallery_shortcode<span style="color: #009900;">&#40;</span><span style="color: #000088;">$attr</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>
&nbsp;
	static <span style="color: #000088;">$instance</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$instance</span><span style="color: #339933;">++;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Allow plugins/themes to override the default gallery template.</span>
	<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_gallery'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$attr</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: #000088;">$output</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// We're trusting author input, so let's at least make sure it looks like a valid orderby statement</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$attr</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'orderby'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$attr</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'orderby'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> sanitize_sql_orderby<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$attr</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'orderby'</span><span style="color: #009900;">&#93;</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: #339933;">!</span><span style="color: #000088;">$attr</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'orderby'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$attr</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'orderby'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #990000;">extract</span><span style="color: #009900;">&#40;</span>shortcode_atts<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'order'</span>      <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'ASC'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'orderby'</span>    <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'menu_order ID'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'id'</span>         <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ID<span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'itemtag'</span>    <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'div'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'icontag'</span>    <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'span'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'captiontag'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'p'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'columns'</span>    <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'size'</span>       <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'full'</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$attr</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$id</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$attachments</span> <span style="color: #339933;">=</span> get_children<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_parent'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_status'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'inherit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_type'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'attachment'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_mime_type'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'image'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'order'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$order</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orderby'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$orderby</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<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;">$attachments</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_feed<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$attachments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$att_id</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$attachment</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> wp_get_attachment_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$att_id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$size</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: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$itemtag</span> <span style="color: #339933;">=</span> tag_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$itemtag</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$captiontag</span> <span style="color: #339933;">=</span> tag_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$captiontag</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$columns</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$columns</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$itemwidth</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$columns</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">0</span> ? <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #339933;">/</span><span style="color: #000088;">$columns</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$selector</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;gallery-<span style="color: #006699; font-weight: bold;">{$instance}</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'gallery_style'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;
&nbsp;
			#<span style="color: #006699; font-weight: bold;">{$selector}</span> {
				margin: auto;
			}
			#<span style="color: #006699; font-weight: bold;">{$selector}</span> .gallery-item {
				float: left;
				margin-top: 10px;
				text-align: center;
				width: <span style="color: #006699; font-weight: bold;">{$itemwidth}</span>%;			}
			#<span style="color: #006699; font-weight: bold;">{$selector}</span> img {
				border: 2px solid #cfcfcf;
			}
			#<span style="color: #006699; font-weight: bold;">{$selector}</span> .gallery-caption {
				margin-left: 0;
			}
&nbsp;
		&lt;!-- see gallery_shortcode() in wp-includes/media.php --&gt;
		&lt;div id=&quot;</span><span style="color: #000088;">$selector</span><span style="color: #0000ff;">&quot; class=&quot;</span>gallery galleryid<span style="color: #339933;">-</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#125;</span><span style="color: #0000ff;">&quot;&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$attachments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$id</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$attachment</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$attr</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'link'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #0000ff;">'file'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$attr</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'link'</span><span style="color: #009900;">&#93;</span> ? wp_get_attachment_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$size</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> wp_get_attachment_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$size</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&amp;lt;<span style="color: #006699; font-weight: bold;">{$itemtag}</span> class='gallery-item'&amp;gt;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;
			&amp;lt;<span style="color: #006699; font-weight: bold;">{$icontag}</span> class='gallery-icon'&amp;gt;
				<span style="color: #006699; font-weight: bold;">$link</span>
			&lt;!--<span style="color: #006699; font-weight: bold;">{$icontag}</span>--&gt;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$captiontag</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachment</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>post_excerpt<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;
				&amp;lt;<span style="color: #006699; font-weight: bold;">{$captiontag}</span> class='gallery-caption'&amp;gt;
				&quot;</span> <span style="color: #339933;">.</span> wptexturize<span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachment</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>post_excerpt<span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;
				&lt;!--<span style="color: #006699; font-weight: bold;">{$captiontag}</span>--&gt;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;!--<span style="color: #006699; font-weight: bold;">{$itemtag}</span>--&gt;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$columns</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #339933;">++</span><span style="color: #000088;">$i</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$columns</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;br&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;
&nbsp;
		&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Quelques explications pour rendre plus clair les opérations.Tout d&#8217;abord on supprime le shortcode qui affiche la galery. Ensuite j&#8217;ai recopié la fonction qui génère la galerie en y apportant de petites modifications (les icontag et itentag par défaut). Enfin, j&#8217;ai supprimé le dernier saut de ligne à la fin pour ne plus avoir a l&#8217;afficher.</p>
<p>Pour les sauts de ligne entre les éléments de la galerie, il vous suffit de donner 0 pour le nombre de colonne.</p>
<p>Et voilà, le tour est joué!</p>
<div class="zemanta-pixie" style="margin-top: 10px;height: 15px"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/9947e399-6d75-4953-b70e-76b4b5a70d3e/"><img class="zemanta-pixie-img" style="border: medium none;float: right" src="http://img.zemanta.com/reblog_e.png?x-id=9947e399-6d75-4953-b70e-76b4b5a70d3e" alt="Reblog this post [with Zemanta]"></a><span class="zem-script more-related pretty-attribution"></span></div>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/une-galerie-wordpress-sans-saut-de-ligne/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Traduction Eshop &#8211; Nouvelle version</title>
		<link>http://kune.fr/blog/wordpress/traduction-eshop-nouvelle-version/</link>
		<comments>http://kune.fr/blog/wordpress/traduction-eshop-nouvelle-version/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 07:40:25 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[eShop]]></category>
		<category><![CDATA[anglais]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[francais]]></category>
		<category><![CDATA[french]]></category>
		<category><![CDATA[mo]]></category>
		<category><![CDATA[po]]></category>
		<category><![CDATA[tranduction]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=156</guid>
		<description><![CDATA[Voici la version corrigée de la traduction Eshop. Merci à tous vos commentaires, et désolé pour le retard dans la réponse. Pensez à continuer à m&#8217;envoyer vos remarques, que je puisse les corriger (je ne mettrai pas aussi longtemps maintenant ). Si on centralise tout ca, ca évitera d&#8217;avoir à chercher les différentes traductions à [...]]]></description>
			<content:encoded><![CDATA[<p>Voici la version corrigée de la traduction Eshop. Merci à tous vos commentaires, et désolé pour le retard dans la réponse.<br />
Pensez à continuer à m&#8217;envoyer vos remarques, que je puisse les corriger (je ne mettrai pas aussi longtemps maintenant <img src='http://kune.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ). Si on centralise tout ca, ca évitera d&#8217;avoir à chercher les différentes traductions à divers endroits!</p>
<p><a href="http://kune.fr/files/2009/06/eshop-fr_fr.mo">eshop-fr_fr.mo </a></p>
<p><a href="http://kune.fr/files/2009/06/eshop-fr_fr.po">eshop-fr_fr.po </a></p>
<p>N&#8217;hésitez pas à laisser vos commentaires!</p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/traduction-eshop-nouvelle-version/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Index des auteurs &#8211; v1.1</title>
		<link>http://kune.fr/blog/wordpress/index-des-auteurs-v11/</link>
		<comments>http://kune.fr/blog/wordpress/index-des-auteurs-v11/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 12:45:18 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[Index-authors-page]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=134</guid>
		<description><![CDATA[Voici la nouvelle version du plugin index des auteurs. Je viens de rajouter un sympathique affichage des articles de l&#8217;auteur lors du survol des liens. J&#8217;ai utilisé la librairie tooltip de jquery. Voici un petit exemple: Encore et toujours, laissez vos commentaires !]]></description>
			<content:encoded><![CDATA[<p>Voici la nouvelle version du plugin index des auteurs. Je viens de rajouter un sympathique affichage des articles de l&#8217;auteur lors du survol des liens.<br />
J&#8217;ai utilisé la librairie tooltip de jquery.</p>
<p>Voici un petit exemple:</p>
<p><img class="alignleft left size-full wp-image-135" src="http://kune.fr/files/2009/03/auteurtooltip.gif" alt="auteurtooltip" width="378" height="190" /> Encore et toujours, laissez vos commentaires !</p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/index-des-auteurs-v11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Index Authors page &#8211; v1.0</title>
		<link>http://kune.fr/blog/wordpress/index-authors-page-v10/</link>
		<comments>http://kune.fr/blog/wordpress/index-authors-page-v10/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 15:48:48 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[Index-authors-page]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[auteur]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=125</guid>
		<description><![CDATA[Après le plugin qui vous permet de créer une page d&#8217;index des tags, voici celui qui part du même principe, mais avec les auteurs de votre blog. Il se nomme Index Authors Page. L&#8217;utilisation est pratiquement la meme, avec un peu plus d&#8217;options. Vous pouvez le télécharger sur sa page officielle: http://wordpress.org/extend/plugins/authors-index-page/ Les options sont expliquées [...]]]></description>
			<content:encoded><![CDATA[<p>Après le plugin qui vous permet de créer une page d&#8217;index des tags, voici celui qui part du même principe, mais avec les auteurs de votre blog.</p>
<p>Il se nomme Index Authors Page. L&#8217;utilisation est pratiquement la meme, avec un peu plus d&#8217;options. Vous pouvez le télécharger sur sa page officielle: <a href="http://wordpress.org/extend/plugins/authors-index-page/">http://wordpress.org/extend/plugins/authors-index-page/</a></p>
<p>Les options sont expliquées sur cette page, mais pour les non-anglophones, les voici:</p>
<ul>
<li>ul =&gt; la classe de votre ul (default = iapAlpha)</li>
<li>li =&gt; la classe de votre li (default = iapAlpha)</li>
<li>letter =&gt; la classe de votre span (les lettres) (default = iapLetter)</li>
<li>hideempty =&gt; affiche les auteurs qui n&#8217;ont pas écrit d&#8217;article (default = false)</li>
<li>optioncount =&gt; affiche le nombre d&#8217;article de l&#8217;auteur (default = true)</li>
<li>showfullname =&gt; affiche le nom de l&#8217;auteur (default = false)</li>
<li>exclude_admin =&gt; exclue l&#8217;admin de l&#8217;index (default = false)</li>
<li>menu =&gt; affiche un menu alphabétique pour l&#8217;index (buddypress-like) (default = true)</li>
</ul>
<p>Ca en fait beaucoup, mais à mon avis, les plus interressantes sont le menu qui est activé par défaut, et la possibilité de masquer ou pas les auteurs sans article.</p>
<p>La balise a insérer dans votre page est celle-ci: <code>[ authorsindex]</code>, sans l&#8217;espace&#8230;</p>
<p>J&#8217;attend vos commentaires pour améliorer le plugin!</p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/index-authors-page-v10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Index Tag PAge &#8211; v1.2</title>
		<link>http://kune.fr/blog/wordpress/index-tag-page-v12/</link>
		<comments>http://kune.fr/blog/wordpress/index-tag-page-v12/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 08:03:18 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=123</guid>
		<description><![CDATA[Encore une mise à jour légère, mais qui le fait! Je viens de rajouter un menu (en option) pour ceux qui ont beaaaaaauuuuucoup de tags. L&#8217;option à rajouter est menu=1 ou =0. Le design de celui-ci provient de Buddypress. Comme à chaques fois, vous pouvez télécharger le plugin sur sa page sur WordPress.org et voir [...]]]></description>
			<content:encoded><![CDATA[<p>Encore une mise à jour légère, mais qui le fait!<br />
Je viens de rajouter un menu (en option) pour ceux qui ont beaaaaaauuuuucoup de tags. L&#8217;option à rajouter est menu=1 ou =0. Le design de celui-ci provient de <a href="http://buddypress.org" target="_blank">Buddypress</a>. Comme à chaques fois, vous pouvez télécharger le plugin sur <a href="http://wordpress.org/extend/plugins/index-tag-page/" target="_blank">sa page sur WordPress.org</a> et voir un exemple sur la page <a href="http://kune.fr/index-des-tags/">Index des tags</a> (dans le menu ci dessus).</p>
<p>A venir très bientôt, la même chose mais avec les auteurs, dont vous pouvez voir un exemple sur la page <a href="http://kune.fr/index-des-auteurs/">Index des auteurs</a>.</p>
<p>Dites moi ce que vous en pensez en commentaire!</p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/index-tag-page-v12/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Index Tag Page &#8211; v1.1</title>
		<link>http://kune.fr/blog/wordpress/index-tag-page-v11/</link>
		<comments>http://kune.fr/blog/wordpress/index-tag-page-v11/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 10:39:16 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[index-tag-page]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=109</guid>
		<description><![CDATA[Une petite mise à jour de mon plugin Index-tag-page pour wordpress. Vous pouvez maintenant utiliser la balise:  [ indextag nb=XX ul=YY li=ZZ letter=LL], sans l&#8217;espace! ZZ représente la classe que vous souhaitez donner à vos éléments de liste et LL la classe de vos lettres. Par défaut, YY vaut itpUl, ZZ vaut itpLi et letter [...]]]></description>
			<content:encoded><![CDATA[<p>Une petite mise à jour de mon plugin Index-tag-page pour wordpress. Vous pouvez maintenant utiliser la balise:  <span style="color: #555555;font-family: Consolas;font-size: 13px;font-style: normal;font-variant: normal;font-weight: normal">[ indextag nb=XX ul=YY li=ZZ letter=LL]</span>, sans l&#8217;espace!</p>
<p>ZZ représente la classe que vous souhaitez donner à vos éléments de liste et LL la classe de vos lettres. Par défaut, YY vaut itpUl, ZZ vaut itpLi et letter itpLetter. A noter aussi que chaque lettre possede une classe unique itpA &#8211; itpZ (lorsque la lettre existe!).</p>
<p>Vous pouvez télécharger la dernière version sur la page<a href="http://wordpress.org/extend/plugins/index-tag-page/"> index-tag-page de wordpress.org</a></p>
<p>Qu&#8217;attendre maintenant de ce plugin ? Eventuellement une liste alphabétique tout en haut de la page, qui conduirait aux sections grace à des ancres.</p>
<p>Et vous, vous aimeriez voir quoi dans les prochaines versions ?</p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/index-tag-page-v11/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Index tag page plugin for wordpress</title>
		<link>http://kune.fr/blog/wordpress/index-tag-page-plugin-for-wordpress/</link>
		<comments>http://kune.fr/blog/wordpress/index-tag-page-plugin-for-wordpress/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 08:28:46 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[index-tag-page]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://kune.fr/?p=92</guid>
		<description><![CDATA[Hier, je vous ai montré comment l&#8217;on pouvait créer une page d&#8217;index comprenant les tags de son blog. Cependant, je comprend que certains souhaitent une methode qui soit plus simple à utiliser, style glisser et déposer! Du coup j&#8217;ai eu envie de transformer ce code en plugin. Le résultat est le plugin suivant: index-tag-page Un [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org"><img class="left size-full wp-image-93" src="http://kune.fr/files/2009/03/wplogo.png" alt="wplogo" width="320" height="75" /></a> Hier, je vous ai montré comment l&#8217;on pouvait créer une page d&#8217;index comprenant les tags de son blog.</p>
<p>Cependant, je comprend que certains souhaitent une methode qui soit plus simple à utiliser, style glisser et déposer! Du coup j&#8217;ai eu envie de transformer ce code en plugin.</p>
<p>Le résultat est le plugin suivant: index-tag-page</p>
<p>Un nom pas très glamour mais qui, je l&#8217;espere, explique ce qu&#8217;il fera!</p>
<p>Vous pouvez télécharger la dernière version sur la page<a href="http://wordpress.org/extend/plugins/index-tag-page/"> index-tag-page de wordpress.org</a></p>
<p><a title="index tag page" href="http://kune.fr/files/2009/03/index-tag-page.rar"></a></p>
<p>J&#8217;ai fait la demande pour qu&#8217;il soit enregistré sur la page des plugins de wordpress.org, j&#8217;attend la validation. Je changerai les liens une fois tout ça en place.  En attendant, n&#8217;hésitez pas encore une fois à poser vos question en commentaire pour des bugs, remarques, ou meme le café que vous avez bu pendant l&#8217;installation!</p>
<p>&#8212;&#8212;</p>
<p>Yesterday, i wrote about how to create an index tag page with some php code and a template page.</p>
<p>I understand that some people would like to have a simple drag and drop solution to use with their favorite wordpress install.</p>
<p>So i decided to transform the code into a working wp plugin and this is the result: index-tag-page</p>
<p>If you want to download it, click on this link: <a title="index tag page" href="http://kune.fr/files/2009/03/index-tag-page.rar">index-tag-page for wordpress</a></p>
<p>I&#8217;ve ask wordpress.org to host my plugin, i&#8217;m just waiting for the approval. Once it&#8217;s ok, i will change the link and inform you about that. Again, feel free to post a comment, for a bug, a question or even the coffe you drink during the install of your future favorite wordpress plugin!</p>
]]></content:encoded>
			<wfw:commentRss>http://kune.fr/blog/wordpress/index-tag-page-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
