mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
위젯 검출 정규 표현식을 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2892 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f9896fe51a
commit
90aa62a6ac
993 changed files with 9190 additions and 10457 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module version="0.1">
|
||||
<module version="0.1" category="manager">
|
||||
<title xml:lang="ko">위젯</title>
|
||||
<title xml:lang="zh-CN">控件</title>
|
||||
<title xml:lang="jp">ウィジェット</title>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,13 @@
|
|||
<div class="infoText">{nl2br($lang->about_addon)}</div>
|
||||
|
||||
<!-- 위젯의 목록 -->
|
||||
<table cellspacing="0" class="tableType3">
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<col />
|
||||
<col width="80" />
|
||||
<col width="120" />
|
||||
<col width="80" />
|
||||
<col width="140" />
|
||||
<col width="80" />
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{$lang->widget_name}</th>
|
||||
|
|
@ -30,7 +36,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" class="left">
|
||||
{nl2br($val->author->description)}
|
||||
{nl2br(trim($val->author->description))}
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -104,19 +104,21 @@ function doFillWidgetVars() {
|
|||
node.value = val;
|
||||
break;
|
||||
case "checkbox" :
|
||||
var val = selected_node.getAttribute(name).split(',');
|
||||
if(fo_obj[name].length) {
|
||||
for(var i=0;i<fo_obj[name].length;i++) {
|
||||
var v = fo_obj[name][i].value;
|
||||
for(var j=0;j<val.length;j++) {
|
||||
if(v == val[j]) {
|
||||
fo_obj[name][i].checked=true;
|
||||
break;
|
||||
if(selected_node.getAttribute(name)) {
|
||||
var val = selected_node.getAttribute(name).split(',');
|
||||
if(fo_obj[name].length) {
|
||||
for(var i=0;i<fo_obj[name].length;i++) {
|
||||
var v = fo_obj[name][i].value;
|
||||
for(var j=0;j<val.length;j++) {
|
||||
if(v == val[j]) {
|
||||
fo_obj[name][i].checked=true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(fo_obj[name].value == val) fo_obj[name].checked =true;
|
||||
}
|
||||
} else {
|
||||
if(fo_obj[name].value == val) fo_obj[name].checked =true;
|
||||
}
|
||||
break;
|
||||
case "select" :
|
||||
|
|
|
|||
|
|
@ -1,14 +1,11 @@
|
|||
<!--%import("css/widget.css")-->
|
||||
<!--%import("../../admin/tpl/css/admin.css")-->
|
||||
|
||||
<div id="popHeadder">
|
||||
<h1>{$lang->widget_maker}</h1>
|
||||
</div>
|
||||
|
||||
<div id="popBody">
|
||||
<table cellspacing="0" class="tableType5">
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<col width="100" />
|
||||
<col />
|
||||
<caption>{$lang->widget_maker}</caption>
|
||||
<tr>
|
||||
<th scope="row">{$lang->title}</th>
|
||||
<td>{$widget_info->title} ver {$widget_info->version}</td>
|
||||
|
|
@ -27,7 +24,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{$lang->description}</th>
|
||||
<td>{nl2br($widget_info->author->description)}</td>
|
||||
<td>{nl2br(trim($widget_info->author->description))}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@
|
|||
|
||||
<div id="popBody">
|
||||
|
||||
<div class="infoText">{nl2br($lang->about_widget_code)}</div>
|
||||
|
||||
<table cellspacing="0" class="tableType5">
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<col width="100" />
|
||||
<col />
|
||||
<caption>{nl2br($lang->about_widget_code)}</caption>
|
||||
<tr>
|
||||
<th scope="row">{$lang->widget}</th>
|
||||
<td>{$widget_info->title} ver {$widget_info->version}</td>
|
||||
|
|
@ -51,7 +51,12 @@
|
|||
</tr>
|
||||
<!--@foreach($widget_info->extra_var as $id => $var)-->
|
||||
<tr>
|
||||
<th scope="row">{$var->name}</th>
|
||||
<th scope="row">
|
||||
{$var->name}
|
||||
<!--@if($var->type == "mid_list")-->
|
||||
<input type="checkbox" onclick="checkboxSelectAll(this.form, '{$id}'); return false;" />
|
||||
<!--@end-->
|
||||
</th>
|
||||
<td>
|
||||
<!--@if($var->type == "text")-->
|
||||
<input type="text" name="{$id}" value="" class="inputTypeText" />
|
||||
|
|
@ -67,22 +72,12 @@
|
|||
</select>
|
||||
|
||||
<!--@elseif($var->type == "mid_list")-->
|
||||
<div class="clear">
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}', true);return false;" value="{$lang->cmd_select_all}"></span>
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}', false);return false;" value="{$lang->cmd_unselect_all}"></span>
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}');return false;" value="{$lang->cmd_reverse_all}"></span>
|
||||
</div>
|
||||
<!--@foreach($mid_list as $key => $val)-->
|
||||
<div class="widget_mid_list">
|
||||
<input type="checkbox" value="{$key}" name="{$id}" id="chk_mid_list_{$key}" />
|
||||
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<div class="clear">
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}', true);return false;" value="{$lang->cmd_select_all}"></span>
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}', false);return false;" value="{$lang->cmd_unselect_all}"></span>
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}');return false;" value="{$lang->cmd_reverse_all}"></span>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<p class="clear">{nl2br($var->description)}</p>
|
||||
</td>
|
||||
|
|
@ -91,16 +86,16 @@
|
|||
<tr>
|
||||
<th scope="row">{$lang->widget_margin}</th>
|
||||
<td>
|
||||
<table border="0" cellspacing="1">
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<tr>
|
||||
<td colspan="2" align="center">{$lang->widget_margin_top} <input type="text" name="widget_margin_top" value="0" size="2" class="inputTypeText" />px</td>
|
||||
<td class="tCenter" colspan="2">{$lang->widget_margin_top} <input type="text" name="widget_margin_top" value="0" size="2" class="inputTypeText" />px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->widget_margin_left} <input type="text" name="widget_margin_left" value="0" size="2" class="inputTypeText"/>px</td>
|
||||
<td align="right">{$lang->widget_margin_right} <input type="text" name="widget_margin_right" value="0" size="2" class="inputTypeText" />px</td>
|
||||
<td class="tCenter">{$lang->widget_margin_left} <input type="text" name="widget_margin_left" value="0" size="2" class="inputTypeText"/>px</td>
|
||||
<td class="tCenter">{$lang->widget_margin_right} <input type="text" name="widget_margin_right" value="0" size="2" class="inputTypeText" />px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">{$lang->widget_margin_bottom} <input type="text" name="widget_margin_bottom" value="0" size="2" class="inputTypeText" />px</td>
|
||||
<td colspan="2" class="tCenter">{$lang->widget_margin_bottom} <input type="text" name="widget_margin_bottom" value="0" size="2" class="inputTypeText" />px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>{$lang->about_widget_margin}</p>
|
||||
|
|
|
|||
|
|
@ -14,11 +14,10 @@
|
|||
|
||||
<div id="popBody">
|
||||
|
||||
<div class="infoText">{nl2br($lang->about_widget_code_in_page)}</div>
|
||||
|
||||
<table cellspacing="0" class="tableType5">
|
||||
<col width="100" />
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<col width="150" />
|
||||
<col />
|
||||
<caption>{nl2br($lang->about_widget_code_in_page)}</caption>
|
||||
<tr>
|
||||
<th scope="row">{$lang->widget}</th>
|
||||
<td>{$widget_info->title} ver {$widget_info->version}</td>
|
||||
|
|
@ -53,7 +52,12 @@
|
|||
</tr>
|
||||
<!--@foreach($widget_info->extra_var as $id => $var)-->
|
||||
<tr>
|
||||
<th scope="row">{$var->name}</th>
|
||||
<th scope="row">
|
||||
{$var->name}
|
||||
<!--@if($var->type == "mid_list")-->
|
||||
<input type="checkbox" onclick="checkboxSelectAll(this.form, '{$id}'); return false;" />
|
||||
<!--@end-->
|
||||
</th>
|
||||
<td>
|
||||
<!--@if($var->type == "text")-->
|
||||
<input type="text" name="{$id}" value="" class="inputTypeText" />
|
||||
|
|
@ -69,22 +73,12 @@
|
|||
</select>
|
||||
|
||||
<!--@elseif($var->type == "mid_list")-->
|
||||
<div class="clear">
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}', true);return false;" value="{$lang->cmd_select_all}"></span>
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}', false);return false;" value="{$lang->cmd_unselect_all}"></span>
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}');return false;" value="{$lang->cmd_reverse_all}"></span>
|
||||
</div>
|
||||
<!--@foreach($mid_list as $key => $val)-->
|
||||
<div class="widget_mid_list">
|
||||
<input type="checkbox" value="{$key}" name="{$id}" id="chk_mid_list_{$key}" />
|
||||
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<div class="clear">
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}', true);return false;" value="{$lang->cmd_select_all}"></span>
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}', false);return false;" value="{$lang->cmd_unselect_all}"></span>
|
||||
<span class="button"><input type="button" onclick="checkboxSelectAll(this.form, '{$id}');return false;" value="{$lang->cmd_reverse_all}"></span>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<p class="clear">{nl2br($var->description)}</p>
|
||||
</td>
|
||||
|
|
@ -93,16 +87,16 @@
|
|||
<tr>
|
||||
<th scope="row">{$lang->widget_margin}</th>
|
||||
<td>
|
||||
<table border="0" cellspacing="1">
|
||||
<table cellspacing="1" class="adminTable">
|
||||
<tr>
|
||||
<td colspan="2" align="center">{$lang->widget_margin_top} <input type="text" name="widget_margin_top" value="0" size="2" class="inputTypeText" />px</td>
|
||||
<td colspan="2" class="tCenter">{$lang->widget_margin_top} <input type="text" name="widget_margin_top" value="0" size="2" class="inputTypeText" />px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->widget_margin_left} <input type="text" name="widget_margin_left" value="0" size="2" class="inputTypeText"/>px</td>
|
||||
<td align="right">{$lang->widget_margin_right} <input type="text" name="widget_margin_right" value="0" size="2" class="inputTypeText" />px</td>
|
||||
<td class="tCenter">{$lang->widget_margin_left} <input type="text" name="widget_margin_left" value="0" size="2" class="inputTypeText"/>px</td>
|
||||
<td class="tCenter">{$lang->widget_margin_right} <input type="text" name="widget_margin_right" value="0" size="2" class="inputTypeText" />px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">{$lang->widget_margin_bottom} <input type="text" name="widget_margin_bottom" value="0" size="2" class="inputTypeText" />px</td>
|
||||
<td colspan="2" class="tCenter">{$lang->widget_margin_bottom} <input type="text" name="widget_margin_bottom" value="0" size="2" class="inputTypeText" />px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>{$lang->about_widget_margin}</p>
|
||||
|
|
@ -110,7 +104,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="0" class="tableType5 gap1">
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<col width="100" />
|
||||
<col />
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
// widget 에서 사용할 cache디렉토리 생성
|
||||
FileHandler::makeDir('./files/cache/widget');
|
||||
FileHandler::makeDir('./files/cache/widget_cache');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue