"On", "off" => "Off");
$home_page_slider = array("on" => "On", "off" => "Off");
$home_page_top_heading = array("on" => "On", "off" => "Off");
$home_page_feature = array("on" => "On", "off" => "Off");
$home_page_blog = array("on" => "On", "off" => "Off");
$testimonial = array("on" => "On", "off" => "Off");
// Background Defaults
$background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
// Pull all the categories into an array
$options_categories = array();
$options_categories_obj = get_categories();
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->cat_name;
}
// Pull all the pages into an array
$options_pages = array();
$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
$options_pages[''] = 'Select a page:';
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}
// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/images/';
$options = array(
array("name" => "General Settings",
"type" => "heading"),
array("name" => "Custom Favicon",
"desc" => "Here you can upload a Favicon for your Website. Specified size is 16px x 16px.",
"id" => "blackwell_favicon",
"type" => "upload"),
array("name" => "Blog Post Read More Text",
"desc" => "Mention the text for blog post read more button",
"id" => "blackwell_read_more_link",
"std" => "",
"type" => "text"),
//Home Page Slider Setting
array("name" => "Home Page Top Settings",
"type" => "heading"),
array("name" => "Home Page Top Image",
"desc" => "The optimal size of the image is 1600px wide x 900px height, but it can be varied as per your requirement.",
"id" => "blackwell_slideimage1",
"std" => "",
"type" => "upload"),
array("name" => "Home Page Top Heading",
"desc" => "Mention the heading for the First slider.",
"id" => "blackwell_sliderheading1",
"std" => "",
"type" => "textarea"),
array("name" => "Link for Home Page Top Image",
"desc" => "Mention the URL for first image.",
"id" => "blackwell_sliderlink1",
"std" => "",
"type" => "text"),
array("name" => "Home Page Top Description",
"desc" => "Mention the Description for home page top area.",
"id" => "blackwell_slider_desc1",
"std" => "",
"type" => "textarea"),
array("name" => "Three Column Feature Setting",
"type" => "heading"),
array("name" => "Home Page Three Column Feature Heading",
"desc" => "Mention the heading for your three column feature area on home page.",
"id" => "blackwell_feature_heading",
"std" => "",
"type" => "textarea"),
array("name" => "Home Page Three Column Feature Description",
"desc" => "Mention the description for your three column feature area on home page.",
"id" => "blackwell_feature_desc",
"std" => "",
"type" => "textarea"),
array("name" => "First Block",
"type" => "saperate",
"class" => "saperator"),
array("name" => "First Font Icon",
"desc" => "Enter the CSS class of the icons you want to use on your first column feature. You can find a list of icon classes here e.g fa-book",
"id" => "blackwell_font_icon1",
"std" => "fa-microphone",
"type" => "text"),
array("name" => "First Feature Heading",
"desc" => "Mention the heading for first column that will showcase your business services.",
"id" => "blackwell_feature_head1",
"std" => "",
"type" => "text"),
array("name" => "First Feature Heading Link",
"desc" => "Mention the URL here to redirect the user to any page you want.",
"id" => "blackwell_feature_link1",
"std" => "",
"type" => "text"),
array("name" => "First Feature Description ",
"desc" => "Write short description for your first heading.",
"id" => "blackwell_feature_desc1",
"std" => "",
"type" => "textarea"),
// 3 Column Feature block 2
array("name" => "Second Block",
"type" => "saperate",
"class" => "saperator"),
array("name" => "Second Icon",
"desc" => "Enter the CSS class of the icons you want to use on your Second column feature. You can find a list of icon classes here e.g fa-book",
"id" => "blackwell_font_icon2",
"std" => "fa-rocket",
"type" => "text"),
array("name" => "Second Feature Heading",
"desc" => "Mention the heading for second column that will showcase your business services.",
"id" => "blackwell_feature_head2",
"std" => "",
"type" => "text"),
array("name" => "Second feature Link",
"desc" => "Mention the URL here to redirect the user to any page you want.",
"id" => "blackwell_feature_link2",
"std" => "",
"type" => "text"),
array("name" => "second Feature Description ",
"desc" => "Write short description for your second heading.",
"id" => "blackwell_feature_desc2",
"std" => "",
"type" => "textarea"),
// 3 Column Feature block 3
array("name" => "Third block",
"type" => "saperate",
"class" => "saperator"),
array("name" => "Third Font Icon",
"desc" => "Enter the CSS class of the icons you want to use on your Third column feature. You can find a list of icon classes here e.g fa-book",
"id" => "blackwell_font_icon3",
"std" => "fa-signal",
"type" => "text"),
array("name" => "Third Feature Heading",
"desc" => "Mention the heading for third column that will showcase your business services.",
"id" => "blackwell_feature_head3",
"std" => "",
"type" => "text"),
array("name" => "Link for Title Third Feature",
"desc" => "Mention the URL here to redirect the user to any page you want.",
"id" => "blackwell_feature_link3",
"std" => "",
"type" => "text"),
array("name" => "Third Feature Description ",
"desc" => "Write short description for your third heading.",
"id" => "blackwell_feature_desc3",
"std" => "",
"type" => "textarea"),
array("name" => "Home Page Blog Setting",
"type" => "heading"),
array("name" => "Home Page Blog Feature Heading",
"desc" => "Mention the heading for your blog feature area on home page.",
"id" => "blackwell_blog_heading",
"std" => "",
"type" => "textarea"),
array("name" => "Home Page Blog Feature Description",
"desc" => "Mention the description for your blog feature area on home page.",
"id" => "blackwell_blog_desc",
"std" => "",
"type" => "textarea"),
//****=============================================================================****//
//****-----------This code is used for creating color styleshteet options----------****//
//****=============================================================================****//
array("name" => "Styling Options",
"type" => "heading"),
array("name" => "Custom CSS",
"desc" => "Quickly add your custom CSS code to your theme by writing the code in this block.",
"id" => "blackwell_customcss",
"std" => "",
"type" => "textarea"));
blackwell_update_option('of_template', $options);
blackwell_update_option('of_themename', $themename);
blackwell_update_option('of_shortname', $shortname);
}
}
?>