[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / jquery_ui / jqueryui_options_20.php
1 <?php
2 if (!defined("_ECRIRE_INC_VERSION")) return;
3
4 define('_DIR_JQUERYUI_JS','lib/jquery.ui-1.6/ui/');
5 define('_DIR_JQUERYUI_CSS','lib/jquery.ui-1.6/themes/');
6
7 /**
8 * Fonction pour lister les ss-repertoires de themes/ de jQuery UI
9 * retourne: array('rep1'=>'rep1','rep2'=>'rep2',...'no_css'=>'ne pas charger les CSS...')
10 *
11 */
12 function jqueryui_array_themes() {
13 $Tthemes = array();
14 if ($pointeur = opendir('../'._DIR_JQUERYUI_CSS)) {
15 while (false !== ($rep = readdir($pointeur))) {
16 if ($rep != "." AND $rep != ".." AND is_dir('../'._DIR_JQUERYUI_CSS.$rep)) {
17 $Tthemes[$rep] = $rep;
18 }
19 }
20 closedir($pointeur);
21 }
22 if(!defined('_JQUERYUI_FORCER_CSS'))
23 $Tthemes['no_css'] = _T('jqueryui:cfg_no_css');
24
25 return $Tthemes;
26 }
27
28 ?>