<{if $xoops_isadmin}>

## 基本設定
佈景種類 | $theme_kind | <{$theme_kind}>
佈景編號 | $theme_id | <{$theme_id}>
佈景名稱 | $theme_name | <{$theme_name}>
載入選單種類 | $menu_var_kind | <{$menu_var_kind}>
開除錯 | $debug | <{$debug}>
顯示搜尋工具 | $use_search | <{$use_search}>
內容區設定 | $content_zone | <{$content_zone}>
左區域設定 | $leftBlocks | <{$leftBlocks}>
中區域設定 | $centerBlocks | <{$centerBlocks}>
右區域設定 | $rightBlocks | <{$rightBlocks}>
第二左區域設定 | $leftBlocks2 | <{$leftBlocks2}>
第二右區域設定 | $rightBlocks2 | <{$rightBlocks2}>
樣板設定檔 | $xoops_themecss | <{$xoops_themecss}>
## Tad Themes 偏好設定
是否在工具列顯示網站標題文字 | $auto_mainmenu | <{$auto_mainmenu}>
顯示主選單下拉選單 | $show_sitename | <{$show_sitename}>
## Tad Tools 偏好設定
導覽列的登入呈現方式 | $openid_login | <{$openid_login}>
登入選單一排要呈現幾個OpenID圖示 | $openid_logo | <{$openid_logo}>
是否釘選住導覽列？ | $use_pin | <{$use_pin}>
## 其他設定
左邊區塊數 | $left_count | <{$left_count}>
右邊區塊數 | $right_count | <{$right_count}>
選單是否有用到 popup 模式 | $have_popup | <{$have_popup}>
popup 語法 | $tad_themes_popup_code | <{$tad_themes_popup_code}>
## 網頁布局設定
版面類型 | $theme_type | <{$theme_type}>
版面寬度 | $theme_width | <{$theme_width}>
文字大小 | $font_size | <{$font_size}>
內容區顏色 | $base_color | <{$base_color}>
左區塊顏色 | $lb_color | <{$lb_color}>
中區塊顏色 | $cb_color | <{$cb_color}>
右區塊顏色 | $rb_color | <{$rb_color}>
左區塊寬度 | $lb_width | <{$lb_width}>
中區塊寬度 | $center_width | <{$center_width}>
右區塊寬度 | $rb_width | <{$rb_width}>
中左區塊寬度 | $clb_width | <{$clb_width}>
中右區塊寬度 | $crb_width | <{$crb_width}>
上方邊界 | $margin_top | <{$margin_top}>
下方邊界 | $margin_bottom | <{$margin_bottom}>
文字顏色 | $font_color | <{$font_color}>
連結顏色 | $link_color | <{$link_color}>
滑鼠移到連結顏色 | $hover_color | <{$hover_color}>
## 背景圖設定
預設背景圖 | $bg_img | <{$bg_img}>
背景顏色 | $bg_color | <{$bg_color}>
背景重複 | $bg_repeat | <{$bg_repeat}>
背景模式 | $bg_attachment | <{$bg_attachment}>
背景位置 | $bg_position | <{$bg_position}>
## 滑動圖片設定
滑動圖片寬度 | $slide_width | <{$slide_width}>
滑動圖片高度 | $slide_height | <{$slide_height}>
是否可上傳滑動圖片 | $use_slide | <{$use_slide}>
## logo 圖設定
logo 圖 | $logo_img | <{$logo_img}>
logo 圖位置 | $logo_position | <{$logo_position}>
logo 圖上方位置 | $logo_top | <{$logo_top}>
logo 圖右方位置 | $logo_right | <{$auto_mainlogo_rightmenu}>
logo 圖下方位置 | $logo_bottom | <{$logo_bottom}>
logo 圖左方位置 | $logo_left | <{$logo_left}>
Logo 圖位置 | $logo_place | <{$logo_place}>
<{foreach from=$positions item=bt}>
## <{$bt.block_position}>區塊標題設定
區塊標題列背景重複 | $<{$bt.block_position}>.bt_bg_repeat | <{$bt.bt_bg_repeat}>
區塊標題列背景圖 | $<{$bt.block_position}>.bt_bg_img | <{$bt.bt_bg_img}>
區塊標題文字縮排 | $<{$bt.block_position}>.bt_text_padding | <{$bt.bt_text_padding}>
區塊標題文字大小 | $<{$bt.block_position}>.bt_text_size | <{$bt.bt_text_size}>
區塊標題列文字顏色 | $<{$bt.block_position}>.bt_text | <{$bt.bt_text}>
區塊標題列背景顏色 | $<{$bt.block_position}>.bt_bg_color | <{$bt.bt_bg_color}>
區塊標題工具按鈕 | $<{$bt.block_position}>.block_config | <{$bt.block_config}>
區塊標題圓角設定 | $<{$bt.block_position}>.bt_radius | <{$bt.bt_radius}>
區塊整體樣式手動設定 | $<{$bt.block_position}>.block_style | <{$bt.block_style}>
區塊標題區樣式手動設定 | $<{$bt.block_position}>.block_title_style | <{$bt.block_title_style}>
區塊內容區樣式手動設定 | $<{$bt.block_position}>.block_content_style | <{$bt.block_content_style}>
<{/foreach}>
## 導覽列設定
導覽列位置 | $navbar_pos | <{$navbar_pos}>
導覽列漸層顏色(top) | $navbar_bg_top | <{$navbar_bg_top}>
導覽列漸層顏色(bottom) | $navbar_bg_bottom | <{$navbar_bg_bottom}>
導覽列連結區塊底色 | $navbar_hover | <{$navbar_hover}>
導覽列文字顏色 | $navbar_color | <{$navbar_color}>
導覽列文字移過顏色 | $navbar_color_hover | <{$navbar_color_hover}>
導覽列圖示顏色 | $navbar_icon | <{$navbar_icon}>
導覽列背景圖 | $navbar_img | <{$navbar_img}>
## 導覽列 logo 圖設定
導覽列圖示(舊) | $navbar_logo_img | <{$navbar_logo_img}>
導覽列 logo 圖 | $logo_img | <{$logo_img}>
## 自訂選單 $menu_var
<{foreach from=$menu_var item=m}>
<{$m.title}> | $menu_var[<{$m.id}>] | $menu_var[<{$m.id}>]['id'] = <{$m.id}>; $menu_var[<{$m.id}>]['title'] = "<{$m.title}>"; $menu_var[<{$m.id}>]['url'] = "<{$m.url}>"; $menu_var[<{$m.id}>]['target'] = "<{$m.target}>"; $menu_var[<{$m.id}>]['icon'] = "<{$m.icon}>"; $menu_var[<{$m.id}>]['submenu'] = "<{$m.submenu}>";
<{if $m.submenu}> <{foreach from=$m.submenu item=m2}>
<{$m2.title}> | $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>] | $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['id'] = <{$m2.id}>; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['title'] = "<{$m2.title}>"; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['url'] = "<{$m2.url}>"; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['target'] = "<{$m2.target}>"; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['icon'] = "<{$m2.icon}>"; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['submenu'] = "<{$m2.submenu}>";
<{if $m2.submenu}> <{foreach from=$m2.submenu item=m3}>
<{$m3.title}> | $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['submenu'][<{$m3.id}>] | $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['submenu'][<{$m3.id}>]['id'] = <{$m3.id}>; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['submenu'][<{$m3.id}>]['title'] = "<{$m3.title}>"; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['submenu'][<{$m3.id}>]['url'] = "<{$m3.url}>"; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['submenu'][<{$m3.id}>]['target'] = "<{$m3.target}>"; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['submenu'][<{$m3.id}>]['icon'] = "<{$m3.icon}>"; $menu_var[<{$m.id}>]['submenu'][<{$m2.id}>]['submenu'][<{$m3.id}>]['submenu'] = "<{$m3.submenu}>";
<{/foreach}> <{/if}> <{/foreach}> <{/if}> <{/foreach}>
## 滑動圖文 $slider_var
<{foreach from=$slider_var item=slide}>
| $slider_var[<{$slide.files_sn}>] | $slider_var[<{$slide.files_sn}>]['files_sn'] = <{$slide.files_sn}>; $slider_var[<{$slide.files_sn}>]['sort'] = <{$slide.sort}>; $slider_var[<{$slide.files_sn}>]['file_name'] = "<{$slide.file_name}>"; $slider_var[<{$slide.files_sn}>]['description'] = "<{$slide.description}>"; $slider_var[<{$slide.files_sn}>]['text_description'] = "<{$slide.text_description}>"; $slider_var[<{$slide.files_sn}>]['original_filename'] = "<{$slide.original_filename}>"; $slider_var[<{$slide.files_sn}>]['sub_dir'] = "<{$slide.sub_dir}>"; $slider_var[<{$slide.files_sn}>]['file_url'] = "<{$slide.file_url}>"; $slider_var[<{$slide.files_sn}>]['file_thumb_url'] = "<{$slide.file_thumb_url}>"; $slider_var[<{$slide.files_sn}>]['slide_url'] = "<{$slide.slide_url}>";
<{/foreach}> <{php}> /****佈景額外設定****/ global $xoopsConfig,$xoopsDB; $theme_name=$xoopsConfig['theme_set']; if(file_exists(XOOPS_ROOT_PATH."/themes/{$theme_name}/config2.php")){ include_once XOOPS_ROOT_PATH."/themes/{$theme_name}/language/{$xoopsConfig['language']}/main.php"; echo "
## 佈景額外設定
"; $sql="select `theme_id` from ".$xoopsDB->prefix("tad_themes")." where `theme_name`='{$theme_name}'"; $result=$xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()."
".$sql); list($theme_id)=$xoopsDB->fetchRow($result); $sql="select `name`, `type`, `value` from ".$xoopsDB->prefix("tad_themes_config2")." where `theme_id`='{$theme_id}'"; $config2=""; $result=$xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()."
".$sql); while(list($name,$type,$value)=$xoopsDB->fetchRow($result)){ $config2[$name]=$value; } require XOOPS_ROOT_PATH."/themes/{$theme_name}/config2.php"; foreach($theme_config as $k=>$config){ $name=$config['name']; $value=is_null($config2[$name])?$config['default']:$config2[$name]; if($config['type']=="array"){ $value_arr=json_decode($value,true); $value=""; foreach($value_arr as $i=>$items){ if(is_array($items)){ foreach($items as $key=>$val){ $val=str_replace("{XOOPS_URL}",XOOPS_URL,$val); $value.="
\${$name}[$i]['$key'] = \"{$val}\";
"; } }else{ $items=str_replace("{XOOPS_URL}",XOOPS_URL,$items); $value.="
\${$name}[$i] = \"{$items}\";
"; } } } echo "
{$config['text']} | \${$name} | {$value}
"; } } <{/php}>

<{/if}>