이미지/URL링크, 컬러피커 제거
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6101 201d5d3c-b55e-5fd7-737f-ddc643e51545
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @class colorpicker_bg
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 글자 배경색을 지정하는 컴포넌트
|
||||
**/
|
||||
|
||||
class colorpicker_bg extends EditorHandler {
|
||||
|
||||
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
|
||||
var $editor_sequence = 0;
|
||||
var $component_path = '';
|
||||
|
||||
/**
|
||||
* @brief editor_sequence과 컴포넌트의 경로를 받음
|
||||
**/
|
||||
function colorpicker_bg($editor_sequence, $component_path) {
|
||||
$this->editor_sequence = $editor_sequence;
|
||||
$this->component_path = $component_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
|
||||
**/
|
||||
function getPopupContent() {
|
||||
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
||||
$tpl_path = $this->component_path.'tpl';
|
||||
$tpl_file = 'popup.html';
|
||||
|
||||
Context::set("tpl_path", $tpl_path);
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
Before Width: | Height: | Size: 595 B |
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component version="0.2">
|
||||
<title xml:lang="ko">글의 배경색 변경</title>
|
||||
<title xml:lang="jp">文字の背景色変更</title>
|
||||
<title xml:lang="zh-CN">背景颜色</title>
|
||||
<title xml:lang="en">Change the background color of article</title>
|
||||
<title xml:lang="es">Cambiar el color de fondo del artículo</title>
|
||||
<title xml:lang="ru">Изменение цвета фона статьи</title>
|
||||
<title xml:lang="zh-TW">主題背景顏色</title>
|
||||
<description xml:lang="ko">글의 배경색을 변경합니다.</description>
|
||||
<description xml:lang="jp">文字の背景色を変更します。</description>
|
||||
<description xml:lang="zh-CN">可修改字体背景颜色。</description>
|
||||
<description xml:lang="en">It will change the background color of article.</description>
|
||||
<description xml:lang="es">Se cambiará el color de fondo del artículo.</description>
|
||||
<description xml:lang="ru">Позволяет изменение цвета фона статьи.</description>
|
||||
<description xml:lang="zh-TW">可改變主題背景顏色。</description>
|
||||
<version>0.1</version>
|
||||
<date>2007-02-28</date>
|
||||
|
||||
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<name xml:lang="jp">zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<name xml:lang="es">zero</name>
|
||||
<name xml:lang="ru">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
</component>
|
||||
|
Before Width: | Height: | Size: 43 B |
|
|
@ -1,51 +0,0 @@
|
|||
@charset "utf-8";
|
||||
|
||||
.colorpicker {
|
||||
width:275px;
|
||||
height:100px;
|
||||
padding:5px;
|
||||
clear:both;
|
||||
}
|
||||
|
||||
li { list-style:none; float:left; margin-right:5px; }
|
||||
|
||||
img.preview_color {
|
||||
width:30px;
|
||||
height:16px;
|
||||
border:1px solid #000000;
|
||||
background-color:#FFFFFF;
|
||||
}
|
||||
|
||||
img.color_icon {
|
||||
width:14px;
|
||||
height:14px;
|
||||
border:1px solid #FFFFFF;
|
||||
}
|
||||
|
||||
img.color_icon_over {
|
||||
width:14px;
|
||||
height:14px;
|
||||
border:1px solid #000000;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.input_area {
|
||||
text-align:center;
|
||||
height:25px;
|
||||
padding:5px;
|
||||
font-family:tahoma;
|
||||
font-size:8pt;
|
||||
clear:both;
|
||||
text-align:center;
|
||||
background-color:#EEEEEE;
|
||||
}
|
||||
|
||||
.popup_input {
|
||||
border:1px solid #AAAAAA;
|
||||
height:14px;
|
||||
}
|
||||
|
||||
.popup_submit {
|
||||
border:1px solid #AAAAAA;
|
||||
height:18px;
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<!--%import("popup.js")-->
|
||||
<!--%import("popup.css")-->
|
||||
<div class="colorpicker">
|
||||
<script type='text/javascript'>
|
||||
printColor("{$tpl_path}/blank.gif");
|
||||
</script>
|
||||
</div>
|
||||
<div class="input_area">
|
||||
<form action="./" method="get" onsubmit="return applyColor()">
|
||||
<ul>
|
||||
<li><img src="blank.gif" alt="blank" class="preview_color" id="preview_color" /></li>
|
||||
<li>#<input type="text" id="color_input" size="6" maxlength="6" class="popup_input" value="FFFFFF" onkeyup="manual_select_color(this)"/></li>
|
||||
<li><input type="submit" value="{$lang->cmd_select}" class="popup_submit"/></li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
/* 부모창의 위지윅 에디터의 선택된 영역의 글자색을 변경 */
|
||||
function applyColor() {
|
||||
var code = xGetElementById("color_input").value;
|
||||
|
||||
if(opener.xIE4Up) opener.editorDo("BackColor","#"+code, opener.editorPrevSrl);
|
||||
else opener.editorDo("hilitecolor","#"+code, opener.editorPrevSrl);
|
||||
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
|
||||
window.close();
|
||||
}
|
||||
|
||||
/* 색상 클릭시 */
|
||||
function select_color(code) {
|
||||
xGetElementById("color_input").value = code;
|
||||
xGetElementById("preview_color").style.backgroundColor = "#"+code;
|
||||
}
|
||||
|
||||
/* 색상표를 출력 */
|
||||
function printColor(blank_img_src) {
|
||||
var colorTable = new Array('22','44','66','88','AA','CC','EE');
|
||||
var html = "";
|
||||
|
||||
for(var i=0;i<8;i+=1) html += printColorBlock(i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16), blank_img_src);
|
||||
|
||||
for(var i=0; i<colorTable.length; i+=3) {
|
||||
for(var j=0; j<colorTable.length; j+=2) {
|
||||
for(var k=0; k<colorTable.length; k++) {
|
||||
var code = colorTable[i] + colorTable[j] + colorTable[k];
|
||||
html += printColorBlock(code, blank_img_src);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(var i=8;i<16;i+=1) html += printColorBlock(i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16), blank_img_src);
|
||||
|
||||
document.write(html);
|
||||
}
|
||||
|
||||
/* 개별 색상 block 출력 함수 */
|
||||
function printColorBlock(code, blank_img_src) {
|
||||
return "<div style=\"float:left;background-color:#"+code+"\"><img src=\""+blank_img_src+"\" class=\"color_icon\" onmouseover=\"this.className='color_icon_over'\" onmouseout=\"this.className='color_icon'\" onclick=\"select_color('"+code+"')\" alt=\"color\" \/><\/div>";
|
||||
}
|
||||
|
||||
/* 수동 색상 변경시 */
|
||||
function manual_select_color(obj) {
|
||||
if(obj.value.length!=6) return;
|
||||
xGetElementById("preview_color").style.backgroundColor = "#"+obj.value;
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @class colorpicker_text
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 글자색 변경하는 컴포넌트
|
||||
**/
|
||||
|
||||
class colorpicker_text extends EditorHandler {
|
||||
|
||||
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
|
||||
var $editor_sequence = 0;
|
||||
var $component_path = '';
|
||||
|
||||
/**
|
||||
* @brief editor_sequence과 컴포넌트의 경로를 받음
|
||||
**/
|
||||
function colorpicker_text($editor_sequence, $component_path) {
|
||||
$this->editor_sequence = $editor_sequence;
|
||||
$this->component_path = $component_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
|
||||
**/
|
||||
function getPopupContent() {
|
||||
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
||||
$tpl_path = $this->component_path.'tpl';
|
||||
$tpl_file = 'popup.html';
|
||||
|
||||
Context::set("tpl_path", $tpl_path);
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
Before Width: | Height: | Size: 549 B |
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component version="0.2">
|
||||
<title xml:lang="ko">글자색 변경</title>
|
||||
<title xml:lang="jp">文字色変更</title>
|
||||
<title xml:lang="zh-CN">字体颜色</title>
|
||||
<title xml:lang="en">Change the color of text</title>
|
||||
<title xml:lang="es">Cambiar el color de texto</title>
|
||||
<title xml:lang="ru">Изменение цвета текста</title>
|
||||
<title xml:lang="zh-TW">文字顏色</title>
|
||||
<description xml:lang="ko">글자색을 변경합니다.</description>
|
||||
<description xml:lang="jp">文字色を変更します。</description>
|
||||
<description xml:lang="zh-CN">可修改字体颜色。</description>
|
||||
<description xml:lang="en">It will change the color of text.</description>
|
||||
<description xml:lang="es">Se va a cambiar el color del texto.</description>
|
||||
<description xml:lang="ru">Позволяет изменение цвета текста.</description>
|
||||
<description xml:lang="zh-TW">可改變文字顏色。</description>
|
||||
<version>0.1</version>
|
||||
<date>2007-02-28</date>
|
||||
|
||||
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<name xml:lang="jp">zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<name xml:lang="es">zero</name>
|
||||
<name xml:lang="ru">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
</component>
|
||||
|
Before Width: | Height: | Size: 43 B |
|
|
@ -1,51 +0,0 @@
|
|||
@charset "utf-8";
|
||||
|
||||
.colorpicker {
|
||||
width:275px;
|
||||
height:100px;
|
||||
padding:5px;
|
||||
clear:both;
|
||||
}
|
||||
|
||||
li { list-style:none; float:left; margin-right:5px; }
|
||||
|
||||
img.preview_color {
|
||||
width:30px;
|
||||
height:16px;
|
||||
border:1px solid #000000;
|
||||
background-color:#000000;
|
||||
}
|
||||
|
||||
img.color_icon {
|
||||
width:14px;
|
||||
height:14px;
|
||||
border:1px solid #FFFFFF;
|
||||
}
|
||||
|
||||
img.color_icon_over {
|
||||
width:14px;
|
||||
height:14px;
|
||||
border:1px solid #000000;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.input_area {
|
||||
text-align:center;
|
||||
height:25px;
|
||||
padding:5px;
|
||||
font-family:tahoma;
|
||||
font-size:8pt;
|
||||
clear:both;
|
||||
text-align:center;
|
||||
background-color:#EEEEEE;
|
||||
}
|
||||
|
||||
.popup_input {
|
||||
border:1px solid #AAAAAA;
|
||||
height:14px;
|
||||
}
|
||||
|
||||
.popup_submit {
|
||||
border:1px solid #AAAAAA;
|
||||
height:18px;
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<!--%import("popup.js")-->
|
||||
<!--%import("popup.css")-->
|
||||
<div class="colorpicker">
|
||||
<script type='text/javascript'>
|
||||
printColor("{$tpl_path}/blank.gif");
|
||||
</script>
|
||||
</div>
|
||||
<div class="input_area">
|
||||
<form action="./" method="get" onsubmit="return applyColor()">
|
||||
<ul>
|
||||
<li><img src="blank.gif" alt="blank" class="preview_color" id="preview_color" /></li>
|
||||
<li>#<input type="text" id="color_input" size="6" maxlength="6" class="popup_input" value="000000" onkeyup="manual_select_color(this)"/></li>
|
||||
<li><input type="submit" value="{$lang->cmd_select}" class="popup_submit"/></li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
/* 부모창의 위지윅 에디터의 선택된 영역의 글자색을 변경 */
|
||||
function applyColor() {
|
||||
var code = xGetElementById("color_input").value;
|
||||
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
|
||||
opener.editorDo("ForeColor", "#"+code, opener.editorPrevSrl);
|
||||
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
|
||||
self.close();
|
||||
}
|
||||
|
||||
/* 색상 클릭시 */
|
||||
function select_color(code) {
|
||||
xGetElementById("color_input").value = code;
|
||||
xGetElementById("preview_color").style.backgroundColor = "#"+code;
|
||||
}
|
||||
|
||||
/* 색상표를 출력 */
|
||||
function printColor(blank_img_src) {
|
||||
var colorTable = new Array('22','44','66','88','AA','CC','EE');
|
||||
var html = "";
|
||||
|
||||
for(var i=0;i<8;i+=1) html += printColorBlock(i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16), blank_img_src);
|
||||
|
||||
for(var i=0; i<colorTable.length; i+=3) {
|
||||
for(var j=0; j<colorTable.length; j+=2) {
|
||||
for(var k=0; k<colorTable.length; k++) {
|
||||
var code = colorTable[i] + colorTable[j] + colorTable[k];
|
||||
html += printColorBlock(code, blank_img_src);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(var i=8;i<16;i+=1) html += printColorBlock(i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16)+i.toString(16), blank_img_src);
|
||||
|
||||
document.write(html);
|
||||
}
|
||||
|
||||
/* 개별 색상 block 출력 함수 */
|
||||
function printColorBlock(code, blank_img_src) {
|
||||
return "<div style=\"float:left;background-color:#"+code+"\"><img src=\""+blank_img_src+"\" class=\"color_icon\" onmouseover=\"this.className='color_icon_over'\" onmouseout=\"this.className='color_icon'\" onclick=\"select_color('"+code+"')\" alt=\"color\" \/><\/div>";
|
||||
}
|
||||
|
||||
/* 수동 색상 변경시 */
|
||||
function manual_select_color(obj) {
|
||||
if(obj.value.length!=6) return;
|
||||
xGetElementById("preview_color").style.backgroundColor = "#"+obj.value;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 828 B |
|
|
@ -1,97 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @class image_link
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 이미지를 추가하거나 속성을 수정하는 컴포넌트
|
||||
**/
|
||||
|
||||
class image_link extends EditorHandler {
|
||||
|
||||
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
|
||||
var $editor_sequence = 0;
|
||||
var $component_path = '';
|
||||
|
||||
/**
|
||||
* @brief editor_sequence과 컴포넌트의 경로를 받음
|
||||
**/
|
||||
function image_link($editor_sequence, $component_path) {
|
||||
$this->editor_sequence = $editor_sequence;
|
||||
$this->component_path = $component_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
|
||||
**/
|
||||
function getPopupContent() {
|
||||
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
||||
$tpl_path = $this->component_path.'tpl';
|
||||
$tpl_file = 'popup.html';
|
||||
|
||||
Context::set("tpl_path", $tpl_path);
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 에디터 컴포넌트가 별도의 고유 코드를 이용한다면 그 코드를 html로 변경하여 주는 method
|
||||
*
|
||||
* 이미지나 멀티미디어, 설문등 고유 코드가 필요한 에디터 컴포넌트는 고유코드를 내용에 추가하고 나서
|
||||
* DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경
|
||||
**/
|
||||
function transHTML($xml_obj) {
|
||||
$src = $xml_obj->attrs->src;
|
||||
$width = $xml_obj->attrs->width;
|
||||
$height = $xml_obj->attrs->height;
|
||||
$align = $xml_obj->attrs->align;
|
||||
$alt = $xml_obj->attrs->alt;
|
||||
$border = (int)$xml_obj->attrs->border;
|
||||
$link_url = $xml_obj->attrs->link_url;
|
||||
$open_window = $xml_obj->attrs->open_window;
|
||||
$style = $xml_obj->attrs->style;
|
||||
$margin = (int)$xml_obj->attrs->margin;
|
||||
|
||||
if(!$alt) {
|
||||
$tmp_arr = explode('/',$src);
|
||||
$alt = array_pop($tmp_arr);
|
||||
}
|
||||
|
||||
$src = str_replace(array('&','"'), array('&','&qout;'), $src);
|
||||
if(!$alt) $alt = $src;
|
||||
|
||||
$attr_output = array();
|
||||
$attr_output = array("src=\"".$src."\"");
|
||||
if($alt) {
|
||||
$attr_output[] = "alt=\"".$alt."\"";
|
||||
$attr_output[] = "title=\"".$alt."\"";
|
||||
}
|
||||
if($margin) {
|
||||
$style = trim(preg_replace('/margin[a-z\-]*[ ]*:[ ]*[0-9 a-z]+(;| )/i','', $style)).';';
|
||||
$style = str_replace(';;',';',$style);
|
||||
if($style == ';') $style = '';
|
||||
$style .= ' margin:'.$margin.'px;';
|
||||
}
|
||||
if($align) $attr_output[] = "align=\"".$align."\"";
|
||||
|
||||
if(preg_match("/\.png$/i",$src)) $attr_output[] = "class=\"iePngFix\"";
|
||||
|
||||
if($width) $attr_output[] = 'width="'.$width.'"';
|
||||
if($height) $attr_output[] = 'height="'.$height.'"';
|
||||
if($border) {
|
||||
$style = trim(preg_replace('/border[a-z\-]*[ ]*:[ ]*[0-9 a-z]+(;| )/i','', $style)).';';
|
||||
$style = str_replace(';;',';',$style);
|
||||
if($style == ';') $style = '';
|
||||
$style .= ' border-style: solid; border-width:'.$border.'px;';
|
||||
}
|
||||
|
||||
$code = sprintf("<img %s style=\"%s\" />", implode(' ',$attr_output), $style);
|
||||
|
||||
if($link_url) {
|
||||
if($open_window =='Y') $code = sprintf('<a href="%s" onclick="window.open(this.href);return false;">%s</a>', $link_url, $code);
|
||||
else $code = sprintf('<a href="%s" >%s</a>', $link_url, $code);
|
||||
}
|
||||
return $code;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component version="0.2">
|
||||
<title xml:lang="ko">이미지 추가</title>
|
||||
<title xml:lang="jp">イメージ追加</title>
|
||||
<title xml:lang="zh-CN">插入图像</title>
|
||||
<title xml:lang="en">Add Images</title>
|
||||
<title xml:lang="es">Añadir imágenes</title>
|
||||
<title xml:lang="ru">Добавление изображений</title>
|
||||
<title xml:lang="zh-TW">圖片連結</title>
|
||||
<description xml:lang="ko">에디터에 이미지를 추가하거나 속성을 변경할 수 있습니다.</description>
|
||||
<description xml:lang="jp">エディターでイメージの追加、属性の変更が出来ます。</description>
|
||||
<description xml:lang="zh-CN">可以插入图像或编辑其相应属性。</description>
|
||||
<description xml:lang="en">It can add an image to editor or change the attribution of image.</description>
|
||||
<description xml:lang="es">Se puede añadir una imagen a editor o cambiar la atribución de la imagen.</description>
|
||||
<description xml:lang="ru">Это может добавить изображение в редактор или изменить параметры изображения.</description>
|
||||
<description xml:lang="zh-TW">可以新增或編輯其相關屬性。</description>
|
||||
<version>0.1</version>
|
||||
<date>2007-02-28</date>
|
||||
|
||||
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<name xml:lang="jp">zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<name xml:lang="es">zero</name>
|
||||
<name xml:lang="ru">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
</component>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/image_link/lang/en.lang.php
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @brief editor Module > language pack of image_link component
|
||||
**/
|
||||
|
||||
$lang->image_url = "Image Path";
|
||||
$lang->image_alt = "Input Description";
|
||||
$lang->image_scale = "Image Size";
|
||||
$lang->image_align = "Align Style";
|
||||
$lang->image_align_normal = "Occupy a Paragraph";
|
||||
$lang->image_align_left = "Left of Article";
|
||||
$lang->image_align_middle = "Center";
|
||||
$lang->image_align_right = "Right of Article";
|
||||
$lang->image_border = "Border Thickness";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->image_margin = 'Image Margin';
|
||||
|
||||
$lang->about_url_link_open_window = "Make the link to open as a new window";
|
||||
$lang->cmd_get_scale = "Get Image Size";
|
||||
?>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/image_link/lang/en.lang.php
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @brief editor Module > language pack of image_link component
|
||||
**/
|
||||
|
||||
$lang->image_url = "Ruta de la imagen";
|
||||
$lang->image_alt = "Descripcion de Entrada";
|
||||
$lang->image_scale = "Tamano de la Imagen";
|
||||
$lang->image_align = "Alinear Estilo";
|
||||
$lang->image_align_normal = "Occupy un parrafo";
|
||||
$lang->image_align_left = "Izquierda del articulo";
|
||||
$lang->image_align_middle = "Centro";
|
||||
$lang->image_align_right = "Derecho de articulo";
|
||||
$lang->image_border = "Grosor de Fronteras";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->image_margin = 'Image Margin';
|
||||
|
||||
$lang->about_url_link_open_window = "Hacer el vinculo para abrir una nueva ventana";
|
||||
$lang->cmd_get_scale = "Obtener tamano de la imagen";
|
||||
?>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/image_link/lang/jp.lang.php
|
||||
* @author zero <zero@nzeo.com> 翻訳:RisaPapa、ミニミ
|
||||
* @brief ウィジウィグエディター(editor)モジュール > イメージリンク(image_link)コンポネント言語パッケージ
|
||||
**/
|
||||
|
||||
$lang->image_url = "イメージパス";
|
||||
$lang->image_alt = "説明(Alt)入力";
|
||||
$lang->image_scale = "イメージサイズ";
|
||||
$lang->image_align = "アライン位置";
|
||||
$lang->image_align_normal = "一段落";
|
||||
$lang->image_align_left = "左揃え";
|
||||
$lang->image_align_middle = "中央揃え";
|
||||
$lang->image_align_right = "右揃え";
|
||||
$lang->image_border = "ボーダー";
|
||||
$lang->image_margin = '外側の空白(Margin)';
|
||||
|
||||
$lang->urllink_open_window = "新しいウィンドウで開く";
|
||||
$lang->about_url_link_open_window = "チェックすると、リンクをクリックする際、新しいウィンドウで開きます。";
|
||||
|
||||
$lang->cmd_get_scale = "イメージサイズを計算";
|
||||
?>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/image_link/lang/ko.lang.php
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @brief 위지윅에디터(editor) 모듈 > 이미지링크(image_link) 컴포넌트의 언어팩
|
||||
**/
|
||||
|
||||
$lang->image_url = '이미지 경로';
|
||||
$lang->image_alt = '설명 입력';
|
||||
$lang->image_scale = '이미지크기';
|
||||
$lang->image_align = '정렬 방법';
|
||||
$lang->image_align_normal = '한 문단을 차지';
|
||||
$lang->image_align_left = '글의 왼쪽으로';
|
||||
$lang->image_align_middle = '가운데';
|
||||
$lang->image_align_right = '글의 우측으로';
|
||||
$lang->image_border = '경계선 두께';
|
||||
$lang->image_margin = '바깥 여백';
|
||||
|
||||
$lang->urllink_open_window = '새창열기';
|
||||
$lang->about_url_link_open_window = '선택하시면 링크 선택시 새창으로 열립니다';
|
||||
|
||||
$lang->cmd_get_scale = '크기 구하기';
|
||||
?>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/image_link/lang/ru.lang.php
|
||||
* @author zero <zero@nzeo.com> | translation by Maslennikov Evgeny aka X-[Vr]bL1s5 | e-mail: x-bliss[a]tut.by; ICQ: 225035467;
|
||||
* @brief editor Module > language pack of image_link component
|
||||
**/
|
||||
|
||||
$lang->image_url = "Путь изображения";
|
||||
$lang->image_alt = "Введите описание";
|
||||
$lang->image_scale = "Размер изображения";
|
||||
$lang->image_align = "Стиль выравнивания";
|
||||
$lang->image_align_normal = "Занять параграф";
|
||||
$lang->image_align_left = "Лево";
|
||||
$lang->image_align_middle = "Центр";
|
||||
$lang->image_align_right = "Право";
|
||||
$lang->image_border = "Толщина рамки";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->image_margin = 'Image Margin';
|
||||
|
||||
$lang->about_url_link_open_window = "Создайте ссылку для открытия в новом окне";
|
||||
$lang->cmd_get_scale = "Получить размер изображения";
|
||||
?>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/image_link/lang/zh-CN.lang.php
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @brief 网页编辑器(editor) 模块 > 图像链接(image_link) 组件的语言包
|
||||
**/
|
||||
|
||||
$lang->image_url = "图像路径";
|
||||
$lang->image_alt = "图像说明";
|
||||
$lang->image_scale = "图像大小";
|
||||
$lang->image_align = "对齐方式";
|
||||
$lang->image_align_normal = "占一个段落";
|
||||
$lang->image_align_left = "内容左侧";
|
||||
$lang->image_align_middle = "居中";
|
||||
$lang->image_align_right = "内容右侧";
|
||||
$lang->image_border = "边框粗细";
|
||||
$lang->image_margin = '外边距';
|
||||
|
||||
$lang->urllink_open_window = '新窗口打开';
|
||||
$lang->about_url_link_open_window = "将在新窗口中打开链接。";
|
||||
|
||||
$lang->cmd_get_scale = "获得图片大小";
|
||||
?>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/image_link/lang/zh-TW.lang.php
|
||||
* @author zero <zero@nzeo.com> 翻譯:royallin
|
||||
* @brief 網頁編輯器(editor)模組 > 圖片連結(image_link)組件語言
|
||||
**/
|
||||
|
||||
$lang->image_url = "圖片路徑";
|
||||
$lang->image_alt = "圖片說明";
|
||||
$lang->image_scale = "圖片大小";
|
||||
$lang->image_align = "對齊方式";
|
||||
$lang->image_align_normal = "段落";
|
||||
$lang->image_align_left = "靠左";
|
||||
$lang->image_align_middle = "置中";
|
||||
$lang->image_align_right = "靠右";
|
||||
$lang->image_border = "邊框粗細";
|
||||
$lang->urllink_url = "網址";
|
||||
$lang->image_margin = '圖片邊距';
|
||||
|
||||
$lang->about_url_link_open_window = "開啟連結於新視窗。";
|
||||
$lang->cmd_get_scale = "取得圖片大小";
|
||||
?>
|
||||
|
Before Width: | Height: | Size: 359 B |
|
Before Width: | Height: | Size: 382 B |
|
Before Width: | Height: | Size: 379 B |
|
Before Width: | Height: | Size: 368 B |
|
|
@ -1,10 +0,0 @@
|
|||
@charset "utf-8";
|
||||
@import url(../../../../../modules/admin/tpl/css/admin.css);
|
||||
|
||||
.image_align {
|
||||
margin:0px 0px 5px 0px;
|
||||
float:left;
|
||||
width:200px;
|
||||
}
|
||||
|
||||
li {list-style:none; float:left; margin-right:.5em;}
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
<!--%import("popup.js")-->
|
||||
<!--%import("popup.css")-->
|
||||
<!--%import("../lang")-->
|
||||
|
||||
<div id="popHeader">
|
||||
<h3 class="xeAdmin">{$component_info->title} ver. {$component_info->version}</h3>
|
||||
</div>
|
||||
|
||||
<form action="./" method="get" onSubmit="return false" id="fo">
|
||||
|
||||
<div id="popBody">
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<col width="100" />
|
||||
<col />
|
||||
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->image_url}</div></th>
|
||||
<td><input type="text" id="image_url" value="{url_decode($manual_url)}" onblur="getImageScale();" class="inputTypeText w400" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->image_scale}</div></th>
|
||||
<td>
|
||||
<ul>
|
||||
<li><input type="text" id="width" value="0" size="4" class="inputTypeText" onblur="setScale('width');return false;" />px </li>
|
||||
<li><input type="text" id="height" value="0" size="4" class="inputTypeText" onblur="setScale('height');return false;" />px </li>
|
||||
<li><a href="#" onclick="getImageScale(); return false;" class="button"><span>{$lang->cmd_get_scale}</span></a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>URL</div></th>
|
||||
<td><input type="text" id="link_url" value="" class="inputTypeText w400"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->urllink_open_window}</div></th>
|
||||
<td><input type="checkbox" id="open_window" value="Y" /> {$lang->about_url_link_open_window}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->image_alt}</div></th>
|
||||
<td><input type="text" id="image_alt" value="" class="inputTypeText w400"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->image_align}</div></th>
|
||||
<td>
|
||||
<div class="image_align">
|
||||
<input type="radio" name="align" value="" id="align_normal" checked="checked"/>
|
||||
<label for="align_normal">
|
||||
<img src="./images/align_normal.gif" alt="{$lang->image_align_normal}" />
|
||||
{$lang->image_align_normal}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="image_align">
|
||||
<input type="radio" name="align" value="left" id="align_left" />
|
||||
<label for="align_left">
|
||||
<img src="./images/align_left.gif" alt="{$lang->image_align_left}" />
|
||||
{$lang->image_align_left}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="image_align">
|
||||
<input type="radio" name="align" value="middle" id="align_middle" />
|
||||
<label for="align_middle">
|
||||
<img src="./images/align_middle.gif" alt="{$lang->image_align_middle}" />
|
||||
{$lang->image_align_middle}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="image_align">
|
||||
<input type="radio" name="align" value="right" id="align_right" />
|
||||
<label for="align_right">
|
||||
<img src="./images/align_right.gif" alt="{$lang->image_align_right}" />
|
||||
{$lang->image_align_right}
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->image_border}</div></th>
|
||||
<td><input type="text" id="image_border" value="0" size="2" class="inputTypeText" />px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->image_margin}</div></th>
|
||||
<td><input type="text" id="image_margin" value="0" size="2" class="inputTypeText" />px</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="popFooter" class="tCenter">
|
||||
<a href="#" onclick="insertImage()" class="button black strong"><span>{$lang->cmd_insert}</span></a>
|
||||
<a href="#" onclick="winopen('./?module=editor&act=dispEditorComponentInfo&component_name={$component_info->component_name}','ComponentInfo','left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;" class="button"><span>{$lang->about_component}</span></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
|
@ -1,156 +0,0 @@
|
|||
/**
|
||||
* popup으로 열렸을 경우 부모창의 위지윅에디터에 select된 이미지가 있는지 체크하여
|
||||
* 있으면 가져와서 원하는 곳에 삽입
|
||||
**/
|
||||
|
||||
var orig_width = 0;
|
||||
var orig_height = 0;
|
||||
function getImage() {
|
||||
// 부모 위지윅 에디터에서 선택된 영역이 있는지 확인
|
||||
if(typeof(opener)=="undefined") return;
|
||||
|
||||
// url이 미리 입력되어 있을 경우 scale구해줌
|
||||
if(xGetElementById("image_url").value) {
|
||||
getImageScale();
|
||||
return;
|
||||
}
|
||||
|
||||
// 부모 위지윅 에디터에서 선택된 영역이 있으면 처리
|
||||
var node = opener.editorPrevNode;
|
||||
if(!node || node.nodeName != "IMG") {
|
||||
return;
|
||||
}
|
||||
var src = node.getAttribute("src");
|
||||
var border = node.style.borderWidth ?
|
||||
node.style.borderWidth.match("[0-9]+") : node.getAttribute("border");
|
||||
var align = node.style.cssFloat ?
|
||||
node.style.cssFloat : node.style.styleFloat;
|
||||
if(!align) align = node.style.verticalAlign?
|
||||
node.style.verticalAlign : node.getAttribute("align");
|
||||
var margin = node.style.margin ?
|
||||
node.style.margin.match("[0-9]+") : node.getAttribute("margin");
|
||||
var alt = node.getAttribute("alt");
|
||||
var width = xWidth(node);
|
||||
var height = xHeight(node);
|
||||
orig_width = width;
|
||||
orig_height = height;
|
||||
var link_url = node.getAttribute("link_url");
|
||||
var open_window = node.getAttribute("open_window");
|
||||
|
||||
xGetElementById("image_url").value = src;
|
||||
xGetElementById("image_alt").value = alt;
|
||||
|
||||
if(link_url) {
|
||||
link_url = link_url.replace(/<([^>]*)>/ig,'').replace(/</ig,'<').replace(/>/ig,'>').replace(/&/ig,'&');
|
||||
xGetElementById('link_url').value = link_url;
|
||||
}
|
||||
if(open_window == 'Y') xGetElementById('open_window').checked = "true";
|
||||
|
||||
switch(align) {
|
||||
case 'left' : xGetElementById("align_left").checked = true; break;
|
||||
case 'middle' : xGetElementById("align_middle").checked = true; break;
|
||||
case 'right' : xGetElementById("align_right").checked = true; break;
|
||||
default : xGetElementById("align_normal").checked = true; break;
|
||||
}
|
||||
|
||||
if(margin) {
|
||||
xGetElementById('image_margin').value = margin;
|
||||
}
|
||||
|
||||
if(border) {
|
||||
xGetElementById("image_border").value = border;
|
||||
}
|
||||
|
||||
xGetElementById("width").value = width;
|
||||
xGetElementById("height").value = height;
|
||||
|
||||
}
|
||||
|
||||
function getImageScale() {
|
||||
var url = xGetElementById("image_url").value;
|
||||
if(!url) return;
|
||||
|
||||
var img = new Image();
|
||||
img.src = url;
|
||||
|
||||
xGetElementById("width").value = img.width;
|
||||
xGetElementById("height").value = img.height;
|
||||
|
||||
orig_width = img.width;
|
||||
orig_height = img.height;
|
||||
}
|
||||
function insertImage(obj) {
|
||||
if(typeof(opener)=="undefined") return;
|
||||
|
||||
var link_url = xGetElementById('link_url').value;
|
||||
if(link_url) link_url = link_url.replace(/&/ig,'&').replace(/</ig,'<').replace(/>/ig,'>');
|
||||
var open_window = 'N';
|
||||
if(xGetElementById('open_window').checked) open_window = 'Y';
|
||||
|
||||
var url = xGetElementById("image_url").value;
|
||||
var alt = xGetElementById("image_alt").value;
|
||||
var align = "";
|
||||
if(xGetElementById("align_normal").checked==true) align = "";
|
||||
else if(xGetElementById("align_left").checked==true) align = "float: left";
|
||||
else if(xGetElementById("align_middle").checked==true) align = "vertical-align: middle";
|
||||
else if(xGetElementById("align_right").checked==true) align = "float: right";
|
||||
var border = parseInt(xGetElementById("image_border").value,10);
|
||||
var margin = parseInt(xGetElementById("image_margin").value,10);
|
||||
|
||||
var width = xGetElementById("width").value;
|
||||
var height = xGetElementById("height").value;
|
||||
|
||||
if(!url) {
|
||||
window.close();
|
||||
return;
|
||||
}
|
||||
|
||||
url = url.replace(request_uri,'');
|
||||
var text = "<img editor_component=\"image_link\" src=\""+url+"\"";
|
||||
if(alt) text+= " alt=\""+alt+"\"";
|
||||
if(width) text+= " width=\""+width+"\"";
|
||||
if(height) text+= " height=\""+height+"\"";
|
||||
if(link_url) text+= " link_url=\""+link_url+"\"";
|
||||
if(open_window=='Y') text+= " open_window=\"Y\"";
|
||||
if(align || border || margin){
|
||||
text+= " style=\"";
|
||||
if(align) text+= align+"; ";
|
||||
if(border) text+= "border: solid "+border+"px; ";
|
||||
if(margin) text+= "margin: "+margin+"px; ";
|
||||
text+= "\" ";
|
||||
}
|
||||
if(border) text+= " border=\""+border+"\""
|
||||
if(margin) text+= " margin=\""+margin+"\""
|
||||
text+= " />";
|
||||
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
|
||||
var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)
|
||||
|
||||
opener.editorReplaceHTML(iframe_obj, text);
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
|
||||
window.close();
|
||||
}
|
||||
|
||||
xAddEventListener(window, "load", getImage);
|
||||
|
||||
function setScale(type) {
|
||||
switch(type) {
|
||||
case 'width' :
|
||||
if(!orig_height) return;
|
||||
var n_width = xGetElementById('width').value;
|
||||
var p = n_width/orig_width;
|
||||
var n_height = parseInt(orig_height * p,10);
|
||||
xGetElementById('height').value = n_height;
|
||||
break;
|
||||
case 'height' :
|
||||
if(!orig_width) return;
|
||||
var n_height = xGetElementById('height').value;
|
||||
var p = n_height/orig_height;
|
||||
var n_width = parseInt(orig_width * p,10);
|
||||
xGetElementById('width').value = n_width;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1,015 B |
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component version="0.2">
|
||||
<title xml:lang="ko">링크 생성</title>
|
||||
<title xml:lang="jp">リンク生成</title>
|
||||
<title xml:lang="zh-CN">链接</title>
|
||||
<title xml:lang="en">Create Link</title>
|
||||
<title xml:lang="es">Crear Link</title>
|
||||
<title xml:lang="ru">Создание ссылок</title>
|
||||
<title xml:lang="zh-TW">連結</title>
|
||||
<description xml:lang="ko">에디터에 링크를 추가하거나 링크의 속성을 변경할 수 있습니다.</description>
|
||||
<description xml:lang="jp">エディターでリンクの追加、属性の変更が出来ます。</description>
|
||||
<description xml:lang="zh-CN">插入链接或编辑链接属性。</description>
|
||||
<description xml:lang="en">It can add a link to editor or modify the attribution of link.</description>
|
||||
<description xml:lang="es">Puede añadir un enlace al editor o modificar la atribución de enlace.</description>
|
||||
<description xml:lang="ru">Это может добавить ссылку в редактор или изменить ее параметры.</description>
|
||||
<description xml:lang="zh-TW">插入連結或編輯連結屬性。</description>
|
||||
<version>0.1</version>
|
||||
<date>2007-02-28</date>
|
||||
|
||||
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<name xml:lang="jp">zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<name xml:lang="es">zero</name>
|
||||
<name xml:lang="ru">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
</component>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/urllink/lang/en.lang.php
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @brief editor module > language pack of url_link component
|
||||
**/
|
||||
|
||||
$lang->urllink_title = "Title";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->urllink_open_window = "Open New Window";
|
||||
$lang->urllink_bold = "Bold Text";
|
||||
|
||||
$lang->urllink_color = "Link Color";
|
||||
$lang->urllink_color_blue = "Blue";
|
||||
$lang->urllink_color_red = "Red";
|
||||
$lang->urllink_color_yellow = "Yellow";
|
||||
$lang->urllink_color_green = "Green";
|
||||
|
||||
$lang->about_url_link_open_window = "Make the link to open as a new window";
|
||||
$lang->about_url_link_bold = "Make the link text bold";
|
||||
?>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/urllink/lang/en.lang.php
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @brief editor module > language pack of url_link component
|
||||
**/
|
||||
|
||||
$lang->urllink_title = "Titulo";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->urllink_open_window = "Abrir Nueva Ventana";
|
||||
$lang->urllink_bold = "Texto en negrita";
|
||||
|
||||
$lang->urllink_color = "Color de los vinculos";
|
||||
$lang->urllink_color_blue = "Azul";
|
||||
$lang->urllink_color_red = "Rojo";
|
||||
$lang->urllink_color_yellow = "Amarillo";
|
||||
$lang->urllink_color_green = "Verde";
|
||||
|
||||
$lang->about_url_link_open_window = "Hacer el vinculo para abrir una nueva ventana";
|
||||
$lang->about_url_link_bold = "Hacer el link de texto en negrita";
|
||||
?>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/urllink/lang/jp.lang.php
|
||||
* @author zero <zero@nzeo.com> 翻訳:RisaPapa、ミニミ
|
||||
* @brief ウィジウィグエディターモジュール > urllink コンポネント言語パッケージ
|
||||
**/
|
||||
|
||||
$lang->urllink_title = "タイトル";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->urllink_open_window = "新しいウィンドウで開く";
|
||||
$lang->urllink_bold = "太字にする";
|
||||
|
||||
$lang->urllink_color = "リンクカラー ";
|
||||
$lang->urllink_color_blue = "青";
|
||||
$lang->urllink_color_red = "赤";
|
||||
$lang->urllink_color_yellow = "黄";
|
||||
$lang->urllink_color_green = "緑";
|
||||
|
||||
$lang->about_url_link_open_window = "チェックするとリンクをクリックした時に、新しいウィンドウで開きます。";
|
||||
$lang->about_url_link_bold = "チェックするとリンクの文字列が太字で表示されます。";
|
||||
?>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/urllink/lang/ko.lang.php
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @brief 위지윅에디터(editor) 모듈 > urllink 컴포넌트의 언어팩
|
||||
**/
|
||||
|
||||
$lang->urllink_title = "제목";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->urllink_open_window = "새창열기";
|
||||
$lang->urllink_bold = "글자 굵게";
|
||||
|
||||
$lang->urllink_color = "링크 색상 ";
|
||||
$lang->urllink_color_blue = "파란색";
|
||||
$lang->urllink_color_red = "붉은색";
|
||||
$lang->urllink_color_yellow = "노란색";
|
||||
$lang->urllink_color_green = "녹색";
|
||||
|
||||
$lang->about_url_link_open_window = "선택하시면 링크 선택시 새창으로 열립니다";
|
||||
$lang->about_url_link_bold = "선택하시면 링크의 글자가 굵게 표시됩니다";
|
||||
?>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/urllink/lang/ru.lang.php
|
||||
* @author zero <zero@nzeo.com> | translation by Maslennikov Evgeny aka X-[Vr]bL1s5 | e-mail: x-bliss[a]tut.by; ICQ: 225035467;
|
||||
* @brief editor module > language pack of url_link component
|
||||
**/
|
||||
|
||||
$lang->urllink_title = "Çàãîëîâîê";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->urllink_open_window = "Îòêðûòü íîâîå îêíî";
|
||||
$lang->urllink_bold = "Æèðíûé òåêñò";
|
||||
|
||||
$lang->urllink_color = "Öâåò ññûëêè";
|
||||
$lang->urllink_color_blue = "Ñèíèé";
|
||||
$lang->urllink_color_red = "Êðàñíûé";
|
||||
$lang->urllink_color_yellow = "Æåëòûé";
|
||||
$lang->urllink_color_green = "Çåëåíûé";
|
||||
|
||||
$lang->about_url_link_open_window = "Îòêðûâàåò ññûëêó â íîâîì îêíå";
|
||||
$lang->about_url_link_bold = "Äåëàåò òåêñò ññûëêè æèðíûì";
|
||||
?>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/urllink/lang/ko.lang.php
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @brief 网页编辑器(editor) 模块 > urllink组建语言包
|
||||
**/
|
||||
|
||||
$lang->urllink_title = "文本";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->urllink_open_window = "新窗口";
|
||||
$lang->urllink_bold = "粗体";
|
||||
|
||||
$lang->urllink_color = "链接颜色 ";
|
||||
$lang->urllink_color_blue = "蓝色";
|
||||
$lang->urllink_color_red = "红色";
|
||||
$lang->urllink_color_yellow = "黄色";
|
||||
$lang->urllink_color_green = "绿色";
|
||||
|
||||
$lang->about_url_link_open_window = "将在新窗口中打开链接。";
|
||||
$lang->about_url_link_bold = "用粗体显示文本。";
|
||||
?>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file /modules/editor/components/urllink/lang/zh-TW.lang.php
|
||||
* @author zero <zero@nzeo.com> 翻譯:royallin
|
||||
* @brief 網頁編輯器(editor) 模組 > urllink組件
|
||||
**/
|
||||
|
||||
$lang->urllink_title = "文字";
|
||||
$lang->urllink_url = "網址";
|
||||
$lang->urllink_open_window = "新視窗";
|
||||
$lang->urllink_bold = "粗體";
|
||||
|
||||
$lang->urllink_color = "連結顏色 ";
|
||||
$lang->urllink_color_blue = "藍色";
|
||||
$lang->urllink_color_red = "紅色";
|
||||
$lang->urllink_color_yellow = "黃色";
|
||||
$lang->urllink_color_green = "綠色";
|
||||
|
||||
$lang->about_url_link_open_window = "以新視窗開啟連結。";
|
||||
$lang->about_url_link_bold = "文字以粗體顯示。";
|
||||
?>
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
@charset "utf-8";
|
||||
@import url(../../../../../modules/admin/tpl/css/admin.css);
|
||||
|
||||
.link_color { float:left; margin-right:2em; }
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
<!--%import("popup.js")-->
|
||||
<!--%import("popup.css")-->
|
||||
<!--%import("../lang")-->
|
||||
|
||||
<div id="popHeader">
|
||||
<h3 class="xeAdmin">{$component_info->title} ver. {$component_info->version}</h3>
|
||||
</div>
|
||||
|
||||
<form action="./" method="get" id="fo_component" onSubmit="return false">
|
||||
|
||||
<div id="popBody">
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<col width="100" />
|
||||
<col />
|
||||
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->urllink_title}</div></th>
|
||||
<td><input type="text" name="text" class="inputTypeText w400" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->urllink_url}</div></th>
|
||||
<td><input type="text" name="url" class="inputTypeText w400" value="{$manual_url}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->urllink_open_window}</div></th>
|
||||
<td><input type="checkbox" name="open_window" value="Y" id="editor_open_window" /> <label for="editor_open_window">{$lang->about_url_link_open_window}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->urllink_bold}</div></th>
|
||||
<td><input type="checkbox" name="bold" value="Y" id="editor_bold" /> <label for="editor_bold">{$lang->about_url_link_bold}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->urllink_color}</div></th>
|
||||
<td>
|
||||
<div class="link_color">
|
||||
<input type="radio" name="color" value="none" id="color_none" />
|
||||
<label for="color_none">{$lang->not_exists}</label>
|
||||
</div>
|
||||
<div class="link_color">
|
||||
<input type="radio" name="color" value="blue" id="color_blue" />
|
||||
<label for="color_blue" class="editor_blue_text">{$lang->urllink_color_blue}</label>
|
||||
</div>
|
||||
<div class="link_color">
|
||||
<input type="radio" name="color" value="red" id="color_red" />
|
||||
<label for="color_red" class="editor_red_text">{$lang->urllink_color_red}</label>
|
||||
</div>
|
||||
<div class="link_color">
|
||||
<input type="radio" name="color" value="yellow" id="color_yellow" />
|
||||
<label for="color_yellow" class="editor_yellow_text">{$lang->urllink_color_yellow}</label>
|
||||
</div>
|
||||
<div class="link_color">
|
||||
<input type="radio" name="color" value="green" id="color_green" />
|
||||
<label for="color_green" class="editor_green_text">{$lang->urllink_color_green}</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="popFooter">
|
||||
<a href="#" onclick="setText()" class="button black strong"><span>{$lang->cmd_insert}</span></a>
|
||||
<a href="#" onclick="winopen('./?module=editor&act=dispEditorComponentInfo&component_name={$component_info->component_name}','ComponentInfo','left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;" class="button"><span>{$lang->about_component}</span></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
/**
|
||||
* popup으로 열렸을 경우 부모창의 위지윅에디터에 select된 block이 있는지 체크하여
|
||||
* 있으면 가져와서 원하는 곳에 삽입
|
||||
**/
|
||||
function getText() {
|
||||
var node = opener.editorPrevNode;
|
||||
if(!node) {
|
||||
var fo_obj = xGetElementById("fo_component");
|
||||
var text = opener.editorGetSelectedHtml(opener.editorPrevSrl);
|
||||
if(text==undefined) text = "";
|
||||
text = text.replace(/<([^>]*)>/ig,'').replace(/</ig,'<').replace(/>/ig,'>').replace(/&/ig,'&');
|
||||
fo_obj.text.value = text;
|
||||
return;
|
||||
}
|
||||
|
||||
if(node.nodeName == "A") {
|
||||
var url = node.getAttribute("HREF");
|
||||
var text = node.innerHTML.replace(/</ig,'<').replace(/>/ig,'>').replace(/&/ig,'&');
|
||||
|
||||
var open_window = false;
|
||||
var bold = false;
|
||||
var color = "";
|
||||
var className = node.className;
|
||||
|
||||
var selectedHtml = opener.editorGetSelectedHtml(opener.editorPrevSrl);
|
||||
if(selectedHtml.indexOf("window.open")>0) open_window = true;
|
||||
|
||||
if(className) {
|
||||
if(className.indexOf("bold")>-1) bold = true;
|
||||
|
||||
if(className.indexOf("blue")>0) color = "color_blue";
|
||||
else if(className.indexOf("red")>0) color = "color_red";
|
||||
else if(className.indexOf("yellow")>0) color = "color_yellow";
|
||||
else if(className.indexOf("green")>0) color = "color_green";
|
||||
}
|
||||
|
||||
var fo_obj = xGetElementById("fo_component");
|
||||
|
||||
fo_obj.text.value = text;
|
||||
fo_obj.url.value = url.replace('&','&');
|
||||
if(open_window) fo_obj.open_window.checked = true;
|
||||
if(bold) fo_obj.bold.checked = true;
|
||||
if(color) xGetElementById(color).checked = true;
|
||||
|
||||
return;
|
||||
} else if(node.nodeName == "IMG") {
|
||||
} else {
|
||||
var fo_obj = xGetElementById("fo_component");
|
||||
var text = opener.editorGetSelectedHtml(opener.editorPrevSrl);
|
||||
fo_obj.text.value = text.replace(/<([^>]*)>/ig,'').replace(/</ig,'<').replace(/>/ig,'>').replace(/&/ig,'&');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 부모창의 위지윅에디터에 데이터를 삽입
|
||||
**/
|
||||
function setText() {
|
||||
if(typeof(opener)=="undefined") return;
|
||||
|
||||
var fo_obj = xGetElementById("fo_component");
|
||||
|
||||
var text = fo_obj.text.value;
|
||||
text.replace(/&/ig,'&').replace(/</ig,'<').replace(/>/ig,'>');
|
||||
var url = fo_obj.url.value;
|
||||
url = url.replace(/&/ig,'&');
|
||||
var open_window = false;
|
||||
var bold = false;
|
||||
var link_class = "";
|
||||
var link = "";
|
||||
|
||||
if(!text) {
|
||||
window.close();
|
||||
return;
|
||||
}
|
||||
|
||||
if(url) {
|
||||
|
||||
if(fo_obj.open_window.checked) open_window = true;
|
||||
if(fo_obj.bold.checked) bold= true;
|
||||
if(xGetElementById("color_blue").checked) link_class = "editor_blue_text";
|
||||
else if(xGetElementById("color_red").checked) link_class = "editor_red_text";
|
||||
else if(xGetElementById("color_yellow").checked) link_class = "editor_yellow_text";
|
||||
else if(xGetElementById("color_green").checked) link_class = "editor_green_text";
|
||||
else link_class = "";
|
||||
|
||||
link = "<a href=\""+url+"\" ";
|
||||
if(open_window) link += "onclick=\"window.open(this.href);return false;\" ";
|
||||
|
||||
if(bold || link_class) {
|
||||
var class_name = "";
|
||||
if(bold) class_name = "bold";
|
||||
if(link_class) class_name += " "+link_class;
|
||||
link += " class=\""+class_name+"\" ";
|
||||
}
|
||||
|
||||
link += ">"+text+"</a>";
|
||||
} else {
|
||||
link = text;
|
||||
}
|
||||
|
||||
var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)
|
||||
opener.editorReplaceHTML(iframe_obj, link);
|
||||
|
||||
opener.focus();
|
||||
window.close();
|
||||
}
|
||||
|
||||
xAddEventListener(window, "load", getText);
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @class url_link
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 에디터에서 url링크하는 기능 제공.
|
||||
**/
|
||||
|
||||
class url_link extends EditorHandler {
|
||||
|
||||
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
|
||||
var $editor_sequence = 0;
|
||||
var $component_path = '';
|
||||
|
||||
/**
|
||||
* @brief editor_sequence과 컴포넌트의 경로를 받음
|
||||
**/
|
||||
function url_link($editor_sequence, $component_path) {
|
||||
$this->editor_sequence = $editor_sequence;
|
||||
$this->component_path = $component_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
|
||||
**/
|
||||
function getPopupContent() {
|
||||
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
||||
$tpl_path = $this->component_path.'tpl';
|
||||
$tpl_file = 'popup.html';
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||