Index: /plugins/NewWindowLink/index.xml
===================================================================
--- /plugins/NewWindowLink/index.xml	(revision 102)
+++ /plugins/NewWindowLink/index.xml	(revision 102)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<plugin version="1.03">
+	<title xml:lang="ko">새창으로 열기 링크</title>
+	<title xml:lang="en">New Window Links</title>
+	<link>http://www.tattertools.com/plugins</link>
+	<version>1.0</version>
+	<description xml:lang="ko">글 본문에 걸린 링크들에 대해 새창으로 열기 링크를 추가해줍니다.</description>
+	<description xml:lang="en">This plugin adds new windows links to the existing hyperlinks in blog posts.</description>
+	<license>GPL</license>
+	<author link="http://daybreaker.info">daybreaker</author>
+	<author xml:lang="ko" link="http://www.daybreaker.info">daybreaker</author>
+	<safety changeData="no" exposeData="no" accessLocal="no" accessRemote="no" accessRaw="no" />
+	<requirements>
+		<tattertools>1.1</tattertools>
+	</requirements>
+	<binding>
+		<listener event="ViewPostContent">AddNewWindowLinks</listener>
+		<listener event="ViewNoticeContent">AddNewWindowLinks</listener>
+		<config xml:lang="ko" dataValHandler="">
+			<window width="500" height="300" />
+			<fieldset legend="어떤 형태의 새 창으로 열기 링크를 사용할지 선택해주세요.">
+				<field title="Type" name="type" type="select">
+					<op value="hack">아이콘 - CSS Hack 사용</op>
+					<op value="img">아이콘 - img 태그 사용</op>
+					<op value="text">텍스트만 사용</op>
+					<caption><![CDATA[
+					<ul>
+						<li>아이콘 (CSS Hack 사용) : 다양한 종류의 웹브라우저에서 가장 예쁜 모양이 나오지만 접근성 면에서는 떨어집니다.</li>
+						<li>아이콘 (img 태그 사용) : IE 계열에서 본문과 아이콘의 위치가 어긋나 보이나 비교적 깔끔한 코드로 이루어집니다.</li>
+						<li>텍스트만 사용 : 아이콘 없이 문자열로 새 창 링크를 표시합니다.</li>
+					</ul>
+					]]></caption>
+				</field>
+			</fieldset>
+		</config>
+		<config xml:lang="en" dataValHandler="">
+			<window width="500" height="300" />
+			<fieldset legend="Please select the type of new window links.">
+				<field title="Type" name="type" type="select">
+					<op value="hack">Icon - using CSS Hack</op>
+					<op value="img">Icon - using img tag</op>
+					<op value="text">Text only</op>
+					<caption><![CDATA[
+					<ul>
+						<li>Icon (using CSS Hack) : More fancy appearance, but dirty html/style code.</li>
+						<li>Icon (using img tag) : Good accessibility</li>
+						<li>Text only : simple text link</li>
+					</ul>
+					]]></caption>
+				</field>
+			</fieldset>
+		</config>
+	</binding>
+</plugin>
Index: /plugins/NewWindowLink/index.php
===================================================================
--- /plugins/NewWindowLink/index.php	(revision 102)
+++ /plugins/NewWindowLink/index.php	(revision 102)
@@ -0,0 +1,38 @@
+<?php
+function AddNewWindowLinks($target, $mother) {
+	global $pluginURL, $configVal, $owner;
+
+	if (is_null($configVal)) return $target;
+
+	requireComponent('Tattertools.Function.misc');
+	$config = misc::fetchConfigVal($configVal);
+	
+	$setting = getBlogSetting($owner);
+	// 아래를 수정하시면 간단하게 링크 형태를 바꿀 수 있고, newwindow.gif 파일을 다른 것으로 대체하셔도 됩니다.
+	// $1은 링크된 URL로, $2는 a 태그에 붙은 추가 속성들, $4는 링크 제목으로 치환됩니다.
+	switch ($setting['language']) {
+	case 'ko':
+		$text_title = '다음 링크를 새 창으로 엽니다. : \'$4\'';
+		$text_alt = '(새 창으로 열기)';
+		break;
+	default:
+		$text_title = 'Open \'$4\' link in a new window';
+		$text_alt = '(New Window)';
+	}
+	switch ($config['type']) {
+	case 'hack':
+		$replacement = '<a href="$1"$2>$4</a><a href="$1" onclick="window.open(\'$1\');return false;" ';
+		$replacement .= 'style="border:none; text-decoration:none; padding-left:15px; margin-right: -0.5em; background: transparent url('.$pluginURL.'/newwindow.gif) no-repeat 0px 50%;" title="'.$text_title.'">&nbsp;</a>';
+		break;
+	case 'img':
+		$replacement = '<a href="$1"$2>$4</a><a href="$1" onclick="window.open(\'$1\');return false;">';
+		$replacement .= '<img src="'.$pluginURL.'/newwindow.gif" style="margin-left:0.1em; margin-right:0.1em; vertical-align:middle;" alt="'.$text_alt.'"></a>';
+		break;
+	case 'text':
+	default:
+		$replacement = '<a href="$1"$2>$4</a> <a href="$1" onclick="window.open(\'$1\');return false;" title="Open \'$4\' link in a new window">'.$text_alt.'</a>';
+	}
+	$target = preg_replace('/<a href="(http:\/\/[^"]+)"(( \w+="[^"]+")*)>([^<]+)<\/a>/i', $replacement, $target);
+	return $target;
+}
+?>
