a4135ce7a8b965e1c7264ed7c42cd39b67640919
3 * Plugin Zen-Garden pour Spip 3.0
4 * Licence GPL (c) 2006-2013 Cedric Morin
8 if (!defined("_ECRIRE_INC_VERSION")) return;
10 if (!defined('_DIR_THEMES'))
11 define('_DIR_THEMES',_DIR_RACINE
."themes/");
13 function zengarden_charge_themes($dir = _DIR_THEMES
, $tous = false, $force = false){
16 include_spip('inc/plugin');
17 $files = liste_plugin_files($dir);
20 $get_infos = charger_fonction('get_infos','plugins');
22 $t = $get_infos($files,$force,$dir);
25 foreach($files as $d){
27 if (isset($t[$d]['categorie']) and $t[$d]['categorie']=='theme'
28 AND ($tous OR $t[$d]['etat']=='stable')){
29 $t[$d]['tri'] = strtolower(basename($d));
30 $themes[substr($dir.$d,strlen(_DIR_RACINE
))] = $t[$d];