mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1065 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
43dac1f249
commit
4addc42763
4 changed files with 13 additions and 7 deletions
|
|
@ -32,7 +32,12 @@
|
|||
// 레이아웃을 컴파일
|
||||
require_once("./classes/template/TemplateHandler.class.php");
|
||||
$oTemplate = new TemplateHandler();
|
||||
$zbxe_final_content = $oTemplate->compile($oModule->getLayoutPath(), $oModule->getLayoutFile());
|
||||
|
||||
$layout_path = $oModule->getLayoutPath();
|
||||
$layout_file = $oModule->getLayoutFile();
|
||||
if(!$layout_path) $layout_path = './common/tpl/';
|
||||
if(!$layout_file) $layout_file = 'default_layout.html';
|
||||
$zbxe_final_content = $oTemplate->compile($layout_path, $layout_file);
|
||||
|
||||
// 각 플러그인, 에디터 컴포넌트의 코드 변경
|
||||
$oContext = &Context::getInstance();
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@
|
|||
Context::set('zbxe_url', $zbxe_url);
|
||||
|
||||
// 해당 모듈에 layout_srl이 있는지 확인
|
||||
if($oModule->module_info->layout_srl) {
|
||||
if($oModule->module_info->layout_srl && !$oModule->getLayoutFile()) {
|
||||
// layout_srl이 있으면 해당 레이아웃 정보를 가져와 layout_path/ layout_file 위치 변경
|
||||
$oLayoutModel = &getModel('layout');
|
||||
$layout_info = $oLayoutModel->getLayout($oModule->module_info->layout_srl);
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@
|
|||
var $template_path = NULL; ///< template 경로
|
||||
var $template_file = NULL; ///< template 파일
|
||||
|
||||
var $layout_path = './common/tpl/'; ///< 레이아웃 경로
|
||||
var $layout_file = 'default_layout.html'; ///< 레이아웃 파일
|
||||
var $layout_path = ''; ///< 레이아웃 경로
|
||||
var $layout_file = ''; ///< 레이아웃 파일
|
||||
|
||||
var $stop_proc = false; ///< action 수행중 stop()를 호출하면 ModuleObject::proc()를 수행하지 않음
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue