:::

9-3 themes/eElectronics/config2.php

<?php
$i                           = 0;
$theme_config[$i]['name']    = "show_var";
$theme_config[$i]['text']    = TF_SHOW_VAR;
$theme_config[$i]['desc']    = TF_SHOW_VAR_DESC;
$theme_config[$i]['type']    = "yesno";
$theme_config[$i]['default'] = "0";

//字型設定
$i++;
$theme_config[$i]['name']    = "font_family";
$theme_config[$i]['text']    = TF_FONT_FAMILY;
$theme_config[$i]['desc']    = TF_FONT_FAMILY_DESC;
$theme_config[$i]['type']    = "text";
$theme_config[$i]['default'] = constant('TF_FONT_FAMILY_DEFAULT');

//頁尾文字顏色
$i++;
$theme_config[$i]['name']    = "footer_color";
$theme_config[$i]['text']    = '頁尾文字顏色';
$theme_config[$i]['desc']    = '頁尾文字顏色';
$theme_config[$i]['type']    = "color";
$theme_config[$i]['default'] = "#ffffff";

//頁尾底色
$i++;
$theme_config[$i]['name']    = "footer_bgcolor";
$theme_config[$i]['text']    = TF_FOOTER_BGCOLOR;
$theme_config[$i]['desc']    = TF_FOOTER_BGCOLOR_DESC;
$theme_config[$i]['type']    = "color";
$theme_config[$i]['default'] = "#717959";

//頁尾底圖
$i++;
$theme_config[$i]['name']    = "footer_img";
$theme_config[$i]['text']    = TF_FOOTER_IMG;
$theme_config[$i]['desc']    = TF_FOOTER_IMG_DESC;
$theme_config[$i]['type']    = "file";
$theme_config[$i]['default'] = XOOPS_URL . "/themes/" . basename(__DIR__) . "/images/foot.jpg";

//頁尾內容樣式設定
$i++;
$theme_config[$i]['name']    = "footer_style";
$theme_config[$i]['text']    = TF_FOOTER_STYLE;
$theme_config[$i]['desc']    = TF_FOOTER_STYLE_DESC;
$theme_config[$i]['type']    = "textarea";
$theme_config[$i]['default'] = "line-height:180%;text-align:center;";

//頂頭選單陣列
$i++;
$theme_config[$i]['name']    = "mainlink";
$theme_config[$i]['text']    = '首頁綠色區塊的連結設定';
$theme_config[$i]['desc']    = '首頁綠色區塊的連結設定';
$theme_config[$i]['type']    = "array";
$theme_config[$i]['default'] = '[
{"name":"最新消息","url":"/modules/tadnews/","icon":"fa-newspaper-o"},
{"name":"電子相簿","url":"/modules/tadgallery/","icon":"fa-picture-o"},
{"name":"檔案下載","url":"/modules/tad_uploader/","icon":"fa-download "},
{"name":"聯絡我們","url":"/modules/ugm_contact_us/","icon":"fa-phone"}
]';

 


:::

書籍目錄

展開 | 闔起

線上使用者

37人線上 (7人在瀏覽線上書籍)

會員: 0

訪客: 37

更多…