' . __( '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, Toko Online, provides the following Theme Options:', 'tokokoo' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'tokokoo' ) . '
' . '' . __( 'For more information:', 'tokokoo' ) . '
' . '' . __( 'Documentation on Theme Options', 'tokokoo' ) . '
' . '' . __( 'Support Forums', 'tokokoo' ) . '
'; //add_contextual_help( $theme_page, $help ); } add_action( 'admin_menu', 'tokokoo_theme_options_add_page' ); /** * Returns the default options for Toko Online. * * @since Toko Online 1.0 */ function tokokoo_get_default_theme_options() { $default_theme_options = array( 'link_color' => tokokoo_get_default_link_color( '#ffffff' ), ); return apply_filters( 'tokokoo_default_theme_options', $default_theme_options ); } /** * Returns the default link color for Toko Online, based on color scheme. * * @since Toko Online 1.0 * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function tokokoo_get_default_link_color( $color_scheme = null ) { if ( null === $color_scheme ) { $options = tokokoo_get_theme_options(); $color_scheme = $options['color_scheme']; } //echo $color_scheme; exit; return $color_scheme; } /** * Returns the options array for Toko Online. * * @since Toko Online 1.0 */ function tokokoo_get_theme_options() { return get_option( 'tokokoo_theme_options', tokokoo_get_default_theme_options() ); } /** * Returns the options array for Toko Online. * * @since Toko Online 1.2 */ function tokokoo_theme_options_render_page() { ?>