[(#LOGO_SITE_SPIP||image_reduire{150,100}) ]
#NOM_SITE_SPIP
[(#CHEMIN{images/thickbox.png}||image_reduire{150,100})] Thickbox v3
by
Version 3 (stable) - (c) 2009 GNU GPL v3
[ thickbox : <:phpdoc:map:> | <:phpdoc:index:> ]

<:phpdoc:source_file_for:> 'Fonctions'

  <:phpdoc:back_to_doc:> : Fonctions

  1. <?php
  2. /**
  3.  * @name         Fonctions
  4.  * @author         Piero Wbmstr <@link piero.wbmstr@gmail.com>
  5.  * @copyright     CreaDesign 2009 {@link http://creadesignweb.free.fr/}
  6.  * @license        http://opensource.org/licenses/gpl-license.php GNU Public License
  7.  * @version     0.2 (06/2009)
  8.  * @package        thickbox
  9.  *
  10.  *  BASED ON :
  11.  *  - Thickbox 3.1 - One Box To Rule Them All.
  12.  *    By Cody Lindley (http://www.codylindley.com)
  13.  *    Copyright (c) 2007 cody lindley - MIT License
  14.  *
  15.  *  - plugin SPIP 'Thickbox 2'
  16.  *    By Fil, Izo, BoOz (http://spip-zone.info/spip.php?article31)
  17.  */
  18. if (!defined("_ECRIRE_INC_VERSION")) return;
  19.  
  20. function dialogbox_links($texte{
  21.     $tb_class " class='thickbox' ";
  22.     $classes_spip array'spip_note''spip_glossaire' );
  23.     $a preg_match_all("/<a([^>]*)>/i"$texte$linksPREG_PATTERN_ORDER);
  24.     unset($links[0]);
  25.     foreach($links[1as $str){
  26.         $b explode(" "trim($str));
  27.         $ok false;
  28.         foreach($b as $c){
  29.             $to_change $c;
  30.             $d explode("="$c);
  31.             $d[1strtolower(trim($d[1]'"\''));
  32.             iferegi('class'$d[0]) ){
  33.                 if(!in_array($d[1]$classes_spip)) $texte str_replace($to_change$tb_class$texte);
  34.                 $ok true;
  35.             }
  36.         }
  37.         if($ok == false$texte str_replace($str$tb_class.$str$texte);
  38.     }
  39.     return $texte;
  40. }
  41. ?>

PhpDoc phpDocumentor 1.4.1
| <:phpdoc:date_generation:>
| Mon, 28 Feb 2011 12:54:18 +0100

CreaDesign Crea Design
 | PhpDocumentor plugin pour SPIP
 | version 1.0.09 (c) 08/2009

| SPIP | <:accueil_site:> | <:espace_prive:> | <:phpdoc:accueil_doc:> Thickbox v3 |