- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/themeEditor/class.themeEditor.php
r2566 r2607 16 16 protected $core; 17 17 18 protected $default_theme;19 18 protected $user_theme; 20 19 protected $parent_theme; 21 22 protected $default_tpl = array(); 20 protected $tplset_theme; 21 23 22 public $tpl = array(); 24 23 public $css = array(); … … 31 30 $this->default_theme = path::real($this->core->blog->themes_path.'/default'); 32 31 $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; 33 33 if (null !== $this->core->themes) { 34 34 $parent_theme = $this->core->themes->moduleInfo($this->core->blog->settings->system->theme,'parent'); 35 35 if ($parent_theme) { 36 36 $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; 37 41 } 38 42 } … … 207 211 protected function findTemplates() 208 212 { 209 # First, we look in template paths210 $this->default_tpl = $this->getFilesInDir($this->default_theme.'/tpl');211 212 213 $this->tpl = array_merge( 213 $this-> default_tpl,214 $this->getFilesInDir($this->tplset_theme), 214 215 $this->getFilesInDir($this->parent_theme.'/tpl'), 215 216 $this->getFilesInDir($this->user_theme.'/tpl') 216 217 ); 217 $this->tpl = array_merge($this->getFilesInDir(DC_ROOT.'/inc/public/default-templates'),$this->tpl);218 218 219 219 # Then we look in 'default-templates' plugins directory
Note: See TracChangeset
for help on using the changeset viewer.