mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 23:59:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@763 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
044e53c88c
commit
085cc7010a
1 changed files with 10 additions and 9 deletions
|
|
@ -11,22 +11,23 @@
|
||||||
* @brief 초기화
|
* @brief 초기화
|
||||||
**/
|
**/
|
||||||
function init() {
|
function init() {
|
||||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
|
||||||
$oModuleModel = &getModel('module');
|
|
||||||
$config = $oModuleModel->getModuleConfig('rss');
|
|
||||||
if(!$config->skin) $config->skin = 'default';
|
|
||||||
Context::set('skin',$config->skin);
|
|
||||||
|
|
||||||
// 템플릿 경로를 지정
|
|
||||||
$template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
|
|
||||||
$this->setTemplatePath($this->module_path.'tpl');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 메세지 출력
|
* @brief 메세지 출력
|
||||||
**/
|
**/
|
||||||
function dispContent() {
|
function dispContent() {
|
||||||
|
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||||
|
$oModuleModel = &getModel('module');
|
||||||
|
$config = $oModuleModel->getModuleConfig('rss');
|
||||||
|
if(!$config->skin) $config->skin = 'default';
|
||||||
|
|
||||||
|
// 템플릿 경로를 지정
|
||||||
|
$template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
|
||||||
|
|
||||||
Context::set('system_message', $this->getMessage());
|
Context::set('system_message', $this->getMessage());
|
||||||
|
|
||||||
|
$this->setTemplatePath($template_path);
|
||||||
$this->setTemplateFile('system_message');
|
$this->setTemplateFile('system_message');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue