#468 관련 게시판 스킨 group 태그 지원

r4168 위젯 관리 템플릿 수정에서 잘못 지정된 컬럼 크기 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4178 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mmx900 2008-05-06 01:33:01 +00:00
parent 81b0245721
commit 3c11afddb9
4 changed files with 60 additions and 32 deletions

View file

@ -171,6 +171,7 @@
// skin_info에 extra_vars 값을 지정
if(count($skin_info->extra_vars)) {
foreach($skin_info->extra_vars as $key => $val) {
$group = $val->group;
$name = $val->name;
$type = $val->type;
$value = $module_info->{$name};

View file

@ -59,6 +59,16 @@
</tr>
<!--@foreach($skin_info->extra_vars as $key => $val)-->
<!--@if($val->group && ((!$group) || $group != $val->group))-->
{@$group = $val->group}
</table>
<table cellspacing="0" class="adminTable">
<col width="150" />
<col />
<caption>{$group}</caption>
<!--@end-->
<tr>
<th scope="row">{$val->title}</th>
<td class="left">
@ -110,6 +120,14 @@
</td>
</tr>
<!--@end-->
<!--@if($group)-->
</table>
<table cellspacing="0" class="adminTable">
<col width="150" />
<col />
<!--@end-->
<tr>
<th scope="row" colspan="2" class="button">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>

View file

@ -263,7 +263,13 @@
}
// 스킨에서 사용되는 변수들
$extra_vars = $xml_obj->extra_vars->var;
$extra_var_groups = $xml_obj->extra_vars->group;
if(!$extra_var_groups) $extra_var_groups = $xml_obj->extra_vars;
if(!is_array($extra_var_groups)) $extra_var_groups = array($extra_var_groups);
foreach($extra_var_groups as $group){
$extra_vars = $group->var;
if($extra_vars) {
if(!is_array($extra_vars)) $extra_vars = array($extra_vars);
@ -271,6 +277,7 @@
foreach($extra_vars as $var) {
unset($obj);
$group = $group->title->body;
$name = $var->attrs->name;
$type = $var->attrs->type;
$title = $var->title->body;
@ -289,6 +296,7 @@
$height = $var->attrs->height;
unset($obj);
$obj->group = $group;
$obj->title = $title;
$obj->description = $description;
$obj->name = $name;
@ -300,6 +308,7 @@
$skin_info->extra_vars[] = $obj;
}
}
}
// 메뉴 종류 (레이아웃을 위한 설정)
if($xml_obj->menus->menu) {

View file

@ -53,7 +53,7 @@
{@$group = $var->group}
</table>
<table cellspacing="0" class="adminTable">
<col width="150" />
<col width="100" />
<col width="*" />
<caption>{$group}</caption>
<!--@end-->
@ -104,7 +104,7 @@
<!--@if($group)-->
</table>
<table cellspacing="0" class="adminTable">
<col width="150" />
<col width="100" />
<col width="*" />
<!--@end-->