<?php
add_action('init','of_options');
if (!function_exists('of_options')) {
function of_options(){
// VARIABLES
$themename = get_theme_data(STYLESHEETPATH . '/style.css');
$themename = $themename['Name'];
$shortname = "ecobiz";
// Populate OptionsFramework option in array for use in theme
global $of_options;
$of_options = get_option('of_options');
$GLOBALS['template_path'] = OF_DIRECTORY;
//Access the WordPress Categories via an Array
$of_categories = array();
$of_categories_obj = get_categories('hide_empty=0');
foreach ($of_categories_obj as $of_cat) {
$of_categories[$of_cat->cat_ID] = $of_cat->cat_name;
}
//$categories_tmp = array_unshift($of_categories, "Select a category:");
$of_product_categories = array();
$product_categories = get_categories('taxonomy=product_category&orderby=ID&title_li=&hide_empty=0');
foreach ($product_categories as $product_category) {
$of_product_categories[$product_category->cat_ID] = $product_category->cat_name;
}
//Access the WordPress Pages via an Array
$of_pages = array();
$of_pages_obj = get_pages('parent=0');
foreach ($of_pages_obj as $of_page) {
$of_pages[$of_page->ID] = $of_page->post_title;
}
//$of_pages_tmp = array_unshift($of_pages, "Select a page:");
// Image Alignment radio box
$options_thumb_align = array("alignleft" => "Left","alignright" => "Right","aligncenter" => "Center");
// Image Links to Options
$options_image_link_to = array("image" => "The Image","post" => "The Post");
//Testing
$options_select = array("one","two","three","four","five");
$options_radio = array("one" => "One","two" => "Two","three" => "Three","four" => "Four","five" => "Five");
//Stylesheets Reader
$alt_stylesheet_path = OF_FILEPATH . '/styles/';
$alt_stylesheets = array();
if ( is_dir($alt_stylesheet_path) ) {
if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) {
while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) {
if(stristr($alt_stylesheet_file, ".css") !== false) {
$alt_stylesheets[] = $alt_stylesheet_file;
}
}
}
}
/* Get Cufon fonts into a drop-down list */
$cufonts = array();
if(is_dir(TEMPLATEPATH . "/js/fonts/")) {
if($open_dirs = opendir(TEMPLATEPATH . "/js/fonts")) {
while(($cufontfonts = readdir($open_dirs)) !== false) {
if(stristr($cufontfonts, ".js") !== false) {
$cufonts[] = $cufontfonts;
}
}
}
}
$cufonts_dropdown = $cufonts;
//More Options
$uploads_arr = wp_upload_dir();
$all_uploads_path = $uploads_arr['path'];
$all_uploads = get_option('of_uploads');
$other_entries = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19");
$body_repeat = array("no-repeat","repeat-x","repeat-y","repeat");
$body_pos = array("top left","top center","top right","center left","center center","center right","bottom left","bottom center","bottom right");
$slide_effects = array("sliceDown","sliceDownLeft","sliceUp","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","random","slideInRight","slideInLeft","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");
// Set the Options Array
$options = array();
$options[] = array( "name" => "General Settings",
"icon" => "general",
"type" => "heading");
$options[] = array( "type" => "info",
"std" => "General settings for your site that will be used in general pages");
$options[] = array( "name" => "Custom Main Logo",
"desc" => "Upload a logo for your theme, or specify the image address of your online logo. (http://yoursite.com/logo.png)",
"id" => $shortname."_logo",
"std" => "",
"type" => "upload");
$options[] = array( "name" => "Custom Footer Logo",
"desc" => "Upload a logo for your theme, or specify the image address of your online logo. (http://yoursite.com/logo.png)",
"id" => $shortname."_footerlogo",
"std" => "",
"type" => "upload");
$options[] = array( "name" => "Custom Favicon",
"desc" => "Upload a 16px x 16px Png/Gif image that will represent your website's favicon.",
"id" => $shortname."_custom_favicon",
"std" => "",
"type" => "upload");
$options[] = array( "name" => "Tracking Code",
"desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.",
"id" => $shortname."_google_analytics",
"std" => "",
"type" => "textarea");
$options[] = array( "name" => "404 Text",
"desc" => "Enter your 404 (Page Not Found) Text here.",
"id" => $shortname."_404_text",
"std" => "",
"type" => "textarea");
$options[] = array( "name" => "Footer Text",
"desc" => "Enter your site copyright here.",
"id" => $shortname."_footer_text",
"std" => "",
"type" => "textarea");
$options[] = array( "name" => "Pages & Categories",
"icon" => "page_cat",
"type" => "heading");
$options[] = array( "name" => "Your About page",
"desc" => "Select your about page.",
"id" => $shortname."_about_page",
"std" => "",
"type" => "select",
"options" => $of_pages);
$options[] = array( "name" => "Your Services page",
"desc" => "Select your services page.",
"id" => $shortname."_services_page",
"std" => "",
"type" => "select",
"options" => $of_pages);
$options[] = array( "name" => "Your Testimonial Category",
"desc" => "Select your Testimonial category.",
"id" => $shortname."_testimonial_cat",
"std" => "",
"type" => "select",
"options" => $of_categories);
$options[] = array( "name" => "Your Team Category",
"desc" => "Select your Team category.",
"id" => $shortname."_team_cat",
"std" => "",
"type" => "select",
"options" => $of_categories);
$options[] = array( "name" => "Enable comment in pages?",
"desc" => "Please uncheck this option if you want to include comment section in your pages.",
"id" => $shortname."_enable_comment",
"std" => "true",
"type" => "checkbox");
$options[] = array( "name" => "Homepage Settings",
"icon" => "homepage",
"type" => "heading");
$options[] = array( "type" => "info",
"std" => "4 columns Site features for homepage");
$options[] = array( "name" => "Title for Homepage features box #1",
"desc" => "Enter your title for homepage features box #1",
"id" => $shortname."_featuresbox_title1",
"std" => "",
"type" => "text");
$options[] = array( "name" => "Custom URL for Homepage features box #1",
"desc" => "Enter your custom URL for homepage features box #1",
"id" => $shortname."_featuresbox_desturl1",
"std" => "",
"type" => "text");
$options[] = array( "name" => "Icon for Homepage features box #1",
"desc" => "Enter your icon url for homepage features box #1, recommended size 32x32px",
"id" => $shortname."_featuresbox_image1",
"std" => "",
"type" => "upload");
$options[] = array( "name" => "Short Description for Homepage features box #1",
"desc" => "Enter your brief short description for homepage features box #1",
"id" => $shortname."_featuresbox_desc1",
"std" => "",
"type" => "textarea");
$options[] = array( "name" => "Title for Homepage features box #2",
"desc" => "Enter your title for homepage features box #2",
"id" => $shortname."_featuresbox_title2",
"std" => "",
"type" => "text");
$options[] = array( "name" => "Custom URL for Homepage features box #2",
"desc" => "Enter your custom URL for homepage features box #2",
没有合适的资源?快使用搜索试试~ 我知道了~
Wordpress ecobiz主题,淘宝花钱买的
共354个文件
png:202个
php:47个
jpg:41个
4星 · 超过85%的资源 需积分: 9 29 下载量 48 浏览量
2012-04-08
09:10:21
上传
评论 1
收藏 6.67MB RAR 举报
温馨提示
Wordpress ecobiz主题,淘宝花钱买的 Wordpress ecobiz外贸企业主题
资源推荐
资源详情
资源评论
收起资源包目录
Wordpress ecobiz主题,淘宝花钱买的 (354个子文件)
style.css 34KB
prettyPhoto.css 19KB
admin-style.css 10KB
colorpicker.css 3KB
nivo-slider.css 3KB
jqueryslidemenu.css 2KB
kwicks.css 2KB
orange.css 1KB
red.css 1KB
brown.css 1KB
dark.css 1KB
blue.css 1KB
reset.css 1014B
grid.css 677B
Thumbs.db 10KB
Thumbs.db 6KB
Thumbs.db 6KB
.DS_Store 6KB
loading-pf.gif 9KB
loader.gif 6KB
loading.gif 5KB
pdf.gif 3KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
loader.gif 2KB
loading-bottom.gif 1KB
tab-gradient.gif 1KB
2.gif 282B
4.gif 238B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
default_thumbnail.gif 227B
10.gif 214B
30.gif 209B
colorpicker_indic.gif 86B
colorpicker_select.gif 78B
pre_bg.gif 67B
blank.gif 45B
favicon.ico 15KB
favicon.ico 1KB
bg2.jpg 1.11MB
bg3.jpg 822KB
bg1.jpg 477KB
page-heading2.jpg 227KB
page-heading1.jpg 179KB
boximg4.jpg 170KB
bgmenu.jpg 170KB
bgheader.jpg 169KB
red.jpg 169KB
orange.jpg 167KB
green.jpg 167KB
brown.jpg 167KB
blue.jpg 167KB
boximg1.jpg 166KB
dark.jpg 166KB
bgfeatures.jpg 159KB
footer-divider.jpg 157KB
page-heading3.jpg 150KB
page-heading4.jpg 63KB
page-heading5.jpg 59KB
service-img2.jpg 25KB
bg2.jpg 24KB
service-img5.jpg 22KB
Untitled-1.jpg 21KB
boximg2.jpg 21KB
service-img6.jpg 20KB
bg3.jpg 20KB
service-img3.jpg 19KB
nobg.jpg 19KB
people3.jpg 18KB
bg1.jpg 18KB
people2.jpg 18KB
service-img4.jpg 17KB
service-img1.jpg 17KB
image1.jpg 16KB
boximg3.jpg 16KB
people1.jpg 16KB
bgtab.jpg 11KB
bg-dropdown.jpg 11KB
paging.jpg 11KB
avatar.jpg 638B
GeosansLight_500.font.js 84KB
jquery.js 77KB
TitilliumText25L_300.font.js 64KB
cufon.js 39KB
jquery.prettyPhoto.js 23KB
ColaborateLight.js 18KB
colorpicker.js 16KB
jquery.nivo.slider.pack.js 16KB
ajaxupload.js 15KB
jquery.easing.1.3.js 8KB
jquery.maskedinput-1.2.2.js 7KB
jquery.kwicks.min.js 4KB
shortcodes.js 3KB
jquery.twitter.js 3KB
functions.js 3KB
共 354 条
- 1
- 2
- 3
- 4
资源评论
- rockychina2014-07-27很不错,中文英文倒是没区别,直接到php文件里手动改即可。 支持的插件和首页底部小挂件很好!
- bzh3839656292013-03-19淘宝上怎么买英文的啊?不是汉化的吗?
踏实远行
- 粉丝: 0
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功