diff --git a/common/lang/ko.lang.php b/common/lang/ko.lang.php index 741e842ef..9a8f52c9a 100644 --- a/common/lang/ko.lang.php +++ b/common/lang/ko.lang.php @@ -43,6 +43,7 @@ $lang->cmd_reload = "다시읽기"; $lang->cmd_close = "닫기"; $lang->cmd_open = "열기"; + $lang->cmd_setup = "설정"; $lang->cmd_remake_cache = "캐시파일 재생성"; $lang->enable = '가능'; diff --git a/modules/editor/editor.model.php b/modules/editor/editor.model.php index 21dce9d5a..6910e72bd 100644 --- a/modules/editor/editor.model.php +++ b/modules/editor/editor.model.php @@ -28,11 +28,13 @@ * @brief component의 xml정보를 읽음 **/ function getComponentXmlInfo($component) { + $lang_type = Context::getLangType(); + // 요청된 컴포넌트의 xml파일 위치를 구함 $component_path = sprintf('%scomponents/%s/', $this->module_path, $component); $xml_file = sprintf('%sinfo.xml', $component_path); - $cache_file = sprintf('./files/cache/editor/%s.php', $component); + $cache_file = sprintf('./files/cache/editor/%s.%s.php', $component, $lang_type); // 캐시된 xml파일이 있으면 include 후 정보 return if(file_exists($cache_file) && filectime($cache_file) > filectime($xml_file)) { @@ -46,6 +48,8 @@ // 정보 정리 $xml_info->component_name = $component; + $xml_info->version = $xml_doc->component->attrs->version; + $xml_info->title = $xml_doc->component->title->body; $xml_info->author->name = $xml_doc->component->author->name->body; $xml_info->author->email_address = $xml_doc->component->author->attrs->email_address; $xml_info->author->link = $xml_doc->component->author->attrs->link; @@ -54,6 +58,8 @@ $buff = 'component_name = "%s";', $component); + $buff .= sprintf('$xml_info->version = "%s";', $xml_info->version); + $buff .= sprintf('$xml_info->title = "%s";', $xml_info->title); $buff .= sprintf('$xml_info->author->name = "%s";', $xml_info->author->name); $buff .= sprintf('$xml_info->author->email_address = "%s";', $xml_info->author->email_address); $buff .= sprintf('$xml_info->author->link = "%s";', $xml_info->author->link); @@ -81,7 +87,7 @@ FileHandler::writeFile($cache_file, $buff, "w"); - return $xml_doc->component; + return $xml_info; } } ?> diff --git a/modules/editor/editor.view.php b/modules/editor/editor.view.php index 1bc686dc9..ff860dc7d 100644 --- a/modules/editor/editor.view.php +++ b/modules/editor/editor.view.php @@ -24,9 +24,12 @@ $oEditorModel = &getModel('editor'); foreach($component_list as $component) { - $xml_doc = $oEditorModel->getComponentXmlInfo($component); + $list[$component] = $xml_doc = $oEditorModel->getComponentXmlInfo($component); } - Context::set('component_list', $component_list); + Context::set('component_list', $list); + + $this->setTemplatePath($this->module_path.'tpl'); + $this->setTemplateFile('admin_index'); } /** diff --git a/modules/editor/lang/ko.lang.php b/modules/editor/lang/ko.lang.php index 19143bcd7..380da3a9b 100644 --- a/modules/editor/lang/ko.lang.php +++ b/modules/editor/lang/ko.lang.php @@ -5,5 +5,12 @@ * @brief 위지윅에디터(editor) 모듈의 기본 언어팩 **/ + $lang->component_name = "컴포넌트"; + $lang->component_version = "버전"; + $lang->component_author = "제작자 "; + $lang->component_link = "링크"; + $lang->component_date = "제작일"; + $lang->component_description = "설명"; + $lang->msg_component_is_not_founded = '%s 에디터 컴포넌트를 찾을 수 없습니다'; ?> diff --git a/modules/editor/tpl/admin_index.html b/modules/editor/tpl/admin_index.html new file mode 100644 index 000000000..fa4da2aa9 --- /dev/null +++ b/modules/editor/tpl/admin_index.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{$lang->component_name}{$lang->component_version}{$lang->component_author}{$lang->component_link}{$lang->component_date}{$lang->cmd_setup}{$lang->use}{$lang->cmd_move}
{$xml_info->title}
({$component_name})
{$xml_info->version}{$xml_info->author->name}{$xml_info->author->link}{$xml_info->author->date}{$lang->cmd_setup}{$lang->use}{$lang->cmd_move_up}{$lang->cmd_move_down}
{nl2br($xml_info->description)}