Last change
on this file since 50475 was
50475,
checked in by kent1@…, 10 years ago
|
si _JQUERYUI_FORCER_CSS ... on ne propose pas la possibilité de ne pas avoir de CSS
|
File size:
763 bytes
|
Line | |
---|
1 | <?php |
---|
2 | define('_DIR_JQUERYUI_JS','lib/jquery.ui-1.6/ui/'); |
---|
3 | define('_DIR_JQUERYUI_CSS','lib/jquery.ui-1.6/themes/'); |
---|
4 | |
---|
5 | /** |
---|
6 | * Fonction pour lister les ss-repertoires de themes/ de jQuery UI |
---|
7 | * retourne: array('rep1'=>'rep1','rep2'=>'rep2',...'no_css'=>'ne pas charger les CSS...') |
---|
8 | * |
---|
9 | */ |
---|
10 | function jqueryui_array_themes() { |
---|
11 | $Tthemes = array(); |
---|
12 | if ($pointeur = opendir('../'._DIR_JQUERYUI_CSS)) { |
---|
13 | while (false !== ($rep = readdir($pointeur))) { |
---|
14 | if ($rep != "." AND $rep != ".." AND is_dir('../'._DIR_JQUERYUI_CSS.$rep)) { |
---|
15 | $Tthemes[$rep] = $rep; |
---|
16 | } |
---|
17 | } |
---|
18 | closedir($pointeur); |
---|
19 | } |
---|
20 | if(!defined('_JQUERYUI_FORCER_CSS')) |
---|
21 | $Tthemes['no_css'] = _T('jqueryui:cfg_no_css'); |
---|
22 | |
---|
23 | return $Tthemes; |
---|
24 | } |
---|
25 | |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.