diff --git a/classes/editor/EditorHandler.class.php b/classes/editor/EditorHandler.class.php index ad7ca966a..0e7dad4b1 100644 --- a/classes/editor/EditorHandler.class.php +++ b/classes/editor/EditorHandler.class.php @@ -7,6 +7,23 @@ class EditorHandler extends Object { + /** + * @brief 컴포넌트의 xml및 관련 정보들을 설정 + **/ + function setInfo($info) { + $this->component_name = $info->component_name; + $this->version = $info->version; + $this->title = $info->title; + $this->author = $info->author; + $this->description = $info->description; + + if($info->extra_vars) { + foreach($info->extra_vars as $key => $val) { + $this->{$key} = trim($val->value); + } + } + } + } ?> diff --git a/modules/editor/components/naver_map/lang/ko.lang.php b/modules/editor/components/naver_map/lang/ko.lang.php index 3f6d64a89..3fe58e3e4 100644 --- a/modules/editor/components/naver_map/lang/ko.lang.php +++ b/modules/editor/components/naver_map/lang/ko.lang.php @@ -18,5 +18,5 @@ $lang->msg_fail_to_socket_open = "우편번호 검색 대상 서버 접속이 실패하였습니다"; $lang->msg_no_result = "검색 결과가 없습니다"; - $lang->msg_no_apikey = "네이버맵 사용을 위해서는 네이버맵 open api key가 있어야 합니다.\nopen api key를 관리자 > 위지윅에디터 > 네이버 지도 연동 컴포넌트 설정을 선택한 후 입력하여 주세요"; + $lang->msg_no_apikey = "네이버맵 사용을 위해서는 네이버맵 open api key가 있어야 합니다.\nopen api key를 관리자 > 위지윅에디터 > 네이버 지도 연동 컴포넌트 설정을 선택한 후 입력하여 주세요"; ?> diff --git a/modules/editor/components/naver_map/naver_map.class.php b/modules/editor/components/naver_map/naver_map.class.php index c380aeabe..86a775fd7 100644 --- a/modules/editor/components/naver_map/naver_map.class.php +++ b/modules/editor/components/naver_map/naver_map.class.php @@ -12,8 +12,8 @@ var $component_path = ''; // 네이버맵 openapi 키 값 - //var $open_api_key = '22b1f5391a6970e03935444897334066'; - var $open_api_key = ''; + //var $api_key = '22b1f5391a6970e03935444897334066'; + var $api_key = ''; /** * @brief upload_target_srl과 컴포넌트의 경로를 받음 @@ -30,7 +30,7 @@ // 템플릿을 미리 컴파일해서 컴파일된 소스를 return $tpl_path = $this->component_path.'tpl'; - if(!$this->open_api_key) $tpl_file = 'error.html'; + if(!$this->api_key) $tpl_file = 'error.html'; else $tpl_file = 'popup.html'; Context::set("tpl_path", $tpl_path); @@ -50,7 +50,7 @@ Context::loadLang($this->component_path."lang"); // 지정된 서버에 요청을 시도한다 - $query_string = iconv("UTF-8","EUC-KR",sprintf('/api/geocode.php?key=%s&query=%s', $this->open_api_key, $address)); + $query_string = iconv("UTF-8","EUC-KR",sprintf('/api/geocode.php?key=%s&query=%s', $this->api_key, $address)); $fp = fsockopen('maps.naver.com', 80, $errno, $errstr); if(!$fp) return new Object(-1, 'msg_fail_to_socket_open'); @@ -129,7 +129,7 @@ '
| {$lang->component_name} | -{$component->component_name} ver. {$component->version} | -
|---|---|
| {$lang->component_author} | -{$component->author->name} | -
| {$lang->component_link} | -{$component->author->link} | -
| {$lang->component_extra_vars} | -|
| {$val->title} | -- |
| {$val->description} | -|
| - - - | -|