mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
add extra_vars data type 'color'
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5835 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
12b3d32430
commit
5fc3ef700e
3 changed files with 11 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
<!--%load_js_plugin("ui.colorpicker")-->
|
||||
<p class="summary">{nl2br($_caption)}</p>
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
|
|
@ -65,6 +66,9 @@
|
|||
<!--@if($var->type == "text")-->
|
||||
<input type="text" name="{$id}" value="" class="inputTypeText fullWidth" />
|
||||
|
||||
<!--@elseif($var->type == "color")-->
|
||||
<input type="text" name="{$id}" value="" class="inputTypeText color-indicator" />
|
||||
|
||||
<!--@elseif($var->type == "textarea")-->
|
||||
<textarea name="{$id}" class="inputTypeTextArea fullWidth"></textarea>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<!--%import("css/widget.css")-->
|
||||
<!--%import("../../admin/tpl/css/admin.css")-->
|
||||
<!--%load_js_plugin("filebox")-->
|
||||
|
||||
<!--%load_js_plugin("ui.colorpicker")-->
|
||||
|
||||
<script type="text/javascript">
|
||||
doAddWindowLoadEventLoader(getWidgetVars);
|
||||
|
|
@ -69,6 +69,10 @@
|
|||
<!--@if($var->type == "text")-->
|
||||
<input type="text" name="{$id}" value="" class="inputTypeText w400" />
|
||||
|
||||
<!--@elseif($var->type == "color")-->
|
||||
|
||||
<input type="text" name="{$id}" value="" class="inputTypeText color-indicator" />
|
||||
|
||||
<!--@elseif($var->type == "textarea")-->
|
||||
<textarea name="{$id}" class="inputTypeTextArea w400"></textarea>
|
||||
|
||||
|
|
|
|||
|
|
@ -301,7 +301,8 @@
|
|||
$buff .= sprintf('$widgetStyle_info->license_link = "%s";', $xml_obj->license->attrs->link);
|
||||
|
||||
// preview
|
||||
$preview_file = sprintf("%spreview.jpg", $widgetStyle_path);
|
||||
if(!$xml_obj->preview->body) $xml_obj->preview->body = 'preview.jpg';
|
||||
$preview_file = sprintf("%s%s", $widgetStyle_path,$xml_obj->preview->body);
|
||||
if(file_exists($preview_file)) $buff .= sprintf('$widgetStyle_info->preview = "%s";', $preview_file);
|
||||
|
||||
// 작성자 정보
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue