From c21c7c32e15d77a4af7d4b45f333a9cef9b93585 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 27 Mar 2007 10:22:36 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@723 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/display/DisplayHandler.class.php | 9 ++++--- common/tpl/common_footer.html | 8 ------ common/tpl/common_header.html | 23 ----------------- common/tpl/common_layout.html | 32 ++++++++++++++++++++++++ common/tpl/default_layout.html | 2 -- common/tpl/popup_layout.html | 3 --- layouts/sample_layout/layout.html | 4 --- modules/admin/tpl/layout.html | 4 --- 8 files changed, 38 insertions(+), 47 deletions(-) delete mode 100644 common/tpl/common_footer.html delete mode 100644 common/tpl/common_header.html create mode 100644 common/tpl/common_layout.html diff --git a/classes/display/DisplayHandler.class.php b/classes/display/DisplayHandler.class.php index 47d794691..caebf5370 100644 --- a/classes/display/DisplayHandler.class.php +++ b/classes/display/DisplayHandler.class.php @@ -33,11 +33,14 @@ $content = $oContext->transContent($content); Context::set('content', $content); - // content 래핑 (common/tpl/default.html) + // 레이아웃을 컴파일 require_once("./classes/template/TemplateHandler.class.php"); - $oTemplate = new TemplateHandler(); - $output = $oTemplate->compile($oModule->getLayoutPath(), $oModule->getLayoutFile()); + $zbxe_final_content = $oTemplate->compile($oModule->getLayoutPath(), $oModule->getLayoutFile()); + + // 최종 결과를 common_layout에 넣어버림 + Context::set('zbxe_final_content', $zbxe_final_content); + $output = $oTemplate->compile('./common/tpl', 'common_layout'); } else { $output = $content; diff --git a/common/tpl/common_footer.html b/common/tpl/common_footer.html deleted file mode 100644 index 6d8d3177a..000000000 --- a/common/tpl/common_footer.html +++ /dev/null @@ -1,8 +0,0 @@ -{Context::getHtmlFooter()} -
{$lang->msg_call_server}
-
- close original image - original image -
- - diff --git a/common/tpl/common_header.html b/common/tpl/common_header.html deleted file mode 100644 index 16aa06a9d..000000000 --- a/common/tpl/common_header.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - -{Context::getBrowserTitle()} - - - - - - - - - - - - - -{Context::getHtmlHeader()} - - diff --git a/common/tpl/common_layout.html b/common/tpl/common_layout.html new file mode 100644 index 000000000..570496271 --- /dev/null +++ b/common/tpl/common_layout.html @@ -0,0 +1,32 @@ + + + + + {Context::getBrowserTitle()} + + + + + + + + + + + + + + {Context::getHtmlHeader()} + + + {$zbxe_final_content} + {Context::getHtmlFooter()} +
{$lang->msg_call_server}
+
+ close original image + original image +
+ + diff --git a/common/tpl/default_layout.html b/common/tpl/default_layout.html index d1da8601d..d9f1e44a0 100644 --- a/common/tpl/default_layout.html +++ b/common/tpl/default_layout.html @@ -1,3 +1 @@ - {$content} - diff --git a/common/tpl/popup_layout.html b/common/tpl/popup_layout.html index 43092a502..01b8d7e61 100644 --- a/common/tpl/popup_layout.html +++ b/common/tpl/popup_layout.html @@ -1,9 +1,6 @@ - - - diff --git a/layouts/sample_layout/layout.html b/layouts/sample_layout/layout.html index ae46d79e1..1a3a9b174 100644 --- a/layouts/sample_layout/layout.html +++ b/layouts/sample_layout/layout.html @@ -1,4 +1,3 @@ - @@ -103,6 +102,3 @@ - - - diff --git a/modules/admin/tpl/layout.html b/modules/admin/tpl/layout.html index 08ae61f0c..12db95e64 100644 --- a/modules/admin/tpl/layout.html +++ b/modules/admin/tpl/layout.html @@ -1,8 +1,6 @@ - -
zeroboard XE
@@ -32,5 +30,3 @@
{$content}
- -