mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
added "use site default layout"
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12105 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2312f34813
commit
77ce30e618
2 changed files with 14 additions and 0 deletions
|
|
@ -1086,4 +1086,7 @@
|
|||
<item name="msg_at_least_one_layout">
|
||||
<value xml:lang="ko"><![CDATA[해당 레이아웃의 마지막 한개 레이아웃은 삭제할 수 없습니다.]]></value>
|
||||
</item>
|
||||
<item name="use_site_default_layout">
|
||||
<value xml:lang="ko"><![CDATA[사이트 기본 레이아웃 사용]]></value>
|
||||
</item>
|
||||
</lang>
|
||||
|
|
|
|||
|
|
@ -38,6 +38,17 @@
|
|||
$args->site_srl = $site_srl;
|
||||
$args->layout_type = $layout_type;
|
||||
$output = executeQueryArray('layout.getLayoutList', $args, $columnList);
|
||||
|
||||
$oLayoutAdminModel = getAdminModel('layout');
|
||||
$siteDefaultLayoutSrl = $oLayoutAdminModel->getSiteDefaultLayout($layout_type, $site_srl);
|
||||
$siteDefaultLayoutInfo = $this->getlayout($siteDefaultLayoutSrl);
|
||||
$newLayout = sprintf('%s, %s', $siteDefaultLayoutInfo->title, $siteDefaultLayoutInfo->title);
|
||||
$siteDefaultLayoutInfo->layout_srl = -1;
|
||||
$siteDefaultLayoutInfo->title = Context::getLang('use_site_default_layout');
|
||||
$siteDefaultLayoutInfo->layout = $newLayout;
|
||||
|
||||
array_unshift($output->data, $siteDefaultLayoutInfo);
|
||||
|
||||
return $output->data;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue