' . __( '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, AnimePress, provides the following Theme Options:', 'AnimePress' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'AnimePress' ) . '
'; $sidebar = '' . __( 'For more information:', 'AnimePress' ) . '
' . '' . __( 'Documentation on Theme Options', 'AnimePress' ) . '
' . '' . __( 'Support Forums', 'AnimePress' ) . '
'; $screen = get_current_screen(); if ( method_exists( $screen, 'add_help_tab' ) ) { // WordPress 3.3 $screen->add_help_tab( array( 'title' => __( 'Overview', 'AnimePress' ), 'id' => 'theme-options-help', 'content' => $help, ) ); $screen->set_help_sidebar( $sidebar ); } else { // WordPress 3.2 get_current_screen()->add_help_tab( $screen, $help . $sidebar ); } } add_action( 'admin_menu', 'AnimePress_theme_options_add_page' ); /** * Returns an array of color schemes registered for Twenty Eleven. * * @since Twenty Eleven 1.0 */ function AnimePress_color_schemes() { $color_scheme_options = array( 'default_title_color' => '#5a5a5a' ); return apply_filters( 'AnimePress_color_schemes', $color_scheme_options ); } /** * Returns the default options for AnimePress. * * @since AnimePress 1.0 */ function AnimePress_get_default_theme_options() { $default_theme_options = array( 'link_color' => AnimePress_get_default_title_color() ); return apply_filters( 'AnimePress_default_theme_options', $default_theme_options ); } /** * Returns the default link color for AnimePress, based on color scheme. * * @since AnimePress 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function AnimePress_get_default_title_color() { $color_schemes = AnimePress_color_schemes(); return $color_schemes['default_title_color']; } /** * Returns the options array for AnimePress. * * @since AnimePress 1.0 */ function AnimePress_get_theme_options() { return get_option( 'AnimePress_theme_options', AnimePress_get_default_theme_options() ); } /** * Returns the options array for AnimePress. * * @since AnimePress 1.0 */ function theme_options_render_page() { ?>