[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / jquery_ui / jqueryui_options_20.php
diff --git a/www/plugins/auto/jquery_ui/jqueryui_options_20.php b/www/plugins/auto/jquery_ui/jqueryui_options_20.php
new file mode 100644 (file)
index 0000000..21e37ea
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+if (!defined("_ECRIRE_INC_VERSION")) return;
+
+define('_DIR_JQUERYUI_JS','lib/jquery.ui-1.6/ui/');
+define('_DIR_JQUERYUI_CSS','lib/jquery.ui-1.6/themes/');
+
+/**
+ * Fonction pour lister les ss-repertoires de themes/ de jQuery UI
+ * retourne: array('rep1'=>'rep1','rep2'=>'rep2',...'no_css'=>'ne pas charger les CSS...')
+ * 
+ */ 
+function jqueryui_array_themes() {
+       $Tthemes = array();
+    if ($pointeur = opendir('../'._DIR_JQUERYUI_CSS)) {  
+        while (false !== ($rep = readdir($pointeur))) {
+            if ($rep != "." AND $rep != ".." AND is_dir('../'._DIR_JQUERYUI_CSS.$rep)) {
+                $Tthemes[$rep] = $rep;
+            }
+        }
+        closedir($pointeur);
+    }
+       if(!defined('_JQUERYUI_FORCER_CSS'))
+       $Tthemes['no_css'] = _T('jqueryui:cfg_no_css');
+    
+       return $Tthemes;
+}
+
+?>
\ No newline at end of file