mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
게시판 스킨의 상단에 스킨 정보 노출 아이콘 추가
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2248 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6acfb459f9
commit
fb0ceb7d0e
16 changed files with 97 additions and 0 deletions
41
modules/module/module.view.php
Normal file
41
modules/module/module.view.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
/**
|
||||
* @class moduleView
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief module 모듈의 view class
|
||||
**/
|
||||
|
||||
class moduleView extends module {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// template path 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 스킨 정보 출력
|
||||
**/
|
||||
function dispModuleSkinInfo() {
|
||||
$selected_module = Context::get('selected_module');
|
||||
$skin = Context::get('skin');
|
||||
|
||||
// 모듈/스킨 정보를 구함
|
||||
$module_path = sprintf("./modules/%s/", $selected_module);
|
||||
if(!is_dir($module_path)) $this->stop("msg_invalid_request");
|
||||
|
||||
$skin_info_xml = sprintf("%sskins/%s/skin.xml", $module_path, $skin);
|
||||
if(!file_exists($skin_info_xml)) $this->stop("msg_invalid_request");
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$skin_info = $oModuleModel->loadSkinInfo($module_path, $skin);
|
||||
Context::set('skin_info',$skin_info);
|
||||
|
||||
$this->setLayoutFile("popup_layout");
|
||||
$this->setTemplateFile("skin_info");
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue