' . __( 'Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Bluebird, provides the following Theme Options:', 'bluebird' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'bluebird' ) . '
' . '' . __( 'Documentation on Theme Options', 'bluebird' ) . '
' . '' . __( 'Support Forums', 'bluebird' ) . '
'; add_contextual_help( $theme_page, $help ); } add_action( 'admin_menu', 'bluebird_theme_options_add_page' ); /** * Returns an array of layout options registered for Bluebird. * * @since Bluebird 2.0 */ function bluebird_layouts() { $layout_options = array( 'sidebar-wide' => array( 'value' => 'sidebar-wide', 'label' => __( 'Wide Sidebar on Top', 'bluebird' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/widetop.png', ), 'sidebar-two' => array( 'value' => 'sidebar-two', 'label' => __( 'Two Narrow Sidebars on Top', 'bluebird' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/widebottom.png', ), ); return apply_filters( 'bluebird_layouts', $layout_options ); } /** * Returns the default options for Bluebird. * * @since Bluebird 2.0 */ function bluebird_get_default_theme_options() { $default_theme_options = array( 'theme_layout' => 'sidebar-wide', ); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'sidebar-wide'; return apply_filters( 'bluebird_default_theme_options', $default_theme_options ); } /** * Returns the options array for Bluebird. * * @since Bluebird 2.0 */ function bluebird_get_theme_options() { return get_option( 'bluebird_theme_options', bluebird_get_default_theme_options() ); } /** * Returns the options array for Bluebird. * * @since Bluebird 1.2 */ function bluebird_theme_options_render_page() { ?>