Skip to content

Commit

Permalink
refs #1712 : removed - eolin-related resources
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Dec 16, 2014
1 parent d9ae825 commit a41a5bd
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 209 deletions.
42 changes: 3 additions & 39 deletions interface/owner/entry/edit/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -602,17 +602,6 @@ function checkCategory(type) {
return true;
}

function viewWhatIsEolin() {
document.getElementById('TCfilelist').style.visibility = 'hidden';
dialog = document.getElementById('eolinDialog');
PM.showPanel(dialog);
}

function closeWhatIsEolin() {
document.getElementById('TCfilelist').style.visibility = 'visible';
document.getElementById('eolinDialog').style.display = 'none';
}

function toggleTemplateDialog() {
if(document.getElementById('templateDialog').style.display != 'none') {
document.getElementById('templateDialog').style.display = 'none';
Expand Down Expand Up @@ -816,7 +805,7 @@ function returnToList() {
<script type="text/javascript">
//<![CDATA[
try {
var oLocationTag = new LocationTag(document.getElementById("location"), "<?php echo $blog['language'];?>", <?php echo isset($service['disableEolinSuggestion']) && $service['disableEolinSuggestion'] ? 'true' : 'false';?>);
var oLocationTag = new LocationTag(document.getElementById("location"), "<?php echo $blog['language'];?>", true);
oLocationTag.setInputClassName("input-text");
oLocationTag.setValue("<?php echo addslashes($entry['location']);?>");
} catch (e) {
Expand All @@ -825,7 +814,7 @@ function returnToList() {
}

try {
var oTag = new Tag(document.getElementById("tag"), "<?php echo $blog['language'];?>", <?php echo isset($service['disableEolinSuggestion']) && $service['disableEolinSuggestion'] ? 'true' : 'false';?>);
var oTag = new Tag(document.getElementById("tag"), "<?php echo $blog['language'];?>", true);
oTag.setInputClassName("input-text");
<?php
$tags = array();
Expand Down Expand Up @@ -878,16 +867,13 @@ function returnToList() {
</div>
</dd>
</dl>
<?php
$countResult = POD::queryExistence("SELECT id FROM {$database['prefix']}Entries WHERE blogid = ".getBlogId()." AND visibility = 3");
?>
<dl id="status-line" class="line">
<dt><span class="label"><?php echo _t('공개여부');?></span></dt>
<dd>
<div id="status-private" class="status-private"><input type="radio" id="visibility_private" class="radio" name="visibility" value="0"<?php echo (abs($entry['visibility']) == 0 ? ' checked="checked"' : '');?> /><label for="visibility_private"><?php echo _t('비공개');?></label></div>
<div id="status-protected" class="status-protected"<?php if($isKeyword) echo _t('style="display: none"');?>><input type="radio" id="visibility_protected" class="radio" name="visibility" value="1"<?php echo (abs($entry['visibility']) == 1 ? ' checked="checked"' : '');?> /><label for="visibility_protected"><?php echo _t('보호');?></label></div>
<div id="status-public" class="status-public"><input type="radio" id="visibility_public" class="radio" name="visibility" value="2"<?php echo (abs($entry['visibility']) == 2 ? ' checked="checked"' : '');?> /><label for="visibility_public"><?php echo _t('공개');?></label></div>
<div id="status-syndicated" class="status-syndicated"<?php if($isKeyword) echo _t('style="display: none"');?>><input type="radio" id="visibility_syndicated" class="radio" name="visibility" value="3"<?php echo $countResult == false ? ' onclick="viewWhatIsEolin();"' : NULL; echo (abs($entry['visibility']) == 3 ? ' checked="checked"' : '');?> /><label for="visibility_syndicated"><?php echo _t('발행');?><?php echo $countResult == true ? ' (<a href="#void" onclick="viewWhatIsEolin();">'._t('설명').'</a>)' : NULL;?></label></div>
<div id="status-syndicated" class="status-syndicated"<?php if($isKeyword) echo _t('style="display: none"');?>><input type="radio" id="visibility_syndicated" class="radio" name="visibility" value="3"<?php echo (abs($entry['visibility']) == 3 ? ' checked="checked"' : '');?> /><label for="visibility_syndicated"><?php echo _t('발행');?></label></div>
</dd>
</dl>

Expand Down Expand Up @@ -950,28 +936,6 @@ function returnToList() {
</div>
</form>
<div id="feather" class="clear"></div>
<div id="eolinDialog" class="dialog" style="position: absolute; display: none; z-index: 100;">
<div class="temp-box">
<h4><?php echo _t('이올린이란?');?></h4>

<p class="message">
<?php echo _t('이올린은 텍스트큐브와 텍스트큐브 기반의 블로그에서 "발행"을 통해 보내진 글들을 다양한 방법으로 만날 수 있는 텍스트큐브 블로거들의 열린 공간입니다.');?>
</p>

<h4><?php echo _t('발행 방법');?></h4>

<p class="message">
<em><?php echo _t('텍스트큐브 글목록에서 발행버튼을 누르거나 글쓰기시 공개범위를 "발행"으로 체크하면 됩니다.');?></em>
<?php echo _t('발행을 통해 이올린으로 보내진 게시물들의 저작권을 포함한 일체에 관한 권리는 별도의 의사표시가 없는 한 각 회원에게 있습니다. 이올린에서는 발행된 게시물을 블로거의 동의 없이 상업적으로 이용하지 않습니다. 다만 비영리적 목적인 경우는 이용이 가능하며, 또한 이올린 서비스 내의 게재권, 사용권을 갖습니다.');?>
</p>

<div class="button-box">
<button id="eolin-button" class="eolin-button input-button" onclick="window.open('http://www.eolin.com');" title="<?php echo _t('이올린으로 연결합니다.');?>"><span class="text"><?php echo _t('이올린, 지금 만나보세요');?></span></button>
<button id="close-button" class="close-button input-button" onclick="closeWhatIsEolin();return false;" title="<?php echo _t('이 대화상자를 닫습니다.');?>"><span class="text"><?php echo _t('닫기');?></span></button>
</div>
</div>
</div>

<script type="text/javascript">
//<![CDATA[
var contentformatterObj = document.getElementById('contentformatter');
Expand Down
2 changes: 1 addition & 1 deletion interface/owner/entry/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ function toggleThisTr(obj) {
<dt><?php echo _t('별표');?></dt>
<dd><?php echo _t('중요한 글에 별표를 매깁니다.');?></dd>
</dl>
<dl class="eolin-description">
<dl class="syndication-description">
<dt><?php echo _t('발행');?></dt>
<dd><?php echo _t('발행 플러그인들을 통해 다양한 사이트에 공개합니다.');?></dd>
</dl>
Expand Down
28 changes: 0 additions & 28 deletions resources/control/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -1166,34 +1166,6 @@ table.data-inbox tbody tr td.inactive-class
position : static;
}

/* eolin suggest */
.eolinSuggest
{
background-color : #FFFFFF;
border : 1px solid #BBBBBB;
}

.eolinSuggest li
{
margin : 3px;
cursor : pointer;
}

.eolinSuggest li.hover
{
background-color : #edf !important;
}

.eolinSuggest li.disabled
{
color : #777;
}

.eolinSuggest
{
font-size : 9pt;
}

/* etc */

.attention
Expand Down
2 changes: 1 addition & 1 deletion resources/script/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function ctlUserSuggest(container, disable)
this.isTyping = false; // input box에 포커스가 있는지 여부
this.isSuggestionShown = false; // suggest window가 보여지고 있는지의 여부

this.typingText = ""; // eolinTagFunction_WatchInputBox에서 input box의 값을 감시하기 위한 변수
this.typingText = ""; // tcTagFunction_WatchInputBox에서 input box의 값을 감시하기 위한 변수

this.container = container; // tag list가 들어갈 container
this.container.instance = this;
Expand Down
20 changes: 10 additions & 10 deletions resources/script/generaltag.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// 입력창을 10ms마다 체크하면서 값이 변했으면 request를 보낸다.
// 파이어폭스에서는 한글을 입력할때 keydown 이벤트가 발생하지 않기 때문에
// 값이 변하는지 계속 보고있어야 한다.
function eolinTagFunction_WatchInputBox(id)
function tcTagFunction_WatchInputBox(id)
{
try
{
Expand All @@ -28,7 +28,7 @@ function eolinTagFunction_WatchInputBox(id)
}

// 서버에서 보내오는 필터로 로컬 tag suggestion
function eolinTagFunction_showLocalSuggestion(id, cursor, filter)
function tcTagFunction_showLocalSuggestion(id, cursor, filter)
{
// Container의 ID를 통해 instance를 가져온다
try { var instance = document.getElementById(id).instance; }
Expand Down Expand Up @@ -132,12 +132,12 @@ function eolinTagFunction_showLocalSuggestion(id, cursor, filter)
}
}

function eolinTagFunction_showLocalSuggestionWithoutQuery(id, cursor, filter) {
return eolinTagFunction_showLocalSuggestion(id, cursor, 'name like "' + filter.replace('"', '\\"') + '%"');
function tcTagFunction_showLocalSuggestionWithoutQuery(id, cursor, filter) {
return tcTagFunction_showLocalSuggestion(id, cursor, 'name like "' + filter.replace('"', '\\"') + '%"');
}

// 서버에서 보내오는 내용을 실행하는 함수
function eolinTagFunction_showSuggestion()
function tcTagFunction_showSuggestion()
{
// Container의 ID를 통해 instance를 가져온다
try { var instance = document.getElementById(arguments[0]).instance; }
Expand Down Expand Up @@ -221,7 +221,7 @@ function Tag(container, language, disable)
this.isTyping = false; // input box에 포커스가 있는지 여부
this.isSuggestionShown = false; // suggest window가 보여지고 있는지의 여부

this.typingText = ""; // eolinTagFunction_WatchInputBox에서 input box의 값을 감시하기 위한 변수
this.typingText = ""; // tcTagFunction_WatchInputBox에서 input box의 값을 감시하기 위한 변수

this.inputClassName = "";

Expand All @@ -236,7 +236,7 @@ function Tag(container, language, disable)
this.suggestion = document.createElement("ul");
this.suggestion.instance = this;
this.suggestion.selectedIndex = 0;
this.suggestion.className = "eolinSuggest";
this.suggestion.className = "tcSuggest";
this.suggestion.style.margin = "0px";
this.suggestion.style.padding = "0px";
this.suggestion.style.listStyleType = "none";
Expand All @@ -245,7 +245,7 @@ function Tag(container, language, disable)
this.suggestion.style.zIndex = "999";

// 10ms마다 input box의 값이 변했는지 체크
setInterval("eolinTagFunction_WatchInputBox('" + this.container.id + "')", 10);
setInterval("tcTagFunction_WatchInputBox('" + this.container.id + "')", 10);

// 마지막 노드에 들어가는 input box
this.inputOnLast = this.createSuggestInput();
Expand Down Expand Up @@ -383,12 +383,12 @@ Tag.prototype.requestSuggestion = function()
instance.cursor++;

if(!instance.allowEolinSuggestion || (instance.getInput().value.trim() == "")) {
eolinTagFunction_showLocalSuggestionWithoutQuery(instance.container.getAttribute("id"), instance.cursor, instance.getInput().value)
tcTagFunction_showLocalSuggestionWithoutQuery(instance.container.getAttribute("id"), instance.cursor, instance.getInput().value)
return;
}

var script = document.createElement("script");
script.setAttribute("src", "http://suggest.eolin.com/tag/tatter/?id=" + instance.container.getAttribute("id") + "&cursor=" + instance.cursor + "&language=" + instance.language + "&word=" + encodeURIComponent(instance.getInput().value) + (STD.isSafari ? "&encode=1" : ""));
script.setAttribute("src", "http://suggest.tc.com/tag/tatter/?id=" + instance.container.getAttribute("id") + "&cursor=" + instance.cursor + "&language=" + instance.language + "&word=" + encodeURIComponent(instance.getInput().value) + (STD.isSafari ? "&encode=1" : ""));
document.body.appendChild(script);
}

Expand Down
22 changes: 11 additions & 11 deletions resources/script/locationtag.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// 입력창을 10ms마다 체크하면서 값이 변했으면 request를 보낸다.
// 파이어폭스에서는 한글을 입력할때 keydown 이벤트가 발생하지 않기 때문에
// 값이 변하는지 계속 보고있어야 한다.
function eolinLocationTagFunction_WatchInputBox(id)
function tcLocationTagFunction_WatchInputBox(id)
{
try
{
Expand All @@ -25,7 +25,7 @@ function eolinLocationTagFunction_WatchInputBox(id)
}

// 서버에서 보내오는 필터로 로컬 location suggestion
function eolinLocationFunction_showLocalSuggestion(id, cursor, filter)
function tcLocationFunction_showLocalSuggestion(id, cursor, filter)
{
// Container의 ID를 통해 instance를 가져온다
try { var instance = document.getElementById(id).instance; }
Expand Down Expand Up @@ -138,7 +138,7 @@ function eolinLocationFunction_showLocalSuggestion(id, cursor, filter)
}

// 서버에서 보내오는 내용을 실행하는 함수
function eolinLocationTagFunction_showSuggestion()
function tcLocationTagFunction_showSuggestion()
{
// Container의 ID를 통해 instance를 가져온다
try { var instance = document.getElementById(arguments[0]).instance; }
Expand Down Expand Up @@ -229,7 +229,7 @@ function LocationTag(container, language, disable)
this.isTyping = false; // input box에 포커스가 있는지 여부
this.isSuggestionShown = false; // suggest window가 보여지고 있는지의 여부

this.typingText = ""; // eolinTagFunction_WatchInputBox에서 input box의 값을 감시하기 위한 변수
this.typingText = ""; // tcTagFunction_WatchInputBox에서 input box의 값을 감시하기 위한 변수

this.container = container; // tag list가 들어갈 container
this.container.instance = this;
Expand All @@ -238,7 +238,7 @@ function LocationTag(container, language, disable)
this.suggestion = document.createElement("ul");
this.suggestion.instance = this;
this.suggestion.selectedIndex = 0;
this.suggestion.className = "eolinSuggest";
this.suggestion.className = "tcSuggest";
this.suggestion.style.margin = "0px";
this.suggestion.style.padding = "0px";
this.suggestion.style.listStyleType = "none";
Expand Down Expand Up @@ -342,7 +342,7 @@ function LocationTag(container, language, disable)
}

// 10ms마다 input box의 값이 변했는지 체크
setInterval("eolinLocationTagFunction_WatchInputBox('" + this.container.id + "')", 10);
setInterval("tcLocationTagFunction_WatchInputBox('" + this.container.id + "')", 10);

// location list
this.locationList = document.createElement("ul");
Expand Down Expand Up @@ -546,7 +546,7 @@ LocationTag.prototype.requestSuggestion = function()
var instance = this.instance;

if(!instance.allowEolinSuggestion || (instance.input.value.trim() == "")) {
eolinLocationFunction_showLocalSuggestion(instance.container.getAttribute("id"), instance.cursor, this.getPath());
tcLocationFunction_showLocalSuggestion(instance.container.getAttribute("id"), instance.cursor, this.getPath());
return;
}

Expand All @@ -556,10 +556,10 @@ LocationTag.prototype.requestSuggestion = function()
debug("Request " + instance.cursor);

var script = document.createElement("script");
// script.setAttribute("id", "eolinLocationScript");
script.setAttribute("src", "http://suggest.eolin.com/location/script/?id=" + instance.container.getAttribute("id") + "&cursor=" + instance.cursor + "&language=" + instance.language + "&path=" + encodeURIComponent(instance.getPath()) + (STD.isSafari ? "&encode=1" : ""));
// if(document.getElementById("eolinLocationScript"))
// document.body.removeChild(document.getElementById("eolinLocationScript"));
// script.setAttribute("id", "tcLocationScript");
script.setAttribute("src", "http://suggest.tc.com/location/script/?id=" + instance.container.getAttribute("id") + "&cursor=" + instance.cursor + "&language=" + instance.language + "&path=" + encodeURIComponent(instance.getPath()) + (STD.isSafari ? "&encode=1" : ""));
// if(document.getElementById("tcLocationScript"))
// document.body.removeChild(document.getElementById("tcLocationScript"));
document.body.appendChild(script);
}

Expand Down
28 changes: 0 additions & 28 deletions skin/admin/canon/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -1468,34 +1468,6 @@ table.data-inbox tbody tr td.inactive-class
position : static;
}

/* eolin suggest */
.eolinSuggest
{
background-color : #FFFFFF;
border : 1px solid #BBBBBB;
}

.eolinSuggest li
{
margin : 3px;
cursor : pointer;
}

.eolinSuggest li.hover
{
background-color : #edf !important;
}

.eolinSuggest li.disabled
{
color : #777;
}

.eolinSuggest
{
font-size : 9pt;
}

/* etc */

.attention
Expand Down
Loading

0 comments on commit a41a5bd

Please sign in to comment.