tag. The * default is 1170 to handle full-width page templates. If you will ALWAYS display * the sidebar, can set to 600 for better performance. * * embed_video_height - Leave empty to automatically set at a 16:9 ratio to the width * * post_formats - Array of WordPress extra post formats. i.e. aside, gallery, link, image, * quote, status, video, audio, chat. * * touch_support - Whether to load touch support for carousels (sliders) * * fontawesome - Whether to load font-awesome font set or not * * bootstrap_gradients - Whether to load Bootstrap "theme" CSS for gradients * * navbar_classes - One or more of navbar-default, navbar-inverse, navbar-fixed-top, etc. * * custom_header_location - If 'header', displays the custom header above the navbar. If * 'content-header', displays it below the navbar in place of the colored content- * header section. * * image_keyboard_nav - Whether to load javascript for using the keyboard to navigate image attachment pages * * sample_widgets - Whether to display sample widgets in the footer and page-bottom widet areas. * * sample_footer_menu - Whether to display sample footer menu with Top and Home links * * testimonials - Whether to activate testimonials custom post type (Jetpack plugin must * be active for this to do anything. */ $defaults = array( 'background_color' => 'f2f2f2', 'content_width' => 1170, // used for full-width images 'embed_video_width' => 1170, // full-width videos on full-width pages 'embed_video_height' => null, // i.e. calculate it automatically 'post_formats' => null, //'post_formats' => array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat' ), 'touch_support' => true, 'fontawesome' => true, 'bootstrap_gradients' => false, 'navbar_classes' => 'navbar-default navbar-static-top', 'custom_header_location' => 'header', //'custom_header_location' => 'content-header', 'site_logo' => false, 'image_keyboard_nav' => true, 'sample_widgets' => true, 'sample_footer_menu' => true, 'testimonials' => true // requires Jetpack plugin ); /** * NOTE: $theme_options has been deprecated and replaced with $xsbf_theme_options. You'll * need to update your child themes. */ global $xsbf_theme_options; if ( isset ( $xsbf_theme_options ) AND is_array ( $xsbf_theme_options ) AND ! empty ( $xsbf_theme_options ) ) { $xsbf_theme_options = wp_parse_args( $xsbf_theme_options, $defaults ); } else { $xsbf_theme_options = $defaults; } // Plugins expect this as discreet variable, so set it. Note this is the max width for // full-width page (and post) templates, not the size with a sidebar present. $content_width = $xsbf_theme_options['content_width']; /** * Setup theme defaults and register support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating * support post thumbnails. */ if ( ! function_exists( 'xsbf_setup' ) ) : add_action( 'after_setup_theme', 'xsbf_setup' ); function xsbf_setup() { global $xsbf_theme_options; //global $content_width; // Note: set from $xsbf_theme_options also // Add support for WordPress core to add