' . __( '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, BirdMAGAZINE, provides the following Theme Options:', 'birdmagazine' ) . '

' . '
    ' . '
  1. ' . __( 'Text Color: You can choose the color used for text on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'birdmagazine' ) . '
  2. ' . '
  3. ' . __( 'Link Color: You can choose the color used for text links on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'birdmagazine' ) . '
  4. ' . '
  5. ' . __( 'Navigation Menu Color: You can choose the color used for navigation menu on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'birdmagazine' ) . '
  6. ' . '
  7. ' . __( 'Border Color: You can choose the color used for haeder border and widget border and footer background on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'birdmagazine' ) . '
  8. ' . '
' . '

' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'birdmagazine' ) . '

'; $sidebar = '

' . __( 'For more information:', 'birdmagazine' ) . '

' . '

' . __( 'Documentation on Theme Options', 'birdmagazine' ) . '

' . '

' . __( 'Support Forums', 'birdmagazine' ) . '

'; $screen = get_current_screen(); $screen->add_help_tab( array( 'title' => __( 'Overview', 'birdmagazine' ), 'id' => 'theme-options-help', 'content' => $help, ) ); $screen->set_help_sidebar( $sidebar ); } add_action( 'admin_menu', 'birdmagazine_theme_options_add_page' ); /** * Returns an array of color schemes registered for Twenty Eleven. * * @since Twenty Eleven 1.0 */ function birdmagazine_color_schemes() { $color_scheme_options = array( 'default_link_color' => '#3399cc', 'default_text_color' => '#544021', 'default_navigation_color' => '#999999', 'default_line_color' => '#bee4d7' ); return apply_filters( 'birdmagazine_color_schemes', $color_scheme_options ); } /** * Returns the default options for BirdMAGAZINE. * * @since BirdMAGAZINE 1.0 */ function birdmagazine_get_default_theme_options() { $default_theme_options = array( 'link_color' => birdmagazine_get_default_link_color(), 'text_color' => birdmagazine_get_default_text_color(), 'navigation_color' => birdmagazine_get_default_navigation_color(), 'line_color' => birdmagazine_get_default_line_color() ); return apply_filters( 'birdmagazine_default_theme_options', $default_theme_options ); } /** * Returns the default link color for BirdMAGAZINE, based on color scheme. * * @since BirdMAGAZINE 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function birdmagazine_get_default_link_color() { $color_schemes = birdmagazine_color_schemes(); return $color_schemes['default_link_color']; } /** * Returns the default navigation menu color for BirdMAGAZINE, based on color scheme. * * @since BirdMAGAZINE 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function birdmagazine_get_default_navigation_color() { $color_schemes = birdmagazine_color_schemes(); return $color_schemes['default_navigation_color']; } /** * Returns the default line color for BirdMAGAZINE, based on color scheme. * * @since BirdMAGAZINE 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function birdmagazine_get_default_line_color() { $color_schemes = birdmagazine_color_schemes(); return $color_schemes['default_line_color']; } /** * Returns the default Text Color for BirdMAGAZINE, based on color scheme. * * @since BirdMAGAZINE 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function birdmagazine_get_default_text_color() { $color_schemes = birdmagazine_color_schemes(); return $color_schemes['default_text_color']; } /** * Returns the options array for BirdMAGAZINE. * * @since BirdMAGAZINE 1.0 */ function birdmagazine_get_theme_options() { $options = get_option( 'birdmagazine_theme_options', birdmagazine_get_default_theme_options()); $default_options = birdmagazine_get_default_theme_options(); if(empty($options['text_color'])){ $options['text_color'] = $default_options['text_color']; } if(empty($options['link_color'])){ $options['link_color'] = $default_options['link_color']; } if(empty($options['navigation_color'])){ $options['navigation_color'] = $default_options['navigation_color']; } if(empty($options['line_color'])){ $options['line_color'] = $default_options['line_color']; } return $options; } /** * Returns the options array for BirdMAGAZINE. * * @since BirdMAGAZINE 1.0 */ function theme_options_render_page() { ?>