0 && isset($_POST['bluebuzz_settings']) ) { $options = array ( 'twitter_link', 'facebook_link','youtube_link' ); foreach ( $options as $opt ) { delete_option ( 'bluebuzz_'.$opt, $_POST[$opt] ); add_option ( 'bluebuzz_'.$opt, $_POST[$opt] ); } } add_theme_page(__('Bluebuzz Options'), __('Bluebuzz Options'), 'edit_themes', basename(__FILE__), 'bluebuzz_settings'); } function bluebuzz_settings () {?>

BlueBuzz Options Panel

General Settings

'Widgets', 'description'=>'Widgets in this area will be shown on the right-hand side.', 'before_title'=>'

', 'after_title'=>'

', 'before_widget'=>'
', 'after_widget'=>'
')); register_nav_menu('main', 'Main navigation menu'); add_custom_background(); //Check see if the bluebuzz_setup exists if ( !function_exists('bluebuzz_setup') ): //Any theme customisations contained in this function function bluebuzz_setup() { //Define default header image define( 'HEADER_IMAGE', '%s/header/header1.png' ); //Define the width and height of our header image define( 'HEADER_IMAGE_WIDTH', apply_filters( 'bluebuzz_header_image_width', 980 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'bluebuzz_header_image_height', 138 ) ); //Turn off text inside the header image define( 'NO_HEADER_TEXT', true ); //Don't forget this, it adds the functionality to the admin menu add_custom_image_header( '', 'bluebuzz_admin_header_style' ); //Set some custom header images, add as many as you like //%s is a placeholder for your theme directory $customHeaders = array ( //Image 1 'bliss' => array ( 'url' => '%s/header/header1.png', 'thumbnail_url' => '%s/header/thumbnails/header1-thumb.jpg', 'description' => __( 'Bliss', 'bluebuzz' ) ), //Image 2 'clouds' => array ( 'url' => '%s/header/header3.png', 'thumbnail_url' => '%s/header/thumbnails/header3-thumb.jpg', 'description' => __( 'Clouds', 'bluebuzz' ) ), //Image 3 'rapture' => array ( 'url' => '%s/header/header7.png', 'thumbnail_url' => '%s/header/thumbnails/header7-thumb.jpg', 'description' => __( 'Rapture', 'bluebuzz' ) ) ); //Register the images with Wordpress register_default_headers($customHeaders); } endif; if ( ! function_exists( 'bluebuzz_admin_header_style' ) ) : //Function fired and inline styles added to the admin panel //Customise as required function bluebuzz_admin_header_style() { ?>