array('value' =>'Arial','label' => 'Arial (default)'),'1' => array('value' =>'Courier New','label' => 'Courier New'),'2' => array('value' =>'Georgia','label' => 'Georgia'),'3' => array('value' =>'Lucida Grande','label' => 'Lucida Grande'), '4' => array('value' =>'Maven+Pro','label' => 'Maven Pro'),'5' => array('value' =>'Tahoma','label' => 'Tahoma'),'6' => array('value' =>'Times New Roman','label' => 'Times New Roman'),'7' => array('value' =>'Ubuntu','label' => 'Ubuntu'), ); $select_featured_images = array( '0' => array('value' => 'left','label' => 'Left (default)' ),'1' => array('value' => 'center','label' => 'Center'), '2' => array('value' => 'right','label' => 'Right'), ); $shortname = "bu"; $optionlist = array ( array( "id" => $shortname, "type" => "open-tab"), array( "type" => "open"), array( "type" => "close"), array( "type" => "close-tab"), // General array( "id" => $shortname."-tab1", "type" => "open-tab"), array( "type" => "open"), array( "name" => "Logo", "desc" => "Use the image uploader or enter your own URL into the input field to use an image as your logo. To display the site title as text, leave blank.", "id" => $shortname."_logo", "type" => "upload", "std" => ""), array( "name" => "Hide the Social Icons", "desc" => "Check this box to hide the social icons above the sidebar.", "id" => $shortname."_hide_social", "type" => "checkbox", "std" => "false"), array( "name" => "Hide the Search Box", "desc" => "Check this box to hide the search box above the sidebar.", "id" => $shortname."_hide_search", "type" => "checkbox", "std" => "false"), array( "name" => "Disable Breadcrumbs", "desc" => "Check this box to disable breadcrumb links", "id" => $shortname."_disable_breadcrumbs", "type" => "checkbox", "std" => "false"), array( "name" => "Custom Favicon", "desc" => "A favicon is a 16x16 pixel icon that represents your site; paste the URL to a .ico image that you want to use as the image", "id" => $shortname."_favicon", "type" => "upload2", "std" => ""), array( "name" => "Google Analytics Code", "desc" => "You can paste your Google Analytics or other tracking code in this box. This will be automatically be added to the footer.", "id" => $shortname."_ga_code", "type" => "textarea", "std" => ""), array( "type" => "close"), array( "type" => "close-tab"), //Design array( "id" => $shortname."-tab2", "type" => "open-tab"), array( "type" => "open"), array( "name" => "Choose a font:", "desc" => "(Default is Maven Pro)", "id" => $shortname."_font", "type" => "select2", "std" => ""), array( "name" => "Link Color", "desc" => "Use the color picker to select the site link color", "id" => $shortname."_link_color", "type" => "color2", "std" => "false"), array( "type" => "close"), array( "type" => "close-tab"), //Blog array( "id" => $shortname."-tab3", "type" => "open-tab"), array( "type" => "open"), array( "name" => "Post Excerpts", "desc" => "Use the following options to control excerpts.", "id" => $shortname."_excerpts", "type" => "excerpts", "std" => "false"), array( "name" => "Featured Images", "desc" => "Use the following options to control featured image alignment and size.", "id" => $shortname."_featured_images", "type" => "featured", "std" => "false"), array( "name" => "Show Excerpts", "desc" => "Check this box to show post excerpts instead of full-length content.", "id" => $shortname."_show_excerpts", "type" => "checkbox", "std" => "false"), array( "name" => "Hide Post Elements", "desc" => "Use the following checkboxes to hide various post elements.", "id" => $shortname."_hide_post_elements", "type" => "post", "std" => "false"), array( "name" => "Show Facebook Like Button", "desc" => "Check this box to show the Facebook Like Button on blog posts", "id" => $shortname."_show_fb_like", "type" => "checkbox", "std" => "false"), array( "name" => "Show Google +1 button", "desc" => "Check this box to show the Google +1 Button on blog posts", "id" => $shortname."_show_gplus", "type" => "checkbox", "std" => "false"), array( "name" => "Home Description", "desc" => "Enter the META description of your homepage here.", "id" => $shortname."_home_description", "type" => "textarea", "std" => ""), array( "name" => "Home Keywords", "desc" => "Enter the META keywords of your homepage here (separated by commas).", "id" => $shortname."_home_keywords", "type" => "textarea", "std" => ""), array( "name" => "Optional Home Title", "desc" => "Enter an alternative title of your homepage here (default is site tagline).", "id" => "bu_home_title", "type" => "text", "std" => ""), array( "type" => "close"), array( "type" => "close-tab"), // Social array( "id" => $shortname."-tab4", "type" => "open-tab"), array( "type" => "open"), array( "name" => "Facebook URL", "desc" => "Enter your Facebook page URL for the Facebook social icon.", "id" => $shortname."_facebook", "type" => "facebook", "std" => "http://facebook.com"), array( "name" => "Twitter URL", "desc" => "Enter your Twitter URL for Twitter social icon.", "id" => $shortname."_twitter", "type" => "twitter", "std" => "http://twitter.com"), array( "name" => "Google + URL", "desc" => "Enter your Google + URL for the Google + social icon.", "id" => $shortname."_gplus", "type" => "gplus", "std" => "http://plus.google.com"), array( "name" => "LinkedIn URL", "desc" => "Enter your LinkedIn URL for the LinkedIn social icon.", "id" => $shortname."_linkedin", "type" => "linkedin", "std" => "http://linkedin.com"), array( "name" => "YouTube URL", "desc" => "Enter your YouTube URL for the YouTube social icon.", "id" => $shortname."_youtube", "type" => "youtube", "std" => "http://youtube.com"), array( "name" => "Google Maps URL", "desc" => "Enter your Google Maps URL for the Google Maps social icon.", "id" => $shortname."_googlemaps", "type" => "googlemaps", "std" => "http://google.com/maps"), array( "name" => "Email", "desc" => "Enter your contact email address for email social icon.", "id" => $shortname."_email", "type" => "email", "std" => "no@way.com"), array( "name" => "Custom RSS Link", "desc" => "Enter Feedburner URL, or leave blank for default RSS feed.", "id" => $shortname."_rsslink", "type" => "rss", "std" => ""), array( "type" => "close"), array( "type" => "close-tab"), // Business Slider array( "id" => $shortname."-tab5", "type" => "open-tab"), array( "type" => "open"), array( "name" => "Hide Business Slider", "desc" => "Check this box to hide the Feature Slider on the homepage.", "id" => $shortname."_hide_slider", "type" => "checkbox", "std" => "false"), array( "name" => "Show posts from category:", "desc" => "(Default is all - WARNING: do not enter a category that does not exist or slider will not display)", "id" => $shortname."_slider_category", "type" => "select6", "std" => ""), array( "name" => "Number of featured posts:", "desc" => "(Default is 5)", "id" => $shortname."_slider_posts_number", "type" => "text", "std" => ""), array( "name" => "Slider delay time (in milliseconds):", "desc" => "(Default is 3500)", "id" => $shortname."_slider_delay", "type" => "text", "std" => ""), array( "name" => "Hide the navigation:", "desc" => "Check to disable the slider navigation", "id" => $shortname."_slider_navigation", "type" => "checkbox", "std" => "false"), array( "type" => "close"), array( "type" => "close-tab"), // Footer array( "id" => $shortname."-tab6", "type" => "open-tab"), array( "type" => "open"), array( "name" => "Hide the Social Icons", "desc" => "Check this box to hide the social icons in the footer.", "id" => $shortname."_hide_footer_social", "type" => "checkbox", "std" => "false"), array( "name" => "Footer Copyright", "desc" => "Enter Copyright text used on the right side of the footer. It can be HTML (default is your blog title)", "id" => $shortname."_footer_text", "type" => "textarea", "std" => ""), array( "type" => "close"), array( "type" => "close-tab"), ); /** * Create the options page */ function theme_options_do_page() { global $themename, $shortname, $optionlist, $select_font, $select_featured_images; if ( ! isset( $_REQUEST['updated'] ) ) { $_REQUEST['updated'] = false; } if( isset( $_REQUEST['reset'] )) { global $wpdb; $query = "DELETE FROM $wpdb->options WHERE option_name LIKE 'business'"; $wpdb->query($query); die; } ?>





'.$name.' settings saved

'; ?>

'.$name.' settings reset

'; } ?>


Read the General Options Tab FAQ    Read the Design Options Tab FAQ    Read the Social Options Tab FAQ    Read the Blog Options Tab FAQ    Read the Slider Options Tab FAQ   

  
  
> - Show Excerpts

- Excerpt Link Text

- Excerpt Character Length

  
> - Author

> - Categories

> - Date

> - Comments

> - Sharing

> - Tags

  


Define a custom Featured Image size below (default is 100 by 100):

- Height

- Width    Custom Logo


";} echo ""; echo "
" ; echo "
" ; echo "";?>
Upload a logo image to use    Custom Favicon



";} echo ""; echo "
" ; echo "
" ; echo "";?>
Upload a favicon image to use   
  " />    " />

> - Check this box to hide the Facebook icon.    " />

> - Check this box to hide the Twitter icon.    " />

> - Check this box to hide the Google + icon.    " />

> - Check this box to hide the LinkedIn icon.    " />

> - Check this box to hide the YouTube icon.    " />

> - Check this box to hide the Google Maps icon.    " />

> - Check this box to hide the Email icon.    " />

> - Check this box to hide the RSS icon.   
  
/>   

   WARNING THIS RESTORES ALL DEFAULTS

false); $file = wp_handle_upload($_FILES['bu_filename'], $overrides); $input['file'] = $file; } elseif(isset($_POST['bu_filename_text']) && $_POST['bu_filename_text'] != '') { $input['file'] = array('url' => $_POST['bu_filename_text']); } else { $input['file'] = null; } if ($_FILES['bu_favfilename']['name'] != '') { $overrides = array('test_form' => false); $file2 = wp_handle_upload($_FILES['bu_favfilename'], $overrides); $input['file2'] = $file2; } elseif(isset($_POST['bu_favfilename_text']) && $_POST['bu_favfilename_text'] != '') { $input['file2'] = array('url' => $_POST['bu_favfilename_text']); } else { $input['file2'] = null; } return $input; } ?>