mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 08:12:17 +09:00
XE Core 패키지를 위해서 별도로 분리할 모듈들을 모두 제거
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6696 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
42c050fb56
commit
245f6d2d07
1746 changed files with 0 additions and 61039 deletions
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
/**
|
||||
* @file autolink.addon.php
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 자동 링크 애드온
|
||||
**/
|
||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC") {
|
||||
Context::addJsFile('./addons/autolink/autolink.js');
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
|
||||
jQuery(function($) {
|
||||
var url_regx = /((http|https|ftp|news|telnet|irc):\/\/(([0-9a-z\-._~!$&'\(\)*+,;=:]|(%[0-9a-f]{2}))*\@)?((\[(((([0-9a-f]{1,4}:){6}([0-9a-f]{1,4}:[0-9a-f]{1,4})|(([0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])){3}[0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])))|(::([0-9a-f]{1,4}:){5}([0-9a-f]{1,4}:[0-9a-f]{1,4})|(([0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])){3}[0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])))|(([0-9a-f]{1,4})?::([0-9a-f]{1,4}:){4}([0-9a-f]{1,4}:[0-9a-f]{1,4})|(([0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])){3}[0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])))|((([0-9a-f]{1,4}:)?[0-9a-f]{1,4})?::([0-9a-f]{1,4}:){3}([0-9a-f]{1,4}:[0-9a-f]{1,4})|(([0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])){3}[0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])))|((([0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::([0-9a-f]{1,4}:){2}([0-9a-f]{1,4}:[0-9a-f]{1,4})|(([0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])){3}[0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])))|((([0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:([0-9a-f]{1,4}:[0-9a-f]{1,4})|(([0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])){3}[0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])))|((([0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::([0-9a-f]{1,4}:[0-9a-f]{1,4})|(([0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])){3}[0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])))|((([0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4})|((([0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::))|(v[0-9a-f]+.[0-9a-z\-._~!$&'\(\)*+,;=:]+))\])|(([0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5])){3}[0-9]|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5]))|(([0-9a-z\-._~!$&'\(\)*+,;=]|(%[0-9a-f]{2}))+))(:[0-9]*)?(\/([0-9a-z\-._~!$&'\(\)*+,;=:@]|(%[0-9a-f]{2}))*)*(\?([0-9a-z\-._~!$&'\(\)*+,;=:@\/\?]|(%[0-9a-f]{2}))*)?(#([0-9a-z\-._~!$&'\(\)*+,;=:@\/\?]|(%[0-9a-f]{2}))*)?)/i;
|
||||
|
||||
function replaceHrefLink(obj) {
|
||||
var obj_list = obj.childNodes;
|
||||
|
||||
for(var i = 0; i < obj_list.length; ++i) {
|
||||
var obj = obj_list[i];
|
||||
var pObj = obj.parentNode;
|
||||
if(!pObj) continue;
|
||||
|
||||
var pN = pObj.nodeName.toLowerCase();
|
||||
if($.inArray(pN, ['a', 'pre', 'xml', 'textarea', 'input', 'select', 'option', 'code', 'script', 'style']) != -1) continue;
|
||||
|
||||
if(obj.nodeType == 3 && obj.length >= 10) {
|
||||
var content = obj.nodeValue;
|
||||
if(!/(http|https|ftp|news|telnet|irc):\/\//i.test(content)) continue;
|
||||
|
||||
content = content.replace(/</g, '<');
|
||||
content = content.replace(/>/g, '>');
|
||||
content = content.replace(url_regx, '<a href="$1" onclick="window.open(this.href); return false;">$1</a>');
|
||||
|
||||
$(obj).replaceWith(content);
|
||||
delete(content);
|
||||
|
||||
} else if(obj.nodeType == 1 && obj.childNodes.length) {
|
||||
replaceHrefLink(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$('.xe_content').each(function() {
|
||||
replaceHrefLink(this);
|
||||
});
|
||||
});
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon version="0.2">
|
||||
<title xml:lang="ko">자동 링크 애드온</title>
|
||||
<title xml:lang="jp">自動リンクアドオン</title>
|
||||
<title xml:lang="en">Auto Link</title>
|
||||
<title xml:lang="zh-CN">自动链接插件</title>
|
||||
<title xml:lang="es">auto vínculo addon</title>
|
||||
<title xml:lang="ru">авто ссылка аддон</title>
|
||||
<title xml:lang="ge">Auto-Link Addon</title>
|
||||
<title xml:lang="zh-TW">自動連結</title>
|
||||
<description xml:lang="ko">
|
||||
글과 댓글의 내용 중 URL 문자열에 링크를 걸어주는 애드온입니다.
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
書き込み本文とコメントに登録された内容の中、httpで始まる一般文字列に自動にリンクを貼り付け、そのリンクにマウスオーバすると、別ウィンドウ、または同一ウィンドウに開くメニュが現れるアドオンです。
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This addon makes a link to a string that starts with http.
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
主题及评论中以http开始的字符串,自动转换为链接。并且鼠标移到链接上方时,将出现可选(新窗/本页面)提示框。
|
||||
</description>
|
||||
<description xml:lang="es">
|
||||
Los comentarios que comienzan con http naeyongjung tema común de la cadena para vincular automáticamente a colgar el puntero del ratón sobre cada uno de los vínculos y saechang Ciudad y aparecen en el menú de add-on de decoración.
|
||||
</description>
|
||||
<description xml:lang="ru">
|
||||
Комментарии, которые начинаются с http naeyongjung темой общей строки автоматически ссылку повесить мышь над каждой ссылке и saechang Сити и появляться на меню добавить-на украшения.
|
||||
</description>
|
||||
<description xml:lang="ge">
|
||||
Kommentare beginnen mit http naeyongjung Thema der gemeinsamen String automatisch Link zu hängen Sie mit der Maus über die einzelnen Links und saechang Stadt und auf dem Menü des Add-On Dekoration.
|
||||
</description>
|
||||
<description xml:lang="zh-TW">
|
||||
是種可將主題和評論內容中的URL網址字串自動轉換成連結的附加元件。
|
||||
</description>
|
||||
<version>0.1</version>
|
||||
<date>2008-04-22</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="en">zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="es">zero</name>
|
||||
<name xml:lang="ru">zero</name>
|
||||
<name xml:lang="ge">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
</addon>
|
||||
|
|
@ -1,166 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon version="0.2">
|
||||
<title xml:lang="ko">키워드 링크 애드온</title>
|
||||
<title xml:lang="en">Keyword Link Addon</title>
|
||||
<title xml:lang="zh-CN">关键字链接</title>
|
||||
<title xml:lang="zh-TW">關鍵字連結</title>
|
||||
<title xml:lang="jp">キーワードリンクアドオン</title>
|
||||
<description xml:lang="ko">
|
||||
게시글과 댓글의 내용중 등록된 키워드에 링크를 걸어주는 애드온입니다.
|
||||
키워드는 콤마(,)로 구분하여 여러개 등록할 수 있습니다.
|
||||
먼저 등록된 키워드가 우선순위를 갖습니다.
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
When this addon is enabled, add an hyperlink to the registered keyword
|
||||
appeared in contents of documents or comments.
|
||||
You may register multiple keywords seperated by comma(,).
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
此插件将自动给主题正文及评论中的关键字添加相应的预设链接。
|
||||
多个关键字可以用逗号(,)来区分输入。
|
||||
多个关键字的优先级以输入顺序为准。
|
||||
</description>
|
||||
<description xml:lang="zh-TW">
|
||||
將文章與評論中和關鍵字相對應的文字自動作連結。
|
||||
可用逗號(,)區隔多個關鍵字。
|
||||
關鍵字的優先順序以第一關鍵字為主。
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
本文とコメントの内容中、登録されたキーワードにリンクを貼りつける機能を行います。
|
||||
キーワードは半角コンマ(,)区切りで複数登録が出来ます。
|
||||
先に登録されたキーワードが優先度が高いです。
|
||||
</description>
|
||||
<version>0.1</version>
|
||||
<date>2008-12-20</date>
|
||||
<author email_address="sol@ngleader.com" link="http://ngleader.tistory.com">
|
||||
<name xml:lang="ko">SOL</name>
|
||||
<name xml:lang="jp">SOL</name>
|
||||
<name xml:lang="en">SOL</name>
|
||||
<name xml:lang="zh-CN">SOL</name>
|
||||
<name xml:lang="es">SOL</name>
|
||||
<name xml:lang="ru">SOL</name>
|
||||
<name xml:lang="ge">SOL</name>
|
||||
<name xml:lang="zh-TW">SOL</name>
|
||||
</author>
|
||||
<extra_vars>
|
||||
<var name="cssquery">
|
||||
<title xml:lang="ko">cssquery</title>
|
||||
<title xml:lang="zh-CN">cssquery</title>
|
||||
<title xml:lang="zh-TW">cssquery</title>
|
||||
<title xml:lang="jp">cssquery</title>
|
||||
<title xml:lang="en">cssquery</title>
|
||||
<description xml:lang="ko">치환할 부분의 jQuery cssquery입니다.
|
||||
xe_board 게시판 스킨이면 공백으로 두면 됩니다.</description>
|
||||
<description xml:lang="zh-TW">jQuery cssquery的部份可以置換。
|
||||
如果是使用xe_board討論板面板,請留白。</description>
|
||||
<description xml:lang="zh-CN">替换部分的jQuery cssquery。
|
||||
如果正使用的是官方默认皮肤(xe_board),此处留空即可。</description>
|
||||
<description xml:lang="jp">置換する部分のjQuery cssqueryです。
|
||||
「xe_board掲示板スキン」の場合は空白にして下さい。</description>
|
||||
<description xml:lang="en">jQuery cssquery for the part to be substituted.
|
||||
You may leave blank for xe_board skin.</description>
|
||||
</var>
|
||||
|
||||
<var name="reg_type" type="select">
|
||||
<title xml:lang="ko">링크 방법</title>
|
||||
<title xml:lang="zh-CN">链接方式</title>
|
||||
<title xml:lang="zh-TW">連結方式</title>
|
||||
<title xml:lang="jp">リンクの貼りつけ方</title>
|
||||
<title xml:lang="en">The way to make a link</title>
|
||||
<description xml:lang="ko"> 키워드가 여러개 있을때 "첫번째 키워드"에만 링크를 걸 것인지 "모든 키워드"에 걸 것인지 선택합니다.
|
||||
</description>
|
||||
<description xml:lang="zh-CN">有多个预设关键字时,在此可以指定链接方式。
|
||||
</description>
|
||||
<description xml:lang="zh-TW"> 키워드가 여러개 있을때 "첫번째 키워드"에만 링크를 걸 것인지 "모든 키워드"에 걸 것인지 선택합니다.
|
||||
</description>
|
||||
<description xml:lang="jp"> 複数のキーワードの場合、「最初のキーワード」のみ、もしくは「全てのキーワード」にリンクを貼りつけるかを設定します。
|
||||
</description>
|
||||
<description xml:lang="en">For the multiple keywords, choose if make a link to the first keyword, or all the keywords</description>
|
||||
<options value="">
|
||||
<title xml:lang="ko">첫번째 키워드</title>
|
||||
<title xml:lang="zh-CN">首个关键字</title>
|
||||
<title xml:lang="zh-TW">第一關鍵字</title>
|
||||
<title xml:lang="jp">最初のキーワード</title>
|
||||
<title xml:lang="en">First keyword</title>
|
||||
</options>
|
||||
<options value="g">
|
||||
<title xml:lang="ko">모든 키워드</title>
|
||||
<title xml:lang="zh-CN">所有关键字</title>
|
||||
<title xml:lang="zh-TW">所有關鍵字</title>
|
||||
<title xml:lang="jp">全てのキーワード</title>
|
||||
<title xml:lang="en">All keywords</title>
|
||||
</options>
|
||||
</var>
|
||||
|
||||
<var name="keyword01">
|
||||
<title xml:lang="ko">키워드</title>
|
||||
<title xml:lang="zh-CN">关键字</title>
|
||||
<title xml:lang="zh-TW">關鍵字</title>
|
||||
<title xml:lang="jp">キーワード</title>
|
||||
<title xml:lang="en">Keyword</title>
|
||||
</var>
|
||||
<var name="url01">
|
||||
<title xml:lang="ko">링크</title>
|
||||
<title xml:lang="zh-CN">链接</title>
|
||||
<title xml:lang="zh-TW">連結</title>
|
||||
<title xml:lang="jp">リンク</title>
|
||||
<title xml:lang="en">Link</title>
|
||||
</var>
|
||||
<var name="keyword02">
|
||||
<title xml:lang="ko">키워드</title>
|
||||
<title xml:lang="zh-CN">关键字</title>
|
||||
<title xml:lang="zh-TW">關鍵字</title>
|
||||
<title xml:lang="jp">キーワード</title>
|
||||
<title xml:lang="en">Keyword</title>
|
||||
</var>
|
||||
<var name="url02">
|
||||
<title xml:lang="ko">링크</title>
|
||||
<title xml:lang="zh-CN">链接</title>
|
||||
<title xml:lang="zh-TW">連結</title>
|
||||
<title xml:lang="jp">リンク</title>
|
||||
<title xml:lang="en">Link</title>
|
||||
</var>
|
||||
<var name="keyword03">
|
||||
<title xml:lang="ko">키워드</title>
|
||||
<title xml:lang="zh-CN">关键字</title>
|
||||
<title xml:lang="zh-TW">關鍵字</title>
|
||||
<title xml:lang="jp">キーワード</title>
|
||||
<title xml:lang="en">Keyword</title>
|
||||
</var>
|
||||
<var name="url03">
|
||||
<title xml:lang="ko">링크</title>
|
||||
<title xml:lang="zh-CN">链接</title>
|
||||
<title xml:lang="zh-TW">連結</title>
|
||||
<title xml:lang="jp">リンク</title>
|
||||
<title xml:lang="en">Link</title>
|
||||
</var>
|
||||
<var name="keyword04">
|
||||
<title xml:lang="ko">키워드</title>
|
||||
<title xml:lang="zh-CN">关键字</title>
|
||||
<title xml:lang="zh-TW">關鍵字</title>
|
||||
<title xml:lang="jp">キーワード</title>
|
||||
<title xml:lang="en">Keyword</title>
|
||||
</var>
|
||||
<var name="url04">
|
||||
<title xml:lang="ko">링크</title>
|
||||
<title xml:lang="zh-CN">链接</title>
|
||||
<title xml:lang="zh-TW">連結</title>
|
||||
<title xml:lang="jp">リンク</title>
|
||||
<title xml:lang="en">Link</title>
|
||||
</var>
|
||||
<var name="keyword05">
|
||||
<title xml:lang="ko">키워드</title>
|
||||
<title xml:lang="zh-CN">关键字</title>
|
||||
<title xml:lang="zh-TW">關鍵字</title>
|
||||
<title xml:lang="jp">キーワード</title>
|
||||
<title xml:lang="en">Keyword</title>
|
||||
</var>
|
||||
<var name="url05">
|
||||
<title xml:lang="ko">링크</title>
|
||||
<title xml:lang="zh-CN">链接</title>
|
||||
<title xml:lang="zh-TW">連結</title>
|
||||
<title xml:lang="jp">リンク</title>
|
||||
<title xml:lang="en">Link</title>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</addon>
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
/**
|
||||
* @file keyword_link.addon.php
|
||||
* @author sol (sol@ngleader.com)
|
||||
* @brief 키워드 링크 애드온
|
||||
**/
|
||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON" ) {
|
||||
$json = array();
|
||||
$arg = array();
|
||||
for($i=1;$i<=5;$i++){
|
||||
$arg = array();
|
||||
$ii = sprintf("%02d",$i);
|
||||
$keyword = $addon_info->{"keyword".$ii};
|
||||
$url = $addon_info->{"url".$ii};
|
||||
if($keyword && $url){
|
||||
$arg['url'] = $url;
|
||||
$keyword = explode(",",$keyword);
|
||||
for($j=0,$c=count($keyword);$j<$c;$j++){
|
||||
if(trim($keyword[$j]) == "") continue;
|
||||
$arg['keyword'] = trim($keyword[$j]);
|
||||
$json[] = $arg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(count($json) > 0){
|
||||
$addon_keyword_link = json_encode2($json);
|
||||
Context::addHtmlHeader("<script type=\"text/javascript\">//<![CDATA[\nvar addon_keyword_link={$addon_keyword_link};\nvar addon_keyword_link_cssquery='{$addon_info->cssquery}';\nvar addon_keyword_link_reg_type='{$addon_info->reg_type}';\n//]]></script>");
|
||||
Context::addJsFile('./addons/keyword_link/keyword_link.js');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
(function($){
|
||||
$(function(){
|
||||
if(addon_keyword_link.length > 0){
|
||||
if(!addon_keyword_link_cssquery) addon_keyword_link_cssquery= '.xe_content';
|
||||
$(addon_keyword_link_cssquery).each(function(){
|
||||
var content = $(this).html();
|
||||
for(var i=0,c=addon_keyword_link.length;i<c;i++){
|
||||
var re = new RegExp(addon_keyword_link[i].keyword + '(?! *<\/a)',addon_keyword_link_reg_type);
|
||||
content = content.replace(re,'<a href="'+addon_keyword_link[i].url+'">' + addon_keyword_link[i].keyword + '</a>');
|
||||
}
|
||||
$(this).html(content);
|
||||
});
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon version="0.2">
|
||||
<title xml:lang="ko">LemonPen XE 애드온</title>
|
||||
<title xml:lang="zh-CN">LemonPen XE插件</title>
|
||||
<title xml:lang="en">LemonPen XE Addon</title>
|
||||
<title xml:lang="ge">LemonPen XE Addon</title>
|
||||
<title xml:lang="es">LemonPen XE addon</title>
|
||||
<title xml:lang="ru">LemonPen XE Addon</title>
|
||||
<title xml:lang="jp">LemonPen XE アドオン</title>
|
||||
<title xml:lang="zh-TW">LemonPen XE</title>
|
||||
<description xml:lang="ko">활성화 하시면 레몬펜을 사이트에 달 수 있습니다.</description>
|
||||
<description xml:lang="zh-CN">要想在网站使用LemonPen插件,请将此插件激活。</description>
|
||||
<description xml:lang="ge">Sie können LemonPen auf der Website, wenn Sie diese aktivieren.</description>
|
||||
<description xml:lang="en">You can insert LemonPen to the site when you enable this.</description>
|
||||
<description xml:lang="es">Puede insertar LemonPen al sitio cuando este se activa.</description>
|
||||
<description xml:lang="ru">Вы можете вставить LemonPen к месту, когда вы позволили это.</description>
|
||||
<description xml:lang="jp">機能をオンにすると、サイト上でレモンペンを使います。 (LemonPen:Openmaru社のサービス)</description>
|
||||
<description xml:lang="zh-TW">想要在網站使用LemonPen,請將其啟用。</description>
|
||||
<version>0.1</version>
|
||||
<date>2007-12-10</date>
|
||||
|
||||
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<name xml:lang="ge">zero</name>
|
||||
<name xml:lang="es">zero</name>
|
||||
<name xml:lang="ru">zero</name>
|
||||
<name xml:lang="jp">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
|
||||
<extra_vars>
|
||||
<var name="sid">
|
||||
<title xml:lang="ko">sid</title>
|
||||
<title xml:lang="zh-CN">sid</title>
|
||||
<title xml:lang="en">sid</title>
|
||||
<title xml:lang="ge">sid</title>
|
||||
<title xml:lang="es">sid</title>
|
||||
<title xml:lang="ru">sid</title>
|
||||
<title xml:lang="jp">sid</title>
|
||||
<title xml:lang="zh-TW">sid</title>
|
||||
<description xml:lang="ko">레몬펜에서 사이트 등록시 발급받은 sid값을 입력해주세요.</description>
|
||||
<description xml:lang="zh-CN">请输入注册LemonPen网站时,发放的sid值。</description>
|
||||
<description xml:lang="en">Please input sid value that you got after registering at the LemonPen website.</description>
|
||||
<description xml:lang="ge">Bitte geben Sie Ihre SID-Wert ein, die Sie nach Registrierung auf der Website LemonPen.</description>
|
||||
<description xml:lang="es">Por favor, de entrada sid valor que había que hacer después de registrarse en el sitio web LemonPen.</description>
|
||||
<description xml:lang="ru">Введите замороженный ценности, которые вы получили после регистрации на сайте LemonPen.</description>
|
||||
<description xml:lang="jp">レモンペンのサイトから発行されたsid値を入力して下さい。 (LemonPen:Openmaru社のサービス)</description>
|
||||
<description xml:lang="zh-TW">請輸入在LemonPen網站註冊時,所給予的sid值。</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</addon>
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
/**
|
||||
* @file lemonpen.addon.php
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief LemonPen addon
|
||||
* 스프링노트의 레몬펜을 사이트에 설치하는 애드온입니다
|
||||
**/
|
||||
|
||||
if(Context::getResponseMethod()=="XMLRPC") return;
|
||||
|
||||
// 모듈의 실행 이후에 script를 추가함
|
||||
if(Context::get('module')!='admin' && $called_position == 'after_module_proc' ) {
|
||||
if($this->getLayoutFile() != 'popup_layout.html') {
|
||||
$sid = $addon_info->sid;
|
||||
if($sid) {
|
||||
Context::addHtmlFooter(sprintf('<script src="http://script.lemonpen.com/site/lemonpen.js?sid=%s" type="text/javascript" charset="UTF-8"></script>', $sid));
|
||||
$GLOBALS['__lemonpen_is_called__'] = true;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// XE의 문서와 permant link를 레몬펜의 규약에 맞춰서 출력
|
||||
if($GLOBALS['__lemonpen_is_called__'] && $called_position == 'before_display_content') {
|
||||
// 글 본문을 링크
|
||||
$output = preg_replace('/<div class="document_([0-9]+)_([0-9]+) xe_content">/is','<div class="document_$1_$2 xe_content hentry"><a href="'.getUrl('','document_srl',"$1").'" rel="bookmark" style="display:none;">'.getUrl('','document_srl',"$1").'</a>', $output);
|
||||
|
||||
// 댓글 본문을 링크
|
||||
$output = preg_replace('/<div class="comment_([0-9]+)_([0-9]+) xe_content">/is','<div class="comment_$1_$2 xe_content hentry"><a href="'.getUrl('','document_srl',"$1").'" rel="bookmark" style="display:none;">'.getUrl('','document_srl',"$1").'</a>', $output);
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon version="0.2">
|
||||
<title xml:lang="ko">플래닛 Bookmark 애드온</title>
|
||||
<title xml:lang="en">Planet Bookmark Add-Ons</title>
|
||||
<title xml:lang="es">Guardar planeta Add-Ons</title>
|
||||
<title xml:lang="zh-CN">微博收藏插件</title>
|
||||
<title xml:lang="zh-TW">微型部落格書籤</title>
|
||||
<title xml:lang="jp">プラネットブックマーク(Planet Bookmark)アドオン</title>
|
||||
<description xml:lang="ko">
|
||||
플래닛 Bookmark 애드온
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
Planet Bookmark Add-Ons
|
||||
</description>
|
||||
<description xml:lang="es">
|
||||
Guardar planeta Add-Ons
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
XE微博收藏插件。
|
||||
</description>
|
||||
<description xml:lang="zh-TW">
|
||||
微型部落格書籤功能
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
プラネットブックマーク(Planet Bookmark)アドオン
|
||||
</description>
|
||||
<version>0.1</version>
|
||||
<date>2008-10-31</date>
|
||||
|
||||
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<name xml:lang="es">zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<name xml:lang="jp">zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
</addon>
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
/**
|
||||
* @file planet_todo.addon.php
|
||||
* @author SOL군 (sol@ngleader.com)
|
||||
* @brief
|
||||
**/
|
||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") {
|
||||
$planet = Context::get('planet');
|
||||
if(!$planet || !$planet->isMyPlanet()) return;
|
||||
$oPlanetModel = &getModel('planet');
|
||||
$countBookmark = $oPlanetModel->getTagSearchResultCount($planet->getModuleSrl(),'bookmark');
|
||||
Context::addHtmlHeader("<script type=\"text/javascript\">//<![CDATA[\nvar planet_bookmark_count=".( (int)$countBookmark).";\n//]]></script>");
|
||||
Context::addJsFile('./addons/planet_bookmark/planet_bookmark.js');
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,96 +0,0 @@
|
|||
function planetBookmarkTab(){
|
||||
if($('planet_tab')) $('planet_tab').innerHTML += '<ul id="planetBookmarkTab" class="exTab"><li><a href="#planet_tab" onclick="planetShowBookmarkList(this);">Bookmark<sup><span id="planet_bookmark_count">'+ planet_bookmark_count + '</span></a></li></ul>';
|
||||
}
|
||||
xAddEventListener(window,'load',planetBookmarkTab);
|
||||
|
||||
function planetShowBookmarkList(o){
|
||||
$ElementList('#planetBookmarkTab li').removeClass('active');
|
||||
$Element(o).parent().addClass('active');
|
||||
$ElementList('#planet_myTab li').removeClass('active');
|
||||
planetBookmarkReload();
|
||||
}
|
||||
|
||||
function planetBookmarkReload(){
|
||||
$('commentList').innerHTML = '<div class="commentHeader"><h3 class="exTitle">Bookmark</h3><span class="button strong black todoWrite"><button type="button" onclick="showWritePostBookmark()">Bookmark</button></span></div>\n<div id="bookmarkList" class="commentBody todoManager"></div>\n<div id="bookmarkList_page" class="pagination a1"></div>\n\n<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>\n';
|
||||
planetGetBookmark(0);
|
||||
}
|
||||
|
||||
function planetGetBookmark(page){
|
||||
$('bookmarkList').innerHTML ='';
|
||||
var response_tags = new Array('error','message','contentList','pageNavigation');
|
||||
exec_xml('planet','dispPlanetContentTagSearch',{keyword:'bookmark',page:page,mid:current_mid},completeGetBookmark,response_tags);
|
||||
}
|
||||
|
||||
function completeGetBookmark(ret_obj,response_tags, params, fo_obj) {
|
||||
if(ret_obj['error'] == 0 && ret_obj.contentList){
|
||||
var o = new Array();
|
||||
var it = new Array();
|
||||
var items = ret_obj['contentList']['item'];
|
||||
|
||||
if(typeof(items[0]) == 'undefined') {
|
||||
it[0] = items;
|
||||
} else {
|
||||
it = items;
|
||||
}
|
||||
|
||||
o.push('<ul>');
|
||||
for(var i=0,c=it.length;i<c;i++){
|
||||
var tag = $A();
|
||||
if(typeof(it[i]['tag_list']['item'])=='string'){
|
||||
tag.push(it[i]['tag_list']['item']);
|
||||
}else{
|
||||
tag = $A(it[i]['tag_list']['item']);
|
||||
}
|
||||
|
||||
tag = tag.filter(function(v){return !/bookmark/i.test(v);});
|
||||
tag = tag.$value().join(',');
|
||||
|
||||
o.push('<li>');
|
||||
o.push(it[i]['content']);
|
||||
if(tag) {
|
||||
o.push('<div class="tag">');
|
||||
o.push('<img src="'+request_uri+'addons/planet_bookmark/tag.gif" title="tag" />');
|
||||
o.push(tag);
|
||||
o.push('</div>');
|
||||
}
|
||||
o.push("</li>\n");
|
||||
}
|
||||
|
||||
o.push('</ul>');
|
||||
o.push('<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>');
|
||||
|
||||
$('bookmarkList').innerHTML = o.join('');
|
||||
|
||||
var pageNavigation = ret_obj['pageNavigation'];
|
||||
$('planet_bookmark_count').innerHTML = pageNavigation.total_count ? pageNavigation.total_count : 0;
|
||||
|
||||
if(pageNavigation.total_page > 1){
|
||||
|
||||
var str = "";
|
||||
if(pageNavigation.first_page>1) str += '<a class="prev" href="#planet_tab" onclick="planetGetBookmark('+(pageNavigation.first_page-1)+');">Prev</a>';
|
||||
|
||||
for(var i=pageNavigation.first_page;i<=pageNavigation.page_count;i++){
|
||||
if(i== pageNavigation.cur_page){
|
||||
str += "<strong>"+i+"</strong>";
|
||||
}else{
|
||||
str += '<a href="#planet_tab" onclick="planetGetBookmark('+i+');">'+ i +'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
if(pageNavigation.total_page != pageNavigation.last_page) str += '<a class="next" href="#planet_tab" onclick="planetGetBookmark('+(pageNavigation.last_page+1)+');">next</a>';
|
||||
$('bookmarkList_page').innerHTML = str;
|
||||
}
|
||||
window.location.href="#planet_tab";
|
||||
}else{
|
||||
$('planet_bookmark_count').innerHTML = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function showWritePostBookmark(tag){
|
||||
tag = tag||'bookmark';
|
||||
$Element($('writePostForm').about_tag).hide();
|
||||
$Element($('writePostForm').content_tag).show();
|
||||
$('writePostForm').content_tag.value = tag;
|
||||
window.document.location.href="#writePost";
|
||||
showWritePost();
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 205 B |
|
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon version="0.2">
|
||||
<title xml:lang="ko">플래닛 TODO 애드온</title>
|
||||
<title xml:lang="en">Planet TODO</title>
|
||||
<title xml:lang="zh-CN">微博TODO插件</title>
|
||||
<title xml:lang="zh-TW">微型部落格 TODO 功能</title>
|
||||
<title xml:lang="jp">プラネット(Planet)TODOアドオン</title>
|
||||
<description xml:lang="ko">
|
||||
플래닛 TODO 애드온
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This is Planet TODO addon.
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
XE微博TODO插件。
|
||||
</description>
|
||||
<description xml:lang="zh-TW">
|
||||
微型部落格 TODO 功能
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
プラネット(Planet)TODOアドオン
|
||||
</description>
|
||||
<version>0.1</version>
|
||||
<date>2008-10-31</date>
|
||||
|
||||
<author email_address="sol@ngleader.com" link="http://ngleader.com">
|
||||
<name xml:lang="ko">SOL군</name>
|
||||
<name xml:lang="jp">SOLgun</name>
|
||||
<name xml:lang="en">SOLgun</name>
|
||||
<name xml:lang="zh-CN">SOLgun</name>
|
||||
<name xml:lang="zh-TW">SOLgun</name>
|
||||
</author>
|
||||
</addon>
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
/**
|
||||
* @file planet_todo.addon.php
|
||||
* @author SOL군 (sol@ngleader.com)
|
||||
* @brief
|
||||
**/
|
||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") {
|
||||
$planet = Context::get('planet');
|
||||
if(!$planet || !$planet->isMyPlanet()) return;
|
||||
|
||||
$oPlanetModel = &getModel('planet');
|
||||
$countTodo = $oPlanetModel->getTagSearchResultCount($planet->getModuleSrl(),'todo');
|
||||
$countDone = $oPlanetModel->getTagSearchResultCount($planet->getModuleSrl(),'done');
|
||||
|
||||
Context::addHtmlHeader("<script type=\"text/javascript\">//<![CDATA[\nvar planet_todo_count={todo:".$countTodo.",done:".$countDone."};\n//]]></script>");
|
||||
Context::addJsFile('./addons/planet_todo/planet_todo.js');
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,218 +0,0 @@
|
|||
function planetTab(){
|
||||
planet_todo_count.todo = planet_todo_count.todo ? planet_todo_count.todo:0;
|
||||
planet_todo_count.done = planet_todo_count.done ? planet_todo_count.done:0;
|
||||
if($('planet_tab')) $('planet_tab').innerHTML += '<ul id="planetex_Tab" class="exTab"><li><a href="#planet_tab" onclick="planet_showTodoList(this);">ToDo<sup><span id="planet_todo_count">'+ planet_todo_count.todo + '</span>/<span id="planet_done_count">' + planet_todo_count.done + '</span></sup></a></li></ul>';
|
||||
}
|
||||
xAddEventListener(window,'load',planetTab);
|
||||
|
||||
function planetTabOff(){
|
||||
$Element('planetex_Tab').leave();
|
||||
}
|
||||
|
||||
function planet_showTodoList(o){
|
||||
$ElementList('#planetex_Tab li').removeClass('active');
|
||||
$Element(o).parent().addClass('active');
|
||||
$ElementList('#planet_myTab li').removeClass('active');
|
||||
|
||||
planet_reload_todo();
|
||||
}
|
||||
|
||||
function planet_reload_todo(){
|
||||
$('commentList').innerHTML = '<div class="commentHeader"><h3 class="exTitle">TODO</h3><span class="button strong black todoWrite"><button type="button" onclick="showWritePostTodo()">TODO Post</button></span></div>\n<div id="todoList" class="commentBody todoManager"></div>\n<div id="todoList_page" class="pagination a1"></div>\n<div class="commentHeader"><h3 class="exTitle">DONE</h3></div>\n<div id="doneList" class="commentBody todoManager"></div>\n<div id="doneList_page" class="pagination a1"></div>\n<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>\n';
|
||||
planet_getTodo(1);
|
||||
planet_getDone(1);
|
||||
}
|
||||
|
||||
function planet_getTodo(page){
|
||||
$('todoList').innerHTML ='';
|
||||
_getPlanetTagSeachResult('todo',page,result_planet_getTodo);
|
||||
}
|
||||
|
||||
function planet_getDone(page){
|
||||
$('doneList').innerHTML ='';
|
||||
_getPlanetTagSeachResult('done',page,result_planet_getDone);
|
||||
}
|
||||
|
||||
function _getPlanetTagSeachResult(tag,page,func){
|
||||
var response_tags = new Array('error','message','contentList','pageNavigation');
|
||||
exec_xml('planet','dispPlanetContentTagSearch',{keyword:tag,page:page,mid:current_mid},func,response_tags);
|
||||
}
|
||||
|
||||
function result_planet_getTodo(ret_obj,response_tags, params, fo_obj) {
|
||||
|
||||
if(ret_obj['error'] == 0 && ret_obj.contentList){
|
||||
var o = new Array();
|
||||
var it = new Array();
|
||||
var items = ret_obj['contentList']['item'];
|
||||
|
||||
if(typeof(items[0]) == 'undefined'){
|
||||
it[0] = items;
|
||||
}else{
|
||||
it = items;
|
||||
}
|
||||
|
||||
o.push('<ul>');
|
||||
for(var i=0,c=it.length;i<c;i++){
|
||||
|
||||
it[i]['regdate'] += '';
|
||||
it[i]['regdate'] = it[i]['regdate'].substr(0,4) + '/' + it[i]['regdate'].substr(4,2) + '/' + it[i]['regdate'].substr(6,2);
|
||||
|
||||
var tag = $A();
|
||||
if(typeof(it[i]['tag_list']['item'])=='string'){
|
||||
tag.push(it[i]['tag_list']['item']);
|
||||
}else{
|
||||
tag = $A(it[i]['tag_list']['item']);
|
||||
}
|
||||
|
||||
tag = tag.filter(function(v){return !/todo/i.test(v);});
|
||||
tag.push('done');
|
||||
tag = tag.$value().join(',');
|
||||
|
||||
o.push('<input type="hidden" id="tag:'+it[i]['document_srl']+'" value="'+tag+'" /><li>');
|
||||
o.push(it[i]['content']);
|
||||
o.push('<span class="button small"><img src="./common/tpl/images/iconCheckGreen.gif" alt="" class="icon" /><button type="button" id="document_srl:'+it[i]['document_srl']+'" onclick="planet_todo_setDone(this)">DONE</button></span>');
|
||||
o.push('<span class="time">');
|
||||
o.push(it[i]['regdate']);
|
||||
o.push('</span>');
|
||||
o.push("</li>\n");
|
||||
}
|
||||
|
||||
o.push('</ul>');
|
||||
o.push('<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>');
|
||||
|
||||
$('todoList').innerHTML = o.join('');
|
||||
|
||||
|
||||
var pageNavigation = ret_obj['pageNavigation'];
|
||||
$('planet_todo_count').innerHTML = pageNavigation.total_count ? pageNavigation.total_count : 0;
|
||||
|
||||
if(pageNavigation.total_page > 1){
|
||||
|
||||
var str = "";
|
||||
if(pageNavigation.first_page>1) str += '<a class="prev" href="#planet_tab" onclick="planet_getDone('+(pageNavigation.first_page-1)+');">Prev</a>';
|
||||
|
||||
for(var i=pageNavigation.first_page;i<=pageNavigation.page_count;i++){
|
||||
if(i== pageNavigation.cur_page){
|
||||
str += "<strong>"+i+"</strong>";
|
||||
}else{
|
||||
str += '<a href="#planet_tab" onclick="planet_getDone('+i+');">'+ i +'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
if(pageNavigation.total_page != pageNavigation.last_page) str += '<a class="next" href="#planet_tab" onclick="planet_getDone('+(pageNavigation.last_page+1)+');">next</a>';
|
||||
$('todoList_page').innerHTML = str;
|
||||
}
|
||||
window.location.href="#planet_tab";
|
||||
}else{
|
||||
$('planet_todo_count').innerHTML = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function result_planet_getDone(ret_obj,response_tags, params, fo_obj) {
|
||||
|
||||
if(ret_obj['error'] == 0 && ret_obj.contentList){
|
||||
var o = new Array();
|
||||
var it = new Array();
|
||||
var items = ret_obj['contentList']['item'];
|
||||
|
||||
|
||||
if(typeof(items[0]) == 'undefined'){
|
||||
it[0] = items;
|
||||
}else{
|
||||
it = items;
|
||||
}
|
||||
|
||||
o.push('<ul>');
|
||||
for(var i=0,c=it.length;i<c;i++){
|
||||
|
||||
it[i]['regdate'] += '';
|
||||
it[i]['regdate'] = it[i]['regdate'].substr(0,4) + '/' + it[i]['regdate'].substr(4,2) + '/' + it[i]['regdate'].substr(6,2);
|
||||
|
||||
var tag = $A();
|
||||
if(typeof(it[i]['tag_list']['item'])=='string'){
|
||||
tag.push(it[i]['tag_list']['item']);
|
||||
}else{
|
||||
tag = $A(it[i]['tag_list']['item']);
|
||||
}
|
||||
|
||||
tag = tag.filter(function(v){return !/done/i.test(v);});
|
||||
tag.push('todo');
|
||||
tag = tag.$value().join(',');
|
||||
|
||||
o.push('<input type="hidden" id="tag:'+it[i]['document_srl']+'" value="'+tag+'" /><li>');
|
||||
o.push(it[i]['content']);
|
||||
o.push('<span class="button small"><img src="./common/tpl/images/iconCheckGreen.gif" alt="" class="icon" /><button type="button" id="document_srl:'+it[i]['document_srl']+'" onclick="planet_todo_setDone(this)">REDO</button></span>');
|
||||
o.push('<span class="button small"><img src="./common/tpl/images/iconX.gif" alt="" class="icon" /><button type="button" onclick="planet_todo_setDel('+it[i]['document_srl']+')">Delete</button></span>');
|
||||
o.push("</li>\n");
|
||||
}
|
||||
|
||||
|
||||
o.push('</ul>');
|
||||
o.push('<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>');
|
||||
|
||||
$('doneList').innerHTML = o.join('');
|
||||
|
||||
var pageNavigation = ret_obj['pageNavigation'];
|
||||
$('planet_done_count').innerHTML = pageNavigation.total_count ? pageNavigation.total_count : 0;
|
||||
|
||||
if(pageNavigation.total_page > 1){
|
||||
var str = "";
|
||||
|
||||
if(pageNavigation.first_page>1) str += '<a class="prev" href="#planet_tab" onclick="planet_getDone('+(pageNavigation.first_page-1)+');>Prev</a>';
|
||||
|
||||
for(var i=pageNavigation.first_page;i<=pageNavigation.page_count;i++){
|
||||
if(i== pageNavigation.cur_page){
|
||||
str += "<strong>"+i+"</strong>";
|
||||
}else{
|
||||
str += '<a href="#planet_tab" onclick="planet_getDone('+i+');">'+ i +'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
if(pageNavigation.total_page != pageNavigation.last_page) str += '<a class="next" href="#planet_tab" onclick="planet_getDone('+(pageNavigation.last_page+1)+');>next</a>';
|
||||
$('doneList_page').innerHTML = str;
|
||||
}
|
||||
window.location.href="#planet_tab";
|
||||
}else{
|
||||
$('planet_done_count').innerHTML = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function planet_todo_setDone(o){
|
||||
var document_srl = o.id.replace(/.*:/,'');
|
||||
var tag = $('tag:'+document_srl).value;
|
||||
var params = {};
|
||||
params['document_srl'] = document_srl;
|
||||
params['planet_content_tag'] = tag;
|
||||
|
||||
exec_xml('planet','procPlanetContentTagModify',params,planet_reload_todo);
|
||||
return false;
|
||||
}
|
||||
|
||||
function planet_todo_setDel(document_srl){
|
||||
// var tag = $A($('document_srl:'+document_srl).value.split(','));
|
||||
var tag = $A($('tag:'+document_srl).value.split(','));
|
||||
|
||||
tag = tag.filter(function(v){return !/todo/i.test(v);});
|
||||
tag.push('hide');
|
||||
tag = tag.$value().join(',');
|
||||
|
||||
var params = {};
|
||||
params['document_srl'] = document_srl;
|
||||
params['planet_content_tag'] = tag;
|
||||
|
||||
exec_xml('planet','procPlanetContentTagModify',params,planet_reload_todo);
|
||||
return false;
|
||||
}
|
||||
|
||||
function showWritePostTodo(tag){
|
||||
tag = tag||'todo';
|
||||
$Element($('writePostForm').about_tag).hide();
|
||||
$Element($('writePostForm').content_tag).show();
|
||||
$('writePostForm').content_tag.value = tag;
|
||||
window.document.location.href="#writePost";
|
||||
showWritePost();
|
||||
}
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon version="0.2">
|
||||
<title xml:lang="ko">레인보우 링크 애드온</title>
|
||||
<title xml:lang="zh-CN">Rainbow链接</title>
|
||||
<title xml:lang="en">Rainbow Link Addon</title>
|
||||
<title xml:lang="ge">Rainbow Link Addon</title>
|
||||
<title xml:lang="es">Adición Enlace Arco Iris</title>
|
||||
<title xml:lang="jp">レインボーリンクアドオン</title>
|
||||
<title xml:lang="ru">Аддон для радужных ссылок</title>
|
||||
<title xml:lang="zh-TW">彩虹連結</title>
|
||||
<description xml:lang="ko">
|
||||
rainbow.js를 header에 추가하여 링크가 걸린 글의 색을 무지개색으로 나타냅니다.
|
||||
이 애드온의 rainbow.js는 <a href="http://www.dynamicdrive.com" target="_blank">Dynamicdrive.com</a>에 저작권이 있습니다.
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
把rainbow.js添加到header区使链接显示为彩虹色。
|
||||
此插件的rainbow.js文件版权属于 <a href="http://www.dynamicdrive.com" target="_blank">Dynamicdrive.com</a>
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This addon will insert the "rainbow.js" file to the header, which will make the linked text to get the chameleon(rainbow) color change effect.
|
||||
"rainbow.js" Copyrightⓒ2007 <a href="http://www.dynamicdrive.com" target="_blank">Dynamicdrive.com</a>.
|
||||
</description>
|
||||
<description xml:lang="ge">
|
||||
Dieses Addon wird ersetzt durch die "rainbow.js"-Datei auf den Kopf, wodurch der verlinkten Text, um das Chamäleon (Regenbogen) Farbwechsel-Effekt.
|
||||
"rainbow.js" Copyright ⓒ 2007 <a href="http://www.dynamicdrive.com" target="_blank"> Dynamicdrive.com </a>.
|
||||
</description>
|
||||
<description xml:lang="es">
|
||||
incluye rainbow.js en header para mostrar enlaces en colores de arco iris.
|
||||
<a href="http://www.dynamicdrive.com" target="_blank">Dynamicdrive.com</a> tiene derecho de autor sobre rainbow.js
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
「rainbow.js」をヘッダーに追加し、リンクが張られている文字列の色を虹色で表示します。この機能拡張の「rainbow.js」は「<a href="http://www.dynamicdrive.com" target="_blank">Dynamicdrive.com</a>」に著作権があります。
|
||||
</description>
|
||||
<description xml:lang="ru">
|
||||
Этот аддон добавляет файл с именем "rainbow.js" в заголовки HTML, и тогда связанный текс приобретает эффект смены цвета, подобно радуге или хамелеону.
|
||||
"rainbow.js" Copyrightⓒ2007 <a href="http://www.dynamicdrive.com" target="_blank">Dynamicdrive.com</a>.
|
||||
</description>
|
||||
<description xml:lang="zh-TW">
|
||||
將rainbow.js新增到header,讓連結顯示成彩虹色。
|
||||
rainbow.js檔案版權屬於 <a href="http://www.dynamicdrive.com" target="_blank">Dynamicdrive.com</a>
|
||||
</description>
|
||||
<version>0.1</version>
|
||||
<date>2007-02-28</date>
|
||||
|
||||
<author email_address="webmaster@dynamicdrive.com" link="http://dynamicdrive.com">
|
||||
<name xml:lang="ko">dynamicdrive.com</name>
|
||||
<name xml:lang="zh-CN">dynamicdrive.com</name>
|
||||
<name xml:lang="en">dynamicdrive.com</name>
|
||||
<name xml:lang="ge">dynamicdrive.com</name>
|
||||
<name xml:lang="es">dynamicdrive.com</name>
|
||||
<name xml:lang="jp">dynamicdrive.com</name>
|
||||
<name xml:lang="ru">dynamicdrive.com</name>
|
||||
<name xml:lang="zh-TW">dynamicdrive.com</name>
|
||||
</author>
|
||||
</addon>
|
||||
|
|
@ -1,245 +0,0 @@
|
|||
/************************************************************************/
|
||||
/* Rainbow Links Version 1.03 (2003.9.20) */
|
||||
/* Script updated by Dynamicdrive.com for IE6 */
|
||||
/* Copyright (C) 1999-2001 TAKANASHI Mizuki */
|
||||
/* takanasi@hamal.freemail.ne.jp */
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* Read it somehow even if my English text is a little wrong! ;-) */
|
||||
/* */
|
||||
/* Usage: */
|
||||
/* Insert '<script src="rainbow.js"></script>' into the BODY section, */
|
||||
/* right after the BODY tag itself, before anything else. */
|
||||
/* You don't need to add "onMouseover" and "onMouseout" attributes!! */
|
||||
/* */
|
||||
/* If you'd like to add effect to other texts(not link texts), then */
|
||||
/* add 'onmouseover="doRainbow(this);"' and */
|
||||
/* 'onmouseout="stopRainbow();"' to the target tags. */
|
||||
/* */
|
||||
/* This Script works with IE4,Netscape6,Mozilla browser and above only, */
|
||||
/* but no error occurs on other browsers. */
|
||||
/************************************************************************/
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Setting
|
||||
|
||||
var rate = 20; // Increase amount(The degree of the transmutation)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Main routine
|
||||
|
||||
/*
|
||||
if (document.getElementById)
|
||||
window.onerror=new Function("return true")
|
||||
*/
|
||||
|
||||
var objActive; // The object which event occured in
|
||||
var act = 0; // Flag during the action
|
||||
var elmH = 0; // Hue
|
||||
var elmS = 128; // Saturation
|
||||
var elmV = 255; // Value
|
||||
var clrOrg; // A color before the change
|
||||
var TimerID; // Timer ID
|
||||
|
||||
|
||||
if(xIE4Up) {
|
||||
xAddEventListener(document, 'mouseover', doRainbowAnchor);
|
||||
xAddEventListener(document, 'mouseout', stopRainbowAnchor);
|
||||
} else {
|
||||
xAddEventListener(document, 'mouseover', Mozilla_doRainbowAnchor);
|
||||
xAddEventListener(document, 'mouseout', Mozilla_stopRainbowAnchor);
|
||||
}
|
||||
/*
|
||||
if (document.all) {
|
||||
document.onmouseover = doRainbowAnchor;
|
||||
document.onmouseout = stopRainbowAnchor;
|
||||
}
|
||||
else if (document.getElementById) {
|
||||
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
|
||||
document.onmouseover = Mozilla_doRainbowAnchor;
|
||||
document.onmouseout = Mozilla_stopRainbowAnchor;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// doRainbow
|
||||
// This function begins to change a color.
|
||||
//=============================================================================
|
||||
function doRainbow(obj)
|
||||
{
|
||||
if (act == 0) {
|
||||
act = 1;
|
||||
if (obj)
|
||||
objActive = obj;
|
||||
else
|
||||
objActive = event.srcElement;
|
||||
clrOrg = objActive.style.color;
|
||||
TimerID = setInterval("ChangeColor()",100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// stopRainbow
|
||||
// This function stops to change a color.
|
||||
//=============================================================================
|
||||
function stopRainbow()
|
||||
{
|
||||
if (act) {
|
||||
objActive.style.color = clrOrg;
|
||||
clearInterval(TimerID);
|
||||
act = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// doRainbowAnchor
|
||||
// This function begins to change a color. (of a anchor, automatically)
|
||||
//=============================================================================
|
||||
function doRainbowAnchor()
|
||||
{
|
||||
try {
|
||||
if (act == 0) {
|
||||
var obj = event.srcElement;
|
||||
while (obj.tagName != 'A' && obj.tagName != 'BODY') {
|
||||
obj = obj.parentElement;
|
||||
if (obj.tagName == 'A' || obj.tagName == 'BODY')
|
||||
break;
|
||||
}
|
||||
|
||||
if (obj.tagName == 'A' && obj.href != '') {
|
||||
objActive = obj;
|
||||
act = 1;
|
||||
clrOrg = objActive.style.color;
|
||||
TimerID = setInterval("ChangeColor()",100);
|
||||
}
|
||||
}
|
||||
} catch(e) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// stopRainbowAnchor
|
||||
// This function stops to change a color. (of a anchor, automatically)
|
||||
//=============================================================================
|
||||
function stopRainbowAnchor()
|
||||
{
|
||||
if (act) {
|
||||
if (objActive.tagName == 'A') {
|
||||
objActive.style.color = clrOrg;
|
||||
clearInterval(TimerID);
|
||||
act = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// Mozilla_doRainbowAnchor(for Netscape6 and Mozilla browser)
|
||||
// This function begins to change a color. (of a anchor, automatically)
|
||||
//=============================================================================
|
||||
function Mozilla_doRainbowAnchor(evt)
|
||||
{
|
||||
var e = new xEvent(evt);
|
||||
if (act == 0) {
|
||||
obj = e.target;
|
||||
while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
|
||||
obj = obj.parentNode;
|
||||
if(typeof(obj)=='undefined'||!obj) return;
|
||||
if (obj.nodeName == 'A' || obj.nodeName == 'BODY') break;
|
||||
}
|
||||
|
||||
if (obj.nodeName == 'A' && obj.href != '') {
|
||||
objActive = obj;
|
||||
act = 1;
|
||||
clrOrg = obj.style.color;
|
||||
TimerID = setInterval("ChangeColor()",100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// Mozilla_stopRainbowAnchor(for Netscape6 and Mozilla browser)
|
||||
// This function stops to change a color. (of a anchor, automatically)
|
||||
//=============================================================================
|
||||
function Mozilla_stopRainbowAnchor(e)
|
||||
{
|
||||
if (act) {
|
||||
if (objActive.nodeName == 'A') {
|
||||
objActive.style.color = clrOrg;
|
||||
clearInterval(TimerID);
|
||||
act = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// Change Color
|
||||
// This function changes a color actually.
|
||||
//=============================================================================
|
||||
function ChangeColor()
|
||||
{
|
||||
objActive.style.color = makeColor();
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// makeColor
|
||||
// This function makes rainbow colors.
|
||||
//=============================================================================
|
||||
function makeColor()
|
||||
{
|
||||
// Don't you think Color Gamut to look like Rainbow?
|
||||
|
||||
// HSVtoRGB
|
||||
if (elmS == 0) {
|
||||
elmR = elmV; elmG = elmV; elmB = elmV;
|
||||
}
|
||||
else {
|
||||
t1 = elmV;
|
||||
t2 = (255 - elmS) * elmV / 255;
|
||||
t3 = elmH % 60;
|
||||
t3 = (t1 - t2) * t3 / 60;
|
||||
|
||||
if (elmH < 60) {
|
||||
elmR = t1; elmB = t2; elmG = t2 + t3;
|
||||
}
|
||||
else if (elmH < 120) {
|
||||
elmG = t1; elmB = t2; elmR = t1 - t3;
|
||||
}
|
||||
else if (elmH < 180) {
|
||||
elmG = t1; elmR = t2; elmB = t2 + t3;
|
||||
}
|
||||
else if (elmH < 240) {
|
||||
elmB = t1; elmR = t2; elmG = t1 - t3;
|
||||
}
|
||||
else if (elmH < 300) {
|
||||
elmB = t1; elmG = t2; elmR = t2 + t3;
|
||||
}
|
||||
else if (elmH < 360) {
|
||||
elmR = t1; elmG = t2; elmB = t1 - t3;
|
||||
}
|
||||
else {
|
||||
elmR = 0; elmG = 0; elmB = 0;
|
||||
}
|
||||
}
|
||||
|
||||
elmR = Math.floor(elmR).toString(16);
|
||||
elmG = Math.floor(elmG).toString(16);
|
||||
elmB = Math.floor(elmB).toString(16);
|
||||
if (elmR.length == 1) elmR = "0" + elmR;
|
||||
if (elmG.length == 1) elmG = "0" + elmG;
|
||||
if (elmB.length == 1) elmB = "0" + elmB;
|
||||
|
||||
elmH = elmH + rate;
|
||||
if (elmH >= 360)
|
||||
elmH = 0;
|
||||
|
||||
return '#' + elmR + elmG + elmB;
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
/**
|
||||
* @file rainbow.addon.php
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief Rainbow link addon
|
||||
*
|
||||
* 링크가 걸린 텍스트에 마우스 오버를 하면 무지개색으로 변하게 하는 애드온입니다.
|
||||
* rainbow.js 파일만 추가하는 것으로 끝납니다.
|
||||
* rainbow.js는 http://www.dynamicdrive.com에서 제작하였으며 저작권을 가지고 있습니다.
|
||||
* before_display_content 에서만 요청이 됩니다.
|
||||
**/
|
||||
|
||||
if(Context::get('module')=='admin' || $called_position != 'before_module_init') return;
|
||||
|
||||
// Context::addJsFile()을 이용하면 끝
|
||||
Context::addJsFile($addon_path.'js/rainbow.js');
|
||||
?>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon version="0.2">
|
||||
<title xml:lang="ko">댓글알리미 애드온</title>
|
||||
<title xml:lang="jp">コメントお知らせアラートアドオン</title>
|
||||
<title xml:lang="zh-CN">评论通告</title>
|
||||
<title xml:lang="en">Comment Notifier Addon</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">This addon enables Comment Notifier module.</description>
|
||||
<description xml:lang="zh-TW">是種評論通知模組。</description>
|
||||
<version>0.2</version>
|
||||
<date>2008-06-02</date>
|
||||
|
||||
<author email_address="haneul0318@seungyeop.kr" link="http://www.seungyeop.kr">
|
||||
<name xml:lang="ko">haneul</name>
|
||||
<name xml:lang="jp">haneul</name>
|
||||
<name xml:lang="zh-CN">haneul</name>
|
||||
<name xml:lang="en">haneul</name>
|
||||
<name xml:lang="zh-TW">haneul</name>
|
||||
</author>
|
||||
</addon>
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
if(Context::getRequestMethod() == "XMLRPC" || Context::getResponseMethod() == "XMLRPC")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(Context::getRequestMethod() == "POST" && $called_position == 'before_module_proc') {
|
||||
$mode = $_REQUEST['mode'];
|
||||
if(!$mode || $mode != "fb")
|
||||
{
|
||||
return;
|
||||
}
|
||||
$oController = &getController('tccommentnotify');
|
||||
if(!$oController) return;
|
||||
$oController->procNotifyReceived();
|
||||
return;
|
||||
}
|
||||
|
||||
if($called_position == "after_module_proc")
|
||||
{
|
||||
$oModel = &getModel('tccommentnotify');
|
||||
if(!$oModel) return;
|
||||
if($oModel->checkShouldNotify())
|
||||
{
|
||||
$scriptCode = <<<EndOfScript
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
exec_xml("tccommentnotify", "procDoNotify");
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
EndOfScript;
|
||||
Context::addHtmlHeader($scriptCode);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon version="0.2">
|
||||
<title xml:lang="ko">위키 링크 애드온</title>
|
||||
<title xml:lang="en">Wiki Linker</title>
|
||||
<title xml:lang="zh-CN">维基链接插件</title>
|
||||
<title xml:lang="zh-TW">維基百科</title>
|
||||
<title xml:lang="jp">wikiリンクアドオン</title>
|
||||
<description xml:lang="ko">
|
||||
위키 링크를 추가해주는 애드온.
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This addon adds wiki link.
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
给维基模块添加链接的插件。
|
||||
</description>
|
||||
<description xml:lang="zh-TW">
|
||||
維基百科控件。
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
wikiリンクを追加するアドオン
|
||||
</description>
|
||||
<version>0.1</version>
|
||||
<date>2009-02-03</date>
|
||||
|
||||
<author email_address="haneul0318@gmail.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">haneul</name>
|
||||
<name xml:lang="en">haneul</name>
|
||||
<name xml:lang="zh-CN">haneul</name>
|
||||
<name xml:lang="zh-TW">haneul</name>
|
||||
<name xml:lang="jp">haneul</name>
|
||||
</author>
|
||||
</addon>
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::get('act')=='dispWikiEditPage' ) {
|
||||
$module_info = Context::get('module_info');
|
||||
if(!$module_info->module) return;
|
||||
if($module_info->module != 'wiki') return;
|
||||
Context::loadJavascriptPlugin('hotkeys');
|
||||
Context::addJsFile('./addons/wiki_link/wikilink.js',false);
|
||||
Context::addCssFile('./addons/wiki_link/wikilink.css',false);
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
.ui-dialog { background-color:#fff; z-index:999; padding:10px;}
|
||||
.ui-dialog-title { font-weight:bold; margin-bottom:3px; }
|
||||
.ui-dialog-titlebar-close { display:none; }
|
||||
.ui-dialog-buttonpane { text-align:right; bottom:5px !important; }
|
||||
.ui-dialog-buttonpane button { font-size:11px; font-family:tahoma; }
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
function openWikiLinkDialog()
|
||||
{
|
||||
var wikiLink = jQuery('#wikiLink');
|
||||
if ( wikiLink.length < 1 ) {
|
||||
try{
|
||||
jQuery('<div id="wikiLink">Link Target : <input type="text" id="linktarget" class="inputTypeText" style="width:200px;" /></div>')
|
||||
.appendTo('body')
|
||||
.dialog({
|
||||
title:'wiki Link', width:300, height:60, resizable:false,
|
||||
modal: false, overlay: { opacity: 1, background: "#fff" },
|
||||
buttons: { "add link": function() { setText(); jQuery(this).dialog("close"); }, "cancel": function() { jQuery(this).dialog("close"); } },
|
||||
show: 'drop' /* , hide: 'explode' */
|
||||
});
|
||||
} catch(e){
|
||||
}
|
||||
} else {
|
||||
wikiLink.dialog('open');
|
||||
}
|
||||
}
|
||||
|
||||
function setText() {
|
||||
var target = xGetElementById('linktarget');
|
||||
if(!target.value || target.value.trim() == '') return;
|
||||
var text = target.value;
|
||||
text.replace(/&/ig,'&').replace(/</ig,'<').replace(/>/ig,'>');
|
||||
var url = request_uri.setQuery('mid',current_mid).setQuery('entry',text);
|
||||
if(typeof(xeVid)!='undefined') url = url.setQuery('vid', xeVid);
|
||||
var link = "<a href=\""+url+"\" ";
|
||||
link += ">"+text+"</a>";
|
||||
|
||||
var iframe_obj = editorGetIFrame(1)
|
||||
editorReplaceHTML(iframe_obj, link);
|
||||
jQuery("#link").dialog("close");
|
||||
}
|
||||
|
||||
function addShortCutForWiki()
|
||||
{
|
||||
var iframe_obj = editorGetIFrame(1);
|
||||
jQuery(iframe_obj.contentWindow.document).bind('keydown', "CTRL+SHIFT+SPACE", function(evt) { openWikiLinkDialog(); });
|
||||
if(jQuery.os.Mac) {
|
||||
jQuery(iframe_obj.contentWindow.document).bind('keydown', "ALT+SPACE", function(evt) { openWikiLinkDialog(); });
|
||||
} else {
|
||||
jQuery(iframe_obj.contentWindow.document).bind('keydown', "CTRL+SPACE", function(evt) { openWikiLinkDialog(); });
|
||||
}
|
||||
jQuery(document).bind('keydown',"CTRL+SHIFT+SPACE", function(evt) {} );
|
||||
}
|
||||
|
||||
jQuery(window).load( function() { addShortCutForWiki() } );
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue