Dotclear


Ignore:
Timestamp:
12/29/14 14:00:13 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Display name of parent theme, if any, and name of templateset used by the edited theme, closes #2028

Location:
plugins/themeEditor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/themeEditor/_define.php

    r2663 r2890  
    1616     /* Description*/         "Theme Editor", 
    1717     /* Author */             "Olivier Meunier", 
    18      /* Version */            '1.1', 
     18     /* Version */            '1.2', 
    1919     array( 
    2020          'type'         =>        'plugin' 
  • plugins/themeEditor/class.themeEditor.php

    r2862 r2890  
    2020     protected $tplset_theme; 
    2121 
     22     protected $parent_name; 
    2223     protected $tplset_name; 
    2324 
     
    3839               if ($parent_theme) { 
    3940                    $this->parent_theme = path::real($this->core->blog->themes_path.'/'.$parent_theme); 
     41                    $this->parent_name = $parent_theme; 
    4042               } 
    4143               $tplset = $this->core->themes->moduleInfo($this->core->blog->settings->system->theme,'tplset'); 
     
    7880               } 
    7981               $list .= ($list_theme != '' ? sprintf('<li class="group-file">'.__('From theme:').'<ul>%s</ul></li>',$list_theme) : ''); 
    80                $list .= ($list_parent != '' ? sprintf('<li class="group-file">'.__('From parent:').'<ul>%s</ul></li>',$list_parent) : ''); 
    81                $list .= ($list_tpl != '' ? sprintf('<li class="group-file">'.__('From template set:').'<ul>%s</ul></li>',$list_tpl) : ''); 
     82               $list .= ($list_parent != '' ? sprintf('<li class="group-file">'.__('From parent:').' %s<ul>%s</ul></li>', 
     83                    $this->parent_name,$list_parent) : ''); 
     84               $list .= ($list_tpl != '' ? sprintf('<li class="group-file">'.__('From template set:').' %s<ul>%s</ul></li>', 
     85                    $this->tplset_name,$list_tpl) : ''); 
    8286          } else { 
    8387               foreach ($files as $k => $v) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map