mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 05:39:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@660 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cfa4e9bd30
commit
7472e1165f
5 changed files with 30 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<component version="0.1">
|
||||
<title xml:lang="ko">네이버 지도 연동</title>
|
||||
<title xml:lang="ko">네이버맵 연동</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">네이버에서 제공하는 네이버 지도 open api를 이용하여 에디터에 원하는 곳의 지도를 추가하거나 수정할 수 있습니다.\n네이버 지도 open api키를 발급 받아서 등록을 해주셔야 정상적인 사용이 가능합니다.</description>
|
||||
|
|
|
|||
|
|
@ -17,4 +17,6 @@
|
|||
$lang->msg_not_exists_addr = "검색하려는 대상이 없습니다";
|
||||
$lang->msg_fail_to_socket_open = "우편번호 검색 대상 서버 접속이 실패하였습니다";
|
||||
$lang->msg_no_result = "검색 결과가 없습니다";
|
||||
|
||||
$lang->msg_no_apikey = "네이버맵 사용을 위해서는 네이버맵 open api key가 있어야 합니다.\nopen api key를 관리자 > 위지윅에디터 > 네이버 지도 연동 컴포넌트 설정을 선택한 후 입력하여 주세요";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
var $component_path = '';
|
||||
|
||||
// 네이버맵 openapi 키 값
|
||||
var $open_api_key = '22b1f5391a6970e03935444897334066';
|
||||
//var $open_api_key = '22b1f5391a6970e03935444897334066';
|
||||
var $open_api_key = '';
|
||||
|
||||
/**
|
||||
* @brief upload_target_srl과 컴포넌트의 경로를 받음
|
||||
|
|
@ -28,7 +29,9 @@
|
|||
function getPopupContent() {
|
||||
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
||||
$tpl_path = $this->component_path.'tpl';
|
||||
$tpl_file = 'popup.html';
|
||||
|
||||
if(!$this->open_api_key) $tpl_file = 'error.html';
|
||||
else $tpl_file = 'popup.html';
|
||||
|
||||
Context::set("tpl_path", $tpl_path);
|
||||
|
||||
|
|
|
|||
10
modules/editor/components/naver_map/tpl/error.html
Normal file
10
modules/editor/components/naver_map/tpl/error.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!--%import("popup.css")-->
|
||||
<!--%import("../lang")-->
|
||||
<div class="error_window">
|
||||
<div class="error_text">
|
||||
{nl2br($lang->msg_no_apikey)}
|
||||
</div>
|
||||
<div class="editor_button_area">
|
||||
<input type="button" value="{$lang->cmd_close}" onclick="window.close();" class="editor_button" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -3,6 +3,18 @@
|
|||
clear:both;
|
||||
}
|
||||
|
||||
.error_window {
|
||||
width:700px;
|
||||
}
|
||||
|
||||
.error_text {
|
||||
padding:20px;
|
||||
color:#444444;
|
||||
border:10px solid #DDDDDD;
|
||||
font-size:9pt;
|
||||
line-height:200%;
|
||||
}
|
||||
|
||||
.editor_title {
|
||||
font-size:10pt;
|
||||
font-weight:bold;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue