UI refactoring communication module

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11983 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-31 05:50:49 +00:00
parent d3672fda8f
commit 735c2fa848
7 changed files with 132 additions and 75 deletions

View file

@ -19,10 +19,22 @@
**/
function getCommunicationAdminColorset() {
$skin = Context::get('skin');
$type = Context::get('type') == 'P' ? 'P' : 'M';
Context::set('type', $type);
if($type == 'P')
{
$dir = 'skins';
}
else
{
$dir = 'm.skins';
}
if(!$skin) $tpl = "";
else {
$oModuleModel = &getModel('module');
$skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin);
$skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin, $dir);
Context::set('skin_info', $skin_info);
$oModuleModel = &getModel('module');
@ -39,6 +51,7 @@
}
$this->add('tpl', $tpl);
$this->add('type', $type);
}
}