mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@321 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b277fe9d7f
commit
6e848cb30f
3 changed files with 26 additions and 4 deletions
|
|
@ -26,12 +26,12 @@
|
||||||
<name xml:lang="ko">컬러셋</name>
|
<name xml:lang="ko">컬러셋</name>
|
||||||
<name xml:lang="en">colorset</name>
|
<name xml:lang="en">colorset</name>
|
||||||
<type>select</type>
|
<type>select</type>
|
||||||
<list>
|
<options>
|
||||||
<value>red</value>
|
<value>red</value>
|
||||||
<value>blue</value>
|
<value>blue</value>
|
||||||
<value>green</value>
|
<value>green</value>
|
||||||
<value>rightred</value>
|
<value>rightred</value>
|
||||||
</list>
|
</options>
|
||||||
</var>
|
</var>
|
||||||
</extra_vars>
|
</extra_vars>
|
||||||
<menus>
|
<menus>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<!--#include("./common/tpl/common_header.html")-->
|
<!--#include("./common/tpl/common_header.html")-->
|
||||||
|
|
||||||
<div id="admin_title">
|
<div id="admin_title">
|
||||||
<a href="./?module=admin">zeroboard5</a>
|
<a href="./?module=admin">zeroboard XE</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="admin_sub_menu">
|
<div id="admin_sub_menu">
|
||||||
|
|
|
||||||
|
|
@ -121,13 +121,35 @@
|
||||||
$buff .= sprintf('$layout_info->author->description = "%s";', $xml_obj->author->description->body);
|
$buff .= sprintf('$layout_info->author->description = "%s";', $xml_obj->author->description->body);
|
||||||
|
|
||||||
// 추가 변수 (템플릿에서 사용할 제작자 정의 변수)
|
// 추가 변수 (템플릿에서 사용할 제작자 정의 변수)
|
||||||
|
if(!is_array($xml_obj->extra_vars->var)) $extra_vars[] = $xml_obj->extra_vars->var;
|
||||||
|
else $extra_vars = $xml_obj->extra_vars->var;
|
||||||
|
$extra_var_count = count($extra_vars);
|
||||||
|
$buff .= sprintf('$layout_info->extra_var_count = "%s";', $extra_var_count);
|
||||||
|
for($i=0;$i<$extra_var_count;$i++) {
|
||||||
|
unset($var);
|
||||||
|
$var = $extra_vars[$i];
|
||||||
|
|
||||||
|
$buff .= sprintf('$layout_info->extra_var->{%s}->name = "%s";', $var->attrs->id, $var->name->body);
|
||||||
|
$buff .= sprintf('$layout_info->extra_var->{%s}->type = "%s";', $var->attrs->id, $var->type->body);
|
||||||
|
$buff .= sprintf('$layout_info->extra_var->{%s}->type = "%s";', $var->attrs->id, $var->type->body);
|
||||||
|
|
||||||
|
$options = $var->options->value;
|
||||||
|
if(!$options) continue;
|
||||||
|
if(!is_array($options)) $options = array($options);
|
||||||
|
$options_count = count($options);
|
||||||
|
for($i=0;$i<$options_count;$i++) {
|
||||||
|
$buff .= sprintf('$layout_info->extra_var->{%s}->options[] = "%s";', $var->attrs->id, $options[$i]->body);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 메뉴
|
// 메뉴
|
||||||
if(!is_array($xml_obj->menus->menu)) $menus[] = $xml_obj->menus->menu;
|
if(!is_array($xml_obj->menus->menu)) $menus[] = $xml_obj->menus->menu;
|
||||||
else $menus = $xml_obj->menus->menu;
|
else $menus = $xml_obj->menus->menu;
|
||||||
|
|
||||||
$menu_count = count($menus);
|
$menu_count = count($menus);
|
||||||
$buff .= sprintf('$layout_info->menu_count = "%s";', count($menus));
|
$buff .= sprintf('$layout_info->menu_count = "%s";', $menu_count);
|
||||||
for($i=0;$i<$menu_count;$i++) {
|
for($i=0;$i<$menu_count;$i++) {
|
||||||
$id = $menus[$i]->attrs->id;
|
$id = $menus[$i]->attrs->id;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue