mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
add apis for design settings(mock)
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11892 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f0376dfa7f
commit
1530b6cf97
3 changed files with 23 additions and 2 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
<action name="getLayoutAdminSetInfoView" type="model" />
|
||||
<action name="getLayoutAdminSetHTMLCSS" type="model" />
|
||||
<action name="getLayoutAdminSiteDefaultLayout" type="model" />
|
||||
|
||||
<action name="dispLayoutPreview" type="view" />
|
||||
<action name="dispLayoutPreviewWithModule" type="view" />
|
||||
|
|
|
|||
|
|
@ -135,4 +135,22 @@ class layoutAdminModel extends layout {
|
|||
|
||||
$this->add('html', $script.$html);
|
||||
}
|
||||
|
||||
function getLayoutAdminSiteDefaultLayout()
|
||||
{
|
||||
$siteSrl = Context::get('site_srl');
|
||||
$type = Context::get('type');
|
||||
|
||||
//TODO remove mock
|
||||
if($type == 'M')
|
||||
{
|
||||
$layoutSrl = 278;
|
||||
}
|
||||
else
|
||||
{
|
||||
$layoutSrl = 62;
|
||||
}
|
||||
|
||||
$this->add('layout_srl', $layoutSrl);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -312,10 +312,13 @@
|
|||
{
|
||||
foreach($moduleList AS $key=>$value)
|
||||
{
|
||||
$moduleInfo = $oModuleModel->getModuleInfoXml($value);
|
||||
$moduleInfo->default_skin = 'default'; //TODO remove mock
|
||||
$moduleInfo->default_mskin = 'default'; //TODO remove mock
|
||||
|
||||
if($value == 'page')
|
||||
{
|
||||
$pageTypeName = Context::getLang('page_type_name');
|
||||
$moduleInfo = $oModuleModel->getModuleInfoXml($value);
|
||||
$moduleInfo->title = $pageTypeName['ARTICLE'];
|
||||
$moduleInfoList['ARTICLE'] = $moduleInfo;
|
||||
$wModuleInfo = clone $moduleInfo;
|
||||
|
|
@ -327,7 +330,6 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
$moduleInfo = $oModuleModel->getModuleInfoXml($value);
|
||||
$moduleInfoList[$value] = $moduleInfo;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue