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