Changeset 51634 in spip-zone
- Timestamp:
- Sep 20, 2011, 2:18:02 PM (9 years ago)
- Location:
- _plugins_/zen-garden/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/zen-garden/trunk/action/zengarden_activer_theme.php
r50865 r51634 11 11 12 12 if (strncmp('defaut:',$arg,7) == 0){ 13 $dir_theme = _DIR_ THEMES. substr($arg,7);13 $dir_theme = _DIR_RACINE . substr($arg,7); 14 14 $flux = pipeline('zengarden_activer_theme', array('args' => array('dir' =>$dir_theme, 'action'=>'effacer'), 'data' => true)); 15 15 if ($flux) { … … 20 20 elseif (strncmp('apercu:',$arg,7) == 0){ 21 21 $theme = substr($arg,7); 22 $dir_theme = _DIR_ THEMES. $theme;22 $dir_theme = _DIR_RACINE . $theme; 23 23 if (is_dir($dir_theme)) { 24 24 $flux = pipeline('zengarden_activer_theme', array('args' => array('dir' =>$dir_theme, 'action'=>'apercevoir'), 'data' => true)); … … 31 31 elseif (strncmp('activation:',$arg,11) == 0) { 32 32 $theme = substr($arg,11); 33 $dir_theme = _DIR_ THEMES. $theme;33 $dir_theme = _DIR_RACINE . $theme; 34 34 if (is_dir($dir_theme)) { 35 35 $flux = pipeline('zengarden_activer_theme', array('args' => array('dir' => $dir_theme, 'action'=>'activer'), 'data' => true)); -
_plugins_/zen-garden/trunk/inc/zengarden.php
r50865 r51634 7 7 8 8 if (!defined("_ECRIRE_INC_VERSION")) return; 9 if (!defined('_DIR_THEMES')) 10 define('_DIR_THEMES',_DIR_RACINE."themes/"); 9 11 10 12 function zengarden_charge_themes($dir = _DIR_THEMES, $tous = false){ … … 16 18 $get_infos = charger_fonction('get_infos','plugins'); 17 19 foreach($files as $k=>$file){ 18 $files[$k] = substr(dirname($file),strlen( $dir));20 $files[$k] = substr(dirname($file),strlen(_DIR_RACINE)); 19 21 } 20 22 21 $themes = $get_infos($files,false, $dir);23 $themes = $get_infos($files,false,_DIR_RACINE); 22 24 23 foreach($themes as $d ir=>$info){25 foreach($themes as $d=>$info){ 24 26 if ($info['categorie']!='theme' 25 27 OR (!$tous AND $info['etat']!=='stable')) 26 unset($themes[$d ir]);28 unset($themes[$d]); 27 29 else 28 $themes[$d ir]['tri'] = strtolower($dir);30 $themes[$d]['tri'] = strtolower($dir); 29 31 } 30 32 } 33 31 34 return $themes; 32 35 } -
_plugins_/zen-garden/trunk/paquet.xml
r50866 r51634 2 2 prefix="zengarden" 3 3 categorie="maintenance" 4 version="2. 0.2"4 version="2.1.0" 5 5 etat="test" 6 6 compatibilite="[3.0.0-alpha2;[" -
_plugins_/zen-garden/trunk/prive/squelettes/inclure/zengarden_theme.html
r50846 r51634 7 7 <li class='theme'> 8 8 <div class="qTip target_leftMiddle tooltip_rightMiddle"> 9 [(#EVAL{_DIR_ THEMES}|concat{#CLE,'/',#VALEUR{logo}}9 [(#EVAL{_DIR_RACINE}|concat{#CLE,'/',#VALEUR{logo}} 10 10 |image_reduire{#ENV{largeur_previsu,100},#ENV{hauteur_previsu,75}} 11 11 |inserer_attribut{class,''} -
_plugins_/zen-garden/trunk/prive/squelettes/inclure/zengarden_theme_actif.html
r50846 r51634 3 3 <BOUCLE_sel(POUR){tableau #ENV{themes}}{cle=#ENV{selection}}> 4 4 <li class='item on'> 5 [(#EVAL{_DIR_ THEMES}|concat{#CLE,'/',#VALEUR{logo}}|image_reduire{200,150}|inserer_attribut{class,spip_documents_left}|inserer_attribut{alt,#VALEUR{nom}|typo|extraire_multi})]5 [(#EVAL{_DIR_RACINE}|concat{#CLE,'/',#VALEUR{logo}}|image_reduire{200,150}|inserer_attribut{class,spip_documents_left}|inserer_attribut{alt,#VALEUR{nom}|typo|extraire_multi})] 6 6 <h2><:zengarden:theme_actif:></h2> 7 7 <h3>[(#VALEUR{nom}|typo|extraire_multi)]</h3> -
_plugins_/zen-garden/trunk/zengarden_options.php
r50865 r51634 7 7 8 8 if (!defined('_DIR_PLUGIN_THEME')){ 9 if (!defined('_DIR_THEMES'))10 define('_DIR_THEMES',_DIR_RACINE."themes/");11 12 9 // si on est en mode apercu, il suffit de repasser dans l'espace prive pour desactiver l'apercu 13 10 if (test_espace_prive()){ … … 17 14 } 18 15 } 16 // si le switcher est actif ou la globale var_theme 19 17 elseif(isset($GLOBALS['meta']['zengarden_switcher']) OR defined('_ZEN_VAR_THEME')){ 20 18 if (!is_null($arg = _request('var_theme'))){ … … 37 35 (isset($GLOBALS['meta']['zengarden_theme']) AND $t = $GLOBALS['meta']['zengarden_theme']) 38 36 ) 39 AND is_dir(_DIR_ THEMES. $t)){40 _chemin(_DIR_ THEMES.$t);41 $GLOBALS['marqueur'] = (isset($GLOBALS['marqueur'])?$GLOBALS['marqueur']:"").": $t";37 AND is_dir(_DIR_RACINE . $t)){ 38 _chemin(_DIR_RACINE . $t); 39 $GLOBALS['marqueur'] = (isset($GLOBALS['marqueur'])?$GLOBALS['marqueur']:"").":theme-$t"; 42 40 // @experimental : sauver le nom du repertoire theme utilise 43 41 // a defaut de connaitre le vrai prefixe
Note: See TracChangeset
for help on using the changeset viewer.