mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 03:12:55 +09:00
added layout and skin's name for design settings
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12240 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d9f44e9d48
commit
e665650392
3 changed files with 49 additions and 4 deletions
|
|
@ -201,9 +201,7 @@
|
|||
}
|
||||
|
||||
$args->menu_item_srl = $menuItemSrl;
|
||||
|
||||
$output = executeQuery('module.getModuleInfoByMenuItemSrl', $args);
|
||||
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
|
|
@ -213,6 +211,41 @@
|
|||
$mid = $moduleInfo->mid;
|
||||
$site_srl = $moduleInfo->site_srl;
|
||||
|
||||
$moduleInfo->designSettings = new stdClass();
|
||||
$moduleInfo->designSettings->layout = new stdClass();
|
||||
$moduleInfo->designSettings->skin = new stdClass();
|
||||
|
||||
$oLayoutAdminModel = getAdminModel('layout');
|
||||
$layoutSrlPc = ($moduleInfo->layout_srl == -1) ? $oLayoutAdminModel->getSiteDefaultLayout('P', $moduleInfo->site_srl) : $moduleInfo->layout_srl;
|
||||
$layoutSrlMobile = ($moduleInfo->mlayout_srl == -1) ? $oLayoutAdminModel->getSiteDefaultLayout('M', $moduleInfo->site_srl) : $moduleInfo->mlayout_srl;
|
||||
$skinNamePc = (!$moduleInfo->skin) ? $this->getModuleDefaultSkin($moduleInfo->module, 'P') : $moduleInfo->skin;
|
||||
$skinNameMobile = (!$moduleInfo->mskin) ? $this->getModuleDefaultSkin($moduleInfo->module, 'M') : $moduleInfo->mskin;
|
||||
|
||||
$oLayoutModel = getModel('layout');
|
||||
$layoutInfoPc = $layoutSrlPc ? $oLayoutModel->getLayoutRawData($layoutSrlPc, array('title')) : NULL;
|
||||
$layoutInfoMobile = $layoutSrlMobile ? $oLayoutModel->getLayoutRawData($layoutSrlMobile, array('title')) : NULL;
|
||||
$skinInfoPc = $this->loadSkinInfo(Modulehandler::getModulePath($moduleInfo->module), $skinNamePc);
|
||||
$skinInfoMobile = $this->loadSkinInfo(Modulehandler::getModulePath($moduleInfo->module), $skinNameMobile, 'm.skin');
|
||||
if(!$skinInfoPc)
|
||||
{
|
||||
$skinInfoPc = new stdClass();
|
||||
$skinInfoPc->title = $skinNamePc;
|
||||
}
|
||||
if(!$skinInfoMobile)
|
||||
{
|
||||
$skinInfoMobile = new stdClass();
|
||||
$skinInfoMobile->title = $skinNameMobile;
|
||||
}
|
||||
|
||||
$moduleInfo->designSettings->layout->pcIsDefault = $moduleInfo->layout_srl == -1 ? 1 : 0;
|
||||
$moduleInfo->designSettings->layout->pc = $layoutInfoPc->title;
|
||||
$moduleInfo->designSettings->layout->mobileIsDefault = $moduleInfo->mlayout_srl == -1 ? 1 : 0;
|
||||
$moduleInfo->designSettings->layout->mobile = $layoutInfoMobile->title;
|
||||
$moduleInfo->designSettings->skin->pcIsDefault = !$moduleInfo->skin ? 1 : 0;
|
||||
$moduleInfo->designSettings->skin->pc = $skinInfoPc->title;
|
||||
$moduleInfo->designSettings->skin->mobileIsDefault = !$moduleInfo->mskin ? 1 : 0;
|
||||
$moduleInfo->designSettings->skin->mobile = $skinInfoMobile->title;
|
||||
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue