mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1269 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6f8e1fd915
commit
54442e2e18
22 changed files with 34 additions and 43 deletions
|
|
@ -32,8 +32,7 @@
|
||||||
|
|
||||||
// 레이아웃을 컴파일
|
// 레이아웃을 컴파일
|
||||||
if(__DEBUG__==3) $start = getMicroTime();
|
if(__DEBUG__==3) $start = getMicroTime();
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
|
|
||||||
$layout_path = $oModule->getLayoutPath();
|
$layout_path = $oModule->getLayoutPath();
|
||||||
$layout_file = $oModule->getLayoutFile();
|
$layout_file = $oModule->getLayoutFile();
|
||||||
|
|
@ -122,8 +121,7 @@
|
||||||
**/
|
**/
|
||||||
function _toHTMLDoc(&$oModule) {
|
function _toHTMLDoc(&$oModule) {
|
||||||
// template handler 객체 생성
|
// template handler 객체 생성
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
|
|
||||||
// module tpl 변환
|
// module tpl 변환
|
||||||
$template_path = $oModule->getTemplatePath();
|
$template_path = $oModule->getTemplatePath();
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,14 @@
|
||||||
var $tpl_path = ''; ///< 컴파일 대상 경로
|
var $tpl_path = ''; ///< 컴파일 대상 경로
|
||||||
var $tpl_file = ''; ///< 컴파일 대상 파일
|
var $tpl_file = ''; ///< 컴파일 대상 파일
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TemplateHandler의 기생성된 객체를 return
|
||||||
|
**/
|
||||||
|
function &getInstance() {
|
||||||
|
if(!$GLOBALS['__TemplateHandler__']) $GLOBALS['__TemplateHandler__'] = new TemplateHandler();
|
||||||
|
return $GLOBALS['__TemplateHandler__'];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 주어진 tpl파일의 컴파일
|
* @brief 주어진 tpl파일의 컴파일
|
||||||
**/
|
**/
|
||||||
|
|
@ -200,7 +208,7 @@
|
||||||
// include 시도
|
// include 시도
|
||||||
$output = sprintf(
|
$output = sprintf(
|
||||||
'<?php%s'.
|
'<?php%s'.
|
||||||
'$oTemplate = new TemplateHandler();%s'.
|
'$oTemplate = &TemplateHandler::getInstance();%s'.
|
||||||
'print $oTemplate->compile(\'%s\',\'%s\');%s'.
|
'print $oTemplate->compile(\'%s\',\'%s\');%s'.
|
||||||
'?>%s',
|
'?>%s',
|
||||||
"\n",
|
"\n",
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@
|
||||||
require_once("./classes/module/ModuleObject.class.php");
|
require_once("./classes/module/ModuleObject.class.php");
|
||||||
require_once("./classes/module/ModuleHandler.class.php");
|
require_once("./classes/module/ModuleHandler.class.php");
|
||||||
require_once("./classes/display/DisplayHandler.class.php");
|
require_once("./classes/display/DisplayHandler.class.php");
|
||||||
|
require_once("./classes/template/TemplateHandler.class.php");
|
||||||
if(__DEBUG__) $GLOBALS['__elapsed_class_load__'] = getMicroTime() - __ClassLosdStartTime__;
|
if(__DEBUG__) $GLOBALS['__elapsed_class_load__'] = getMicroTime() - __ClassLosdStartTime__;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,9 @@
|
||||||
Context::set('comment_srl', $upload_target_srl);
|
Context::set('comment_srl', $upload_target_srl);
|
||||||
|
|
||||||
// template 가져옴
|
// template 가져옴
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
|
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
|
||||||
|
|
||||||
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$tpl = $oTemplate->compile($template_path, 'comment_form');
|
$tpl = $oTemplate->compile($template_path, 'comment_form');
|
||||||
|
|
||||||
// 결과 설정
|
// 결과 설정
|
||||||
|
|
@ -115,8 +116,7 @@
|
||||||
Context::set('category_info', $category_info);
|
Context::set('category_info', $category_info);
|
||||||
|
|
||||||
// template 파일을 직접 컴파일한후 tpl변수에 담아서 return한다.
|
// template 파일을 직접 컴파일한후 tpl변수에 담아서 return한다.
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
$tpl = $oTemplate->compile($this->module_path.'tpl', 'category_info');
|
$tpl = $oTemplate->compile($this->module_path.'tpl', 'category_info');
|
||||||
|
|
||||||
// return 할 변수 설정
|
// return 할 변수 설정
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,7 @@
|
||||||
$emoticon_list = FileHandler::readDir($tpl_path.'/images');
|
$emoticon_list = FileHandler::readDir($tpl_path.'/images');
|
||||||
Context::set('emoticon_list', $emoticon_list);
|
Context::set('emoticon_list', $emoticon_list);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -64,8 +63,7 @@
|
||||||
if($gallery_info->gallery_style == "list") $tpl_file = 'list_gallery.html';
|
if($gallery_info->gallery_style == "list") $tpl_file = 'list_gallery.html';
|
||||||
else $tpl_file = 'slide_gallery.html';
|
else $tpl_file = 'slide_gallery.html';
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,7 @@
|
||||||
$tpl_path = $this->component_path.'tpl';
|
$tpl_path = $this->component_path.'tpl';
|
||||||
$tpl_file = 'popup.html';
|
$tpl_file = 'popup.html';
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
Context::set("tpl_path", $tpl_path);
|
Context::set("tpl_path", $tpl_path);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,7 @@
|
||||||
$tpl_path = $this->component_path.'tpl';
|
$tpl_path = $this->component_path.'tpl';
|
||||||
$tpl_file = 'popup.html';
|
$tpl_file = 'popup.html';
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,7 @@
|
||||||
$oFileController = &getController('file');
|
$oFileController = &getController('file');
|
||||||
$oFileController->setUploadEnable($upload_target_srl);
|
$oFileController->setUploadEnable($upload_target_srl);
|
||||||
}
|
}
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,8 +114,7 @@
|
||||||
Context::set('item_info', $item_info);
|
Context::set('item_info', $item_info);
|
||||||
|
|
||||||
// template 파일을 직접 컴파일한후 tpl변수에 담아서 return한다.
|
// template 파일을 직접 컴파일한후 tpl변수에 담아서 return한다.
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
$tpl = $oTemplate->compile($this->module_path.'tpl', 'menu_item_info');
|
$tpl = $oTemplate->compile($this->module_path.'tpl', 'menu_item_info');
|
||||||
|
|
||||||
// return 할 변수 설정
|
// return 할 변수 설정
|
||||||
|
|
|
||||||
|
|
@ -90,8 +90,7 @@
|
||||||
Context::set('poll_config', $poll_config);
|
Context::set('poll_config', $poll_config);
|
||||||
$tpl_path = sprintf("%sskins/%s/", $this->module_path, $poll_config->skin);
|
$tpl_path = sprintf("%sskins/%s/", $this->module_path, $poll_config->skin);
|
||||||
|
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
$oTemplate = new TemplateHandler();
|
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
$tpl_file = 'counter_status';
|
$tpl_file = 'counter_status';
|
||||||
|
|
||||||
// 템플릿 컴파일
|
// 템플릿 컴파일
|
||||||
$oTemplate = new TemplateHandler();
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
else $tpl_file = 'login_form';
|
else $tpl_file = 'login_form';
|
||||||
|
|
||||||
// 템플릿 컴파일
|
// 템플릿 컴파일
|
||||||
$oTemplate = new TemplateHandler();
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
$tpl_file = 'list';
|
$tpl_file = 'list';
|
||||||
|
|
||||||
// 템플릿 컴파일
|
// 템플릿 컴파일
|
||||||
$oTemplate = new TemplateHandler();
|
$oTemplate = &TemplateHandler::getInstance();
|
||||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue