'', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment'=>'scroll' ); $bread_type = array( 'brimage' => __('Image', 'invert'), 'brcolor' => __('Color', 'invert') ); // pagination $test_pagiarray = array( 1 => __('Yes', 'invert'), 0 => __('No', 'invert') ); //radio_array $radio_array = array( 'true' => __('Show', 'invert'), 'false' => __('Hide', 'invert') ); //radiothird_array $radiothird_array = array( 'true' => __('Show', 'invert'), 'false' => __('Hide', 'invert') ); //radiocta_array $radiocta_array = array( 'true' => __('Show', 'invert'), 'false' => __('Hide', 'invert') ); //fullcontbox_array $fullcontbox_array = array( 'true' => __('Show', 'invert'), 'false' => __('Hide', 'invert') ); //latp_array $latp_array = array( 'true' => __('Show', 'invert'), 'false' => __('Hide', 'invert') ); //clientlogo_array $clientlogo_array = array( 'true' => __('Show', 'invert'), 'false' => __('Hide', 'invert') ); // 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 tags into an array $options_tags = array(); $options_tags_obj = get_tags(); foreach ( $options_tags_obj as $tag ) { $options_tags[$tag->term_id] = $tag->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; } // set pages $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(); //General Settings $options[] = array( 'name' => __('General Settings', 'invert'), 'type' => 'heading'); $options[] = array( 'name' => __('Change logo (full path to logo image size: 120px width and 40px height)', 'invert'), 'desc' => __('This creates a Custom logo that previews the image.', 'invert'), 'id' => $invert_shortname.'_logo_img', 'std' => '', 'type' => 'upload'); $options[] = array( 'name' => __('Logo ALT Text', 'invert'), 'desc' => __('Logo ALT Text field.', 'invert'), 'id' => $invert_shortname.'_logo_alt', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Change favicon', 'invert'), 'desc' => __('This creates a Custom favicon that previews the image.', 'invert'), 'id' => $invert_shortname.'_favicon', 'std' => '', 'type' => 'upload'); $options[] = array( 'name' => __('Choose header background color', 'invert'), 'desc' => __('', 'invert'), 'id' => $invert_shortname.'_headercolorpicker', 'std' => '#ffffff', 'type' => 'color' ); $options[] = array( 'name' => __('Choose Navigation Font Color', 'invert'), 'desc' => __('', 'invert'), 'id' => $invert_shortname.'_navfontcolorpicker', 'std' => '#333333', 'type' => 'color' ); $options[] = array( 'name' => __('Choose Theme Color', 'invert'), 'desc' => __('', 'invert'), 'id' => $invert_shortname.'_colorpicker', 'std' => '#30b7ff', 'type' => 'color' ); $options[] = array( 'name' => __('Show Custom Pagination', 'invert'), 'desc' => __('Show custom pagination on blog page.', 'invert'), 'id' => $invert_shortname.'_show_pagination', 'std' => 'yes', 'type' => 'select', 'class' => 'mini', //mini, tiny, small 'options' => $test_pagiarray); $options[] = array( 'name' => __('Breadcrumb Background Type', 'invert'), 'desc' => __('Default ( image ).', 'invert'), 'id' => $invert_shortname.'_bread_stype', 'std' => 'brimage', 'type' => 'radio', 'options' => $bread_type); $options[] = array( 'name' => __('Choose Breadcrumb Background Color', 'invert'), 'desc' => __('No color selected by default.', 'invert'), 'id' => $invert_shortname.'_bread_color', 'std' => '', 'type' => 'color', 'class'=>'hidden' ); $options[] = array( 'name' => __('Upload Your Breadcrumb Background Image (size: 1600px width and 450px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_bread_image', 'std' => $imagepath.'danbo_green.jpg', 'type' => 'upload', 'class'=>'hidden'); //Bg style $options[] = array( 'name' => __('Custom Background', 'invert'), 'desc' => __('Change the background CSS.', 'invert'), 'id' => $invert_shortname.'_bg_style', 'std' => $background_style, 'type' => 'background' ); //Blog $options[] = array( 'name' => __('Blog page Title', 'invert'), 'type' => 'heading'); //Blog page Title $options[] = array( 'name' => __('Enter Blog page Title:', 'invert'), 'desc' => __('Enter Blog page Title.', 'invert'), 'id' => $invert_shortname.'_blogpage_heading', 'std' => 'Blog', 'type' => 'text'); //Footer $options[] = array( 'name' => __('Footer', 'invert'), 'type' => 'heading'); $options[] = array( 'name' => __('Copyright Text', 'invert'), 'desc' => __('You can use HTML for links etc..', 'invert'), 'id' => $invert_shortname.'_copyright', 'std' => 'Copyright Text', 'type' => 'textarea'); //Front Page Options $options[] = array( 'name' => __('Front Page Options', 'invert'), 'type' => 'heading'); $options[] = array( 'name' => __('Upload Your Front page Image (size: 1583px width and 716px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_frontslider_stype', 'std' => $imagepath.'invert.jpg', 'type' => 'upload'); $options[] = array( 'name' => __('Hide Featured Box1', 'invert'), 'desc' => __('Radio select with default options "hide".', 'invert'), 'id' => $invert_shortname.'_hide_fb1', 'std' => 'true', 'type' => 'radio', 'options' => $radio_array); //Featured Box 1 $options[] = array( 'name' => __('Featured Box 1 Heading:', 'invert'), 'desc' => __('Enter Featured Box 1 Heading.', 'invert'), 'id' => $invert_shortname.'_fb1_first_part_heading', 'std' => 'Business Strategy', 'type' => 'text'); $options[] = array( 'name' => __('Featured Box 1 Image Path (size: 150px width and 150px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_fb1_first_part_image', 'std' => '', 'type' => 'upload'); $options[] = array( 'name' => __('Featured Box 1 Content:', 'invert'), 'desc' => __('Enter Featured Box 1 Content.','invert'), 'id' => $invert_shortname.'_fb1_first_part_content', 'std' => ' Get focused from your target consumers and increase your business with Web portal Design and Development. ', 'type' => 'textarea'); $options[] = array( 'name' => __('Featured Box 1 Link:', 'invert'), 'desc' => __('Enter Box 1 Link.', 'invert'), 'id' => $invert_shortname.'_fb1_first_part_link', 'std' => '#', 'type' => 'text'); //Featured Box 2 $options[] = array( 'name' => __('Featured Box 2 Heading:', 'invert'), 'desc' => __('Enter Featured Box 2 Heading.', 'invert'), 'id' => $invert_shortname.'_fb2_second_part_heading', 'std' => 'Quality Products', 'type' => 'text'); $options[] = array( 'name' => __('Featured Box 2 Image Path (size: 150px width and 150px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_fb2_second_part_image', 'std' => '', 'type' => 'upload'); $options[] = array( 'name' => __('Featured Box 2 Content:', 'invert'), 'desc' => __('Enter Featured Box 2 Content.','invert'), 'id' => $invert_shortname.'_fb2_second_part_content', 'std' => ' Products with the ultimate features and functionality that provide the complete satisfaction to the clients.', 'type' => 'textarea'); $options[] = array( 'name' => __('Featured Box 2 Link:', 'invert'), 'desc' => __('Enter Box 2 Link.', 'invert'), 'id' => $invert_shortname.'_fb2_second_part_link', 'std' => '#', 'type' => 'text'); //Featured Box 3 $options[] = array( 'name' => __('Featured Box 3 Heading:', 'invert'), 'desc' => __('Enter Featured Box 3 Heading.', 'invert'), 'id' => $invert_shortname.'_fb3_third_part_heading', 'std' => 'Best Business Plans', 'type' => 'text'); $options[] = array( 'name' => __('Featured Box 3 Image Path (size: 150px width and 150px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_fb3_third_part_image', 'std' => '', 'type' => 'upload'); $options[] = array( 'name' => __('Featured Box 3 Content:', 'invert'), 'desc' => __('Enter Featured Box 3 Content.','invert'), 'id' => $invert_shortname.'_fb3_third_part_content', 'std' => ' Based on the client requirement, different business plans suits and fulfill your business and cost requirement.', 'type' => 'textarea'); $options[] = array( 'name' => __('Featured Box 3 Link:', 'invert'), 'desc' => __('Enter Box 3 Link.', 'invert'), 'id' => $invert_shortname.'_fb3_third_part_link', 'std' => '#', 'type' => 'text'); //call-to-action-block $options[] = array( 'name' => __('Hide Call to Action Section', 'invert'), 'desc' => __('Radio select with default options "hide".', 'invert'), 'id' => $invert_shortname.'_hide_cta', 'std' => 'true', 'type' => 'radio', 'options' => $radiocta_array); $options[] = array( 'name' => __('Call to Action Box Heading:', 'invert'), 'desc' => __('Enter Call to Action Box Heading.', 'invert'), 'id' => $invert_shortname.'_catoac_heading', 'std' => 'Join The Ultimate And Irreplaceable Experience Now.', 'type' => 'text'); $options[] = array( 'name' => __('Call to Action Box Content:', 'invert'), 'desc' => __('Enter Call to Action Box Content.','invert'), 'id' => $invert_shortname.'_catoac_content', 'std' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.', 'type' => 'textarea'); $options[] = array( 'name' => __('Call to Action Button Text:', 'invert'), 'desc' => __('Enter call to action button text.', 'invert'), 'id' => $invert_shortname.'_catoac_txt', 'std' => 'Sign-Up Now', 'type' => 'text'); $options[] = array( 'name' => __('Call to Action Button Link:', 'invert'), 'desc' => __('Enter call to action button Link.', 'invert'), 'id' => $invert_shortname.'_catoac_link', 'std' => '#', 'type' => 'text'); $options[] = array( 'name' => __('Hide content box with parallax effect', 'invert'), 'desc' => __('Radio select with default options "hide".', 'invert'), 'id' => $invert_shortname.'_hide_fcbp', 'std' => 'true', 'type' => 'radio', 'options' => $fullcontbox_array); $options[] = array( 'name' => __('Upload Your Image for parallax (size: 1600px width and 800px height)', 'invert'), 'desc' => __('This creates a full size uploder that previews the image.', 'invert'), 'id' => $invert_shortname.'_fullparallax_image', 'std' => $imagepath.'PArallax_Vimeo_bg.jpg', 'type' => 'upload'); $options[] = array( 'name' => __('Content box with parallax effect left section:', 'invert'), 'desc' => __('Enter Box Content.','invert'), 'id' => $invert_shortname.'_para_content_left', 'std' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat malesuada urna, non fringilla purus malesuada eget.', 'type' => 'textarea'); $options[] = array( 'name' => __('Content box with parallax effect right section:', 'invert'), 'desc' => __('Enter Box Content.','invert'), 'id' => $invert_shortname.'_para_content_right', 'std' => '', 'type' => 'textarea'); // Client $options[] = array( 'name' => __('Hide Client Logo Section on Front Page', 'invert'), 'desc' => __('Radio select with default options "hide".', 'invert'), 'id' => $invert_shortname.'_hide_clientlogo_areas', 'std' => 'true', 'type' => 'radio', 'options' => $clientlogo_array); $options[] = array( 'name' => __('Client Section Title:', 'invert'), 'desc' => __('Enter Client Section Title.', 'invert'), 'id' => $invert_shortname.'_clientsec_title', 'std' => 'Our Partners', 'type' => 'text'); $options[] = array( 'name' => __('Image 1 Title:', 'invert'), 'desc' => __('Enter Image 1 Title.', 'invert'), 'id' => $invert_shortname.'_img1_title', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Image 1 Icon (size: 232px width and 101px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_img1_icon', 'std' => $imagepath.'Sample_Client_Logo.png', 'type' => 'upload'); $options[] = array( 'name' => __('Image 1 Link:', 'invert'), 'desc' => __('Enter Image 1 Link.', 'invert'), 'id' => $invert_shortname.'_img1_link', 'std' => '#', 'type' => 'text'); $options[] = array( 'name' => __('Image 2 Title:', 'invert'), 'desc' => __('Enter Image 1 Title.', 'invert'), 'id' => $invert_shortname.'_img2_title', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Image 2 Icon (size: 232px width and 101px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_img2_icon', 'std' => $imagepath.'Sample_Client_Logo.png', 'type' => 'upload'); $options[] = array( 'name' => __('Image 2 Link:', 'invert'), 'desc' => __('Enter Image 2 Link.', 'invert'), 'id' => $invert_shortname.'_img2_link', 'std' => '#', 'type' => 'text'); $options[] = array( 'name' => __('Image 3 Title:', 'invert'), 'desc' => __('Enter Image 1 Title.', 'invert'), 'id' => $invert_shortname.'_img3_title', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Image 3 Icon (size: 232px width and 101px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_img3_icon', 'std' => $imagepath.'Sample_Client_Logo.png', 'type' => 'upload'); $options[] = array( 'name' => __('Image 3 Link:', 'invert'), 'desc' => __('Enter Image 3 Link.', 'invert'), 'id' => $invert_shortname.'_img3_link', 'std' => '#', 'type' => 'text'); $options[] = array( 'name' => __('Image 4 Title:', 'invert'), 'desc' => __('Enter Image 1 Title.', 'invert'), 'id' => $invert_shortname.'_img4_title', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Image 4 Icon (size: 232px width and 101px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_img4_icon', 'std' => $imagepath.'Sample_Client_Logo.png', 'type' => 'upload'); $options[] = array( 'name' => __('Image 4 Link:', 'invert'), 'desc' => __('Enter Image 4 Link.', 'invert'), 'id' => $invert_shortname.'_img4_link', 'std' => '#', 'type' => 'text'); $options[] = array( 'name' => __('Image 5 Title:', 'invert'), 'desc' => __('Enter Image 1 Title.', 'invert'), 'id' => $invert_shortname.'_img5_title', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Image 5 Icon (size: 232px width and 101px height)', 'invert'), 'desc' => __('This creates a full size uploader that previews the image.', 'invert'), 'id' => $invert_shortname.'_img5_icon', 'std' => $imagepath.'Sample_Client_Logo.png', 'type' => 'upload'); $options[] = array( 'name' => __('Image 5 Link:', 'invert'), 'desc' => __('Enter Image 5 Link.', 'invert'), 'id' => $invert_shortname.'_img5_link', 'std' => '#', 'type' => 'text'); return $options; } /* * This is an example of how to add custom scripts to the options panel. * This example shows/hides an option when a checkbox is clicked. */ add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts'); function optionsframework_custom_scripts() { ?>