' . __( '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, BirdTIPS, provides the following Theme Options:', 'birdtips' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'birdtips' ) . '
' . '' . __( 'For more information:', 'birdtips' ) . '
' . '' . __( 'Documentation on Theme Options', 'birdtips' ) . '
' . '' . __( 'Support Forums', 'birdtips' ) . '
'; add_contextual_help( $theme_page, $help ); } add_action( 'admin_menu', 'birdtips_theme_options_add_page' ); /** * Returns an array of color schemes registered for Twenty Eleven. * * @since Twenty Eleven 1.0 */ function birdtips_color_schemes() { $color_scheme_options = array( 'default_link_color' => '#0066aa', 'default_article_title_color' => '#dd6633', 'default_navigation_color' => '#cccccc' ); return apply_filters( 'birdtips_color_schemes', $color_scheme_options ); } /** * Returns the default options for BirdTIPS. * * @since BirdTIPS 1.0 */ function birdtips_get_default_theme_options() { $default_theme_options = array( 'link_color' => birdtips_get_default_link_color(), 'article_title_color' => birdtips_get_default_article_title_color(), 'navigation_color' => birdtips_get_default_navigation_color() ); return apply_filters( 'birdtips_default_theme_options', $default_theme_options ); } /** * Returns the default link color for BirdTIPS, based on color scheme. * * @since BirdTIPS 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function birdtips_get_default_link_color() { $color_schemes = birdtips_color_schemes(); return $color_schemes['default_link_color']; } /** * Returns the default navigation menu color for BirdTIPS, based on color scheme. * * @since BirdTIPS 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function birdtips_get_default_navigation_color() { $color_schemes = birdtips_color_schemes(); return $color_schemes['default_navigation_color']; } /** * Returns the default article title color for BirdTIPS, based on color scheme. * * @since BirdTIPS 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function birdtips_get_default_article_title_color() { $color_schemes = birdtips_color_schemes(); return $color_schemes['default_article_title_color']; } /** * Returns the options array for BirdTIPS. * * @since BirdTIPS 1.0 */ function birdtips_get_theme_options() { return get_option( 'birdtips_theme_options', birdtips_get_default_theme_options() ); } /** * Returns the options array for BirdTIPS. * * @since BirdTIPS 1.0 */ function theme_options_render_page() { ?>