mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
issue 2620 add theme skins to skin lists.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11872 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
945962fd6a
commit
a867fadebd
1 changed files with 20 additions and 0 deletions
|
|
@ -805,6 +805,26 @@
|
|||
$skin_list[$skin_name] = $skin_info;
|
||||
}
|
||||
|
||||
if($dir == 'skins')
|
||||
{
|
||||
$tmpPath = strtr($path, array('/' => ' '));
|
||||
$tmpPath = trim($tmpPath);
|
||||
$module = array_pop(explode(' ', $tmpPath));
|
||||
|
||||
$oAdminModel = getAdminModel('admin');
|
||||
$themesInfo = $oAdminModel->getThemeList();
|
||||
|
||||
foreach($themesInfo as $themeName => $info)
|
||||
{
|
||||
$skinInfos = $info->skin_infos;
|
||||
if(isset($skinInfos[$module]) && $skinInfos[$module]->is_theme)
|
||||
{
|
||||
$themeSkinInfo = $GLOBALS['__ThemeModuleSkin__'][$module]['skins'][$skinInfos[$module]->name];
|
||||
$skin_list[$skinInfos[$module]->name] = $themeSkinInfo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $skin_list;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue