ccl 에디터 컴포넌트 잘못된 링크 표현 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3507 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-01-09 02:20:35 +00:00
parent 68a44814d9
commit 5202feecbc
3 changed files with 7 additions and 16 deletions

View file

@ -82,17 +82,19 @@
$ccl_image = '';
if($ccl_use_mark == "Y") {
$ccl_image = sprintf('
<a href="license" href="http://creativecommons.org/licenses/by%s%s%s%s" onclick="window.open(this.href); return false;"><img src="http://i.creativecommons.org/l/by%s%s%s/88x31.png" alt="Creative Commons License" style="margin-bottom:5px;border:0;" /></a><br />',
$opt1, $opt2, $version, $lang_file,
$opt1, $opt2, $version, $lang_file
<a rel="license" href="http://creativecommons.org/licenses/by%s%s%s" onclick="window.open(this.href); return false;"><img src="http://i.creativecommons.org/l/by%s%s%s/88x31.png" alt="Creative Commons License" style="margin-bottom:5px;border:0;" /></a><br />',
$opt1, $opt2, $version,
$opt1, $opt2, $version
);
}
// 결과물 생성
$text = $ccl_image . sprintf($default_message, $opt1, $opt2, $opt3, $opt4, $ccl_title, $option['ccl_allow_commercial'][$ccl_allow_commercial], $option['ccl_allow_modification'][$ccl_allow_modification], $version);
$text = $ccl_image . sprintf($default_message, $opt1, $opt2, $version, '', $ccl_title, $option['ccl_allow_commercial'][$ccl_allow_commercial], $option['ccl_allow_modification'][$ccl_allow_modification], $version);
$style = sprintf('<style type="text/css">.cc_license { clear:both; margin:20px auto 20px auto; padding:8px; width:%s;border:1px solid #c0c0c0; color:#808080; text-align:center; } .cc_license legend { font-weight:bold; } .cc_license a { color:#404040; text-decoration:none; } .cc_license a:hover { text-decoration:underline; </style>', $width);
$output = sprintf('%s<fieldset class="cc_license"><legend>%s</legend>%s</fieldset>', $style, $ccl_title, $text);
return $output;
}
}

View file

@ -10,13 +10,6 @@
<table cellspacing="0" class="adminTable">
<col width="120" />
<col />
<tr>
<th scope="row">{$lang->ccl_title}</th>
<td>
<input type="text" name="ccl_title" class="inputTypeText w400" />
<p>{$lang->about_ccl_title}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->ccl_use_mark}</th>
<td>

View file

@ -14,14 +14,12 @@ function getCode() {
selected_node = node;
// 이미 정의되어 있는 변수에서 데이터를 구함
var ccl_title = node.getAttribute('ccl_title');
var ccl_use_mark = node.getAttribute('ccl_use_mark');
var ccl_allow_commercial = node.getAttribute('ccl_allow_commercial');
var ccl_allow_modification = node.getAttribute('ccl_allow_modification');
// form문에 적용
var fo_obj = xGetElementById('fo');
fo_obj.ccl_title.value = ccl_title;
if(ccl_use_mark == 'Y') fo_obj.ccl_use_mark.selectedIndex = 0;
else fo_obj.ccl_use_mark.selectedIndex = 1;
@ -40,7 +38,6 @@ function insertCode() {
var fo_obj = xGetElementById('fo');
var ccl_title = escape(fo_obj.ccl_title.value);
var ccl_use_mark = fo_obj.ccl_use_mark.options[fo_obj.ccl_use_mark.selectedIndex].value;
var ccl_allow_commercial = fo_obj.ccl_allow_commercial.options[fo_obj.ccl_allow_commercial.selectedIndex].value;
var ccl_allow_modification = fo_obj.ccl_allow_modification.options[fo_obj.ccl_allow_modification.selectedIndex].value;
@ -49,10 +46,9 @@ function insertCode() {
var style = "width:90%; margin:20px auto 20px auto; height:50px; border:1px solid #c0c0c0; background: transparent url('./modules/editor/components/cc_license/ccl_logo.gif') no-repeat center center;";
var text = '<br /><img editor_component="cc_license" ccl_title="'+ccl_title+'" ccl_use_mark="'+ccl_use_mark+'" ccl_allow_commercial="'+ccl_allow_commercial+'" ccl_allow_modification="'+ccl_allow_modification+'" style="'+style+'" src="./common/tpl/images/blank.gif" alt="ccl" /><br />';
var text = '<br /><img editor_component="cc_license" ccl_use_mark="'+ccl_use_mark+'" ccl_allow_commercial="'+ccl_allow_commercial+'" ccl_allow_modification="'+ccl_allow_modification+'" style="'+style+'" src="./common/tpl/images/blank.gif" alt="ccl" /><br />';
if(selected_node) {
selected_node.setAttribute('ccl_title', ccl_title);
selected_node.setAttribute('ccl_use_mark', ccl_use_mark);
selected_node.setAttribute('ccl_allow_commercial', ccl_allow_commercial);
selected_node.setAttribute('ccl_allow_modification', ccl_allow_modification);