Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/themeEditor/class.themeEditor.php

    r2566 r2607  
    1616     protected $core; 
    1717 
    18      protected $default_theme; 
    1918     protected $user_theme; 
    2019     protected $parent_theme; 
    21  
    22      protected $default_tpl = array(); 
     20     protected $tplset_theme; 
     21 
    2322     public $tpl = array(); 
    2423     public $css = array(); 
     
    3130          $this->default_theme = path::real($this->core->blog->themes_path.'/default'); 
    3231          $this->user_theme = path::real($this->core->blog->themes_path.'/'.$this->core->blog->settings->system->theme); 
     32          $this->tplset_theme = DC_ROOT.'/inc/public/default-templates/'.DC_DEFAULT_TPLSET; 
    3333          if (null !== $this->core->themes) { 
    3434               $parent_theme = $this->core->themes->moduleInfo($this->core->blog->settings->system->theme,'parent'); 
    3535               if ($parent_theme) { 
    3636                    $this->parent_theme = path::real($this->core->blog->themes_path.'/'.$parent_theme); 
     37               } 
     38               $tplset = $this->core->themes->moduleInfo($this->core->blog->settings->system->theme,'tplset'); 
     39               if ($tplset) { 
     40                    $this->tplset_theme = DC_ROOT.'/inc/public/default-templates/'.$tplset; 
    3741               } 
    3842          } 
     
    207211     protected function findTemplates() 
    208212     { 
    209           # First, we look in template paths 
    210           $this->default_tpl = $this->getFilesInDir($this->default_theme.'/tpl'); 
    211  
    212213          $this->tpl = array_merge( 
    213                $this->default_tpl, 
     214               $this->getFilesInDir($this->tplset_theme), 
    214215               $this->getFilesInDir($this->parent_theme.'/tpl'), 
    215216               $this->getFilesInDir($this->user_theme.'/tpl') 
    216217               ); 
    217           $this->tpl = array_merge($this->getFilesInDir(DC_ROOT.'/inc/public/default-templates'),$this->tpl); 
    218218 
    219219          # Then we look in 'default-templates' plugins directory 
Note: See TracChangeset for help on using the changeset viewer.

Sites map