[(#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:> 'Options'

  <:phpdoc:back_to_doc:> : Options

  1. <?php
  2. /**
  3.  * @name         Options
  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. $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
  21. define('_DIR_THICKBOX',(_DIR_PLUGINS.end($p)));
  22.  
  23. // -------------------------------------------------------------
  24. // Globales
  25.  
  26. $GLOBALS['THICKBOX_TEST_IMAGE'_DIR_THICKBOX.'/images/single.jpg';
  27. $GLOBALS['THICKBOX_LOGO'_DIR_THICKBOX.'/images/thickbox.png';
  28. $GLOBALS['THICKBOX_DEFAULTS'array(
  29.     'include_css'         => 'oui',
  30.     'option_modal'         => 'non',
  31.     'titre_default'     => '',
  32.     'option_onclick'     => 'oui',
  33.     'option_width'         => 300,
  34.     'option_height'     => 400,
  35.     'option_width_img'     => 100,
  36.     'option_height_img' => 100,
  37.     'dialogbox_url'     => 'dialogbox.html',
  38.     'option_width_db'     => 500,
  39.     'option_height_db'     => 400,
  40.     'img_closer'         => 'images/close.gif',
  41. );
  42.  
  43. // -------------------------------------------------------------
  44. // Fonctions
  45.  
  46. function thickbox_config(){
  47.     $config array();
  48.     $a unserialize($GLOBALS['meta']['thickbox']);
  49.     if($a == array()) $a $GLOBALS['THICKBOX_DEFAULTS'];
  50.     foreach($a as $key=>$val){
  51.         $config[$key$val;
  52.     }
  53.     return $config;
  54. }
  55.  
  56. function tb_cut_filename($_f{
  57.     $f substr(strrchr($_f'/')1);
  58.     $file_s getimagesize($_f);
  59.     $file array();
  60.     if($f != '.'{
  61.         $file['name'substr($f0strrpos($f'.'));
  62.         $file['ext'strtolower(substr(strrchr($f'.')1));
  63.         $file['width'$file_s[0];
  64.         $file['height'$file_s[1];
  65.         $file['mime'$file_s['mime'];
  66.     }
  67.     return ($file);
  68. }
  69.  
  70.  
  71. // -------------------------------------------------------------
  72. // Info _CDC (privĂ© ...)
  73. if(isset($GLOBALS['_CDC_PLUGINS'])) {
  74.     $GLOBALS['_CDC_PLUGINS']['plugins']['thickbox';
  75.     $GLOBALS['_CDC_PLUGINS']['set']['thickbox'array('texte' => _T('thickbox:thickbox'),'fond' => find_in_path("images/thickbox.png"),'lien' => array("cfg","cfg=thickbox"));
  76.     $GLOBALS['_CDC_PLUGINS']['comment']['thickbox'"TODO : tester les navigateurs (FF ok -)";
  77. }
  78. ?>

PhpDoc phpDocumentor 1.4.1
| <:phpdoc:date_generation:>
| Mon, 28 Feb 2011 12:54:19 +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 |