Theme design courtesy of Builder Society'; } add_filter('admin_footer_text', 'change_footer_admin'); // Add a Dashboard Widget for Designer Contact Information function buso_add_dashboard_widgets() { wp_add_dashboard_widget('wp_dashboard_widget', 'Theme Details', 'buso_theme_info'); } add_action('wp_dashboard_setup', 'buso_add_dashboard_widgets'); function buso_theme_info() { echo ""; } // Add a Dashboard Widget for Helpful Resources function buso_add_dashboard_widgets2() { add_meta_box('wp_dashboard_widget2', 'Helpful Resources', 'buso_resources', 'dashboard', 'side', 'high'); } add_action('wp_dashboard_setup', 'buso_add_dashboard_widgets2'); function buso_resources() { echo ""; } // Remove replacement "fancy" quotations, etc. added by Wordpress remove_filter ('single_post_title', 'wptexturize'); remove_filter ('bloginfo', 'wptexturize'); remove_filter ('wp_title', 'wptexturize'); remove_filter ('category_description', 'wptexturize'); remove_filter ('list_cats', 'wptexturize'); remove_filter ('comment_author', 'wptexturize'); remove_filter ('comment_text', 'wptexturize'); remove_filter ('the_title', 'wptexturize'); remove_filter ('the_content', 'wptexturize'); remove_filter ('the_excerpt', 'wptexturize'); // Widgetizing Theme function buso_widgets_init() { register_sidebar( array( 'name' => 'Sidebar', 'id' => 'sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Footer - Left', 'id' => 'footer-left', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Footer - Middle', 'id' => 'footer-middle', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Footer - Right', 'id' => 'footer-right', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'buso_widgets_init' ); // Register Wordpress Menu Function function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu', 'buso-lightning' ), 'top-menu' => __( 'Top Menu', 'buso-lightning' ) ) ); } add_action( 'init', 'register_my_menus' ); // Enable WordPress Features (Must Haves) add_theme_support( 'post-thumbnails' ); add_theme_support( 'title-tag' ); add_theme_support( 'custom-header' ); add_theme_support( 'custom-background' ); add_theme_support( 'automatic-feed-links' ); if ( ! isset( $content_width ) ) $content_width = 557; // Set Up 'Read More' Link for Excerpts function new_excerpt_more( $more ) { return ' ' . __('Read More »', 'your-text-domain') . ''; } add_filter( 'excerpt_more', 'new_excerpt_more' ); // Text Domain - Language Issues for Wordpress add_action('after_setup_theme', 'buso_crucial_setup'); function buso_crucial_setup(){ load_theme_textdomain('buso-lightning', get_template_directory() . '/languages'); } // Add Options to the Theme Menu add_action( 'admin_init', 'theme_options_init' ); add_action( 'admin_menu', 'theme_options_add_page' ); function theme_options_init(){ register_setting( 'buso_options', 'buso_theme_options'); } function theme_options_add_page() { add_theme_page( __('Theme Options', 'lightning-theme'), __('Theme Options', 'lightning-theme'), 'edit_theme_options', 'theme_options', 'theme_buso_settings'); } // Create the Theme Options Page function theme_buso_settings() { // Check that the user is allowed to update options if (!current_user_can('manage_options')) { wp_die('You do not have sufficient permissions to access this page.'); } // Define the Variables from Saved Data $use_logo_image = get_option("buso_use_logo_image"); $logo_pic = get_option("buso_logo_pic"); $show_post_image = get_option("buso_show_post_image"); $use_top_menu = get_option("buso_use_top_menu"); ?>

Lightning Theme Options

Logo Instructions

Featured Image Instructions

Your New Settings Have Been Saved


Logo

checked="checked" />


Featured Images

checked="checked" />


Top Menu

checked="checked" />