mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
issue 92 add Theme skin info
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8650 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bfef639efd
commit
24ee496a42
3 changed files with 23 additions and 3 deletions
|
|
@ -10,8 +10,21 @@ class HTMLDisplayHandler {
|
|||
$oTemplate = &TemplateHandler::getInstance();
|
||||
|
||||
// compile module tpl
|
||||
$template_path = $oModule->getTemplatePath();
|
||||
if ($oModule->module_info->module == $oModule->module)
|
||||
$skin = $oModule->origin_module_info->skin;
|
||||
else
|
||||
$skin = $oModule->module_config->skin;
|
||||
|
||||
if ($skin){
|
||||
$theme_skin = explode('.', $skin);
|
||||
if (count($theme_skin) == 2)
|
||||
$template_path = sprintf('./themes/%s/modules/%s/', $theme_skin[0], $theme_skin[1]);
|
||||
else
|
||||
$template_path = $oModule->getTemplatePath();
|
||||
}else
|
||||
$template_path = $oModule->getTemplatePath();
|
||||
$tpl_file = $oModule->getTemplateFile();
|
||||
|
||||
$output = $oTemplate->compile($template_path, $tpl_file);
|
||||
|
||||
// add #xeAdmin div for adminitration pages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue