mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
r8070 보완 - radio 타입추가
- options 노드에 src 속성에 thumbnail 지정할 수 있도록 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8072 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b9dac8fad5
commit
64e2f2a4c1
2 changed files with 43 additions and 5 deletions
|
|
@ -220,8 +220,21 @@
|
|||
|
||||
if(!is_array($options)) $options = array($options);
|
||||
$options_count = count($options);
|
||||
for($j=0;$j<$options_count;$j++) {
|
||||
$buff .= sprintf('$layout_info->extra_var->%s->options["%s"] = "%s";', $var->attrs->name, $options[$j]->attrs->value, $options[$j]->title->body);
|
||||
$thumbnail_exist = false;
|
||||
for($j=0; $j < $options_count; $j++) {
|
||||
$thumbnail = $options[$j]->attrs->src;
|
||||
if($thumbnail) {
|
||||
$thumbnail = $layout_path.$thumbnail;
|
||||
if(file_exists($thumbnail)) {
|
||||
$buff .= sprintf('$layout_info->extra_var->%s->options["%s"]->thumbnail = "%s";', $var->attrs->name, $options[$j]->attrs->value, $thumbnail);
|
||||
if(!$thumbnail_exist) {
|
||||
$buff .= sprintf('$layout_info->extra_var->%s->thumbnail_exist = true;', $var->attrs->name);
|
||||
$thumbnail_exist = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
$buff .= sprintf('$layout_info->extra_var->%s->options["%s"]->val = "%s";', $var->attrs->name, $options[$j]->attrs->value, $options[$j]->title->body);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue