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