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:
ngleader 2009-03-11 02:28:02 +00:00
parent 12b3d32430
commit 5fc3ef700e
3 changed files with 11 additions and 2 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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);
// 작성자 정보