<:phpdoc:source_file_for:> 'Fonctions'
<:phpdoc:back_to_doc:> : Fonctions
* @author Piero Wbmstr <@link piero.wbmstr@gmail.com>
* @copyright CreaDesign 2009 {@link http://creadesignweb.free.fr/}
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* - Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley - MIT License
* - plugin SPIP 'Thickbox 2'
* By Fil, Izo, BoOz (http://spip-zone.info/spip.php?article31)
if (!defined("_ECRIRE_INC_VERSION")) return;
$tb_class =
" class='thickbox' ";
$classes_spip =
array( 'spip_note', 'spip_glossaire' );
$a =
preg_match_all("/<a([^>]*)>/i", $texte, $links, PREG_PATTERN_ORDER);
foreach($links[1] as $str){
if( eregi('class', $d[0]) ){
if($ok ==
false) $texte =
str_replace($str, $tb_class.
$str, $texte);