Changeset 395 in spip-zone


Ignore:
Timestamp:
Jul 17, 2005, 3:31:24 PM (15 years ago)
Author:
pierre.andrews@…
Message:

page tag.php3 pour afficher un cloud

Location:
_squelettes_/forum.spip.org
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/forum.spip.org/mes_fonctions.php3

    r391 r395  
    7575}
    7676
     77/************************************pour le tag cloud***********************************
     78 * http://www.spip_contrib.net/article.php3?id_article=879
     79*/
     80
     81
     82function noop($texte) {
     83  return '';
     84}
     85
     86function filtre_max($texte, $id='tout') {
     87  static $max = array();
     88  if($max[$id] < $texte) {
     89    $max[$id] = $texte;
     90  }
     91  return $max[$id];
     92}
     93
     94function coef($max,$nbr,$nbrMax=6) {
     95  return 1+($nbr/$max*$nbrMax);
     96}
     97
    7798?>
Note: See TracChangeset for help on using the changeset viewer.