$titre"; // on veut un lien d'insertion sur chaque smiley elseif ($arg=="'liens'") { $liens = true; include_spip('outils/smileys'); $smileys = smileys_uniques($smileys); } $arg = interprete_argument_balise($n++,$p); } $max = count($smileys[0]); if (!$nb_col) $nb_col = $max; $html = "$head"; $l = 1; for ($i=0; $i<$max; $i++) { if ($i % $nb_col == 0) { $class = 'row_'.alterner($l++, 'even', 'odd'); $html .= ""; } $html .= $liens ?"" :""; if ($i % $nb_col == $nb_col - 1) $html .= "\n"; } // on finit la ligne qd meme... if ($i = $max % $nb_col) $html .= str_repeat('', $nb_col - $i) . ''; // accessibilite : alt et title avec le smiley en texte $html = echappe_retour($html, 'SMILE'); $html = str_replace("'", "\'", $html); $p->code = "'$html\n
{$smileys[1][$i]}{$smileys[1][$i]}
{$smileys[0][$i]}
 
\n'"; $p->interdire_scripts = true; $p->type = 'html'; return $p; } ?>