'', 'default-text-color' => '000', 'width' => 1000, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'babylog_header_style', 'admin-head-callback' => 'babylog_admin_header_style', 'admin-preview-callback' => 'babylog_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'babylog_custom_header_setup' ); if ( ! function_exists( 'babylog_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see babylog_custom_header_setup(). * * @since Babylog 1.0 */ function babylog_header_style() { // If no custom options for text are set, let's bail // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value if ( HEADER_TEXTCOLOR == get_header_textcolor() ) return; // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @see babylog_custom_header_setup(). * * @since Babylog 1.0 */ function babylog_admin_header_style() { $options = babylog_get_theme_options(); $colorscheme = $options['color_scheme']; if ( isset( $colorscheme ) && ! empty( $colorscheme ) ) { if ( 'green' == $colorscheme ) $backgroundcolor = 'c2e2bf'; else if ( 'blue' == $colorscheme ) $backgroundcolor = '86afbf'; else if ( 'pink' == $colorscheme ) $backgroundcolor = 'e29393'; else if ( 'purple' == $colorscheme ) $backgroundcolor = 'bfa1c6'; } else { $backgroundcolor = 'bfa1c6'; $colorscheme = 'purple'; } ?> Header admin panel. * * @see babylog_custom_header_setup(). * * @since Babylog 1.0 */ function babylog_admin_header_image() { ?>

onclick="return false;" href="">

>