* * @package Sunspot * @since Sunspot 1.0 */ function sunspot_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'sunspot_custom_header_args', array( 'default-text-color' => 'FCB03E', 'width' => apply_filters( 'sunspot_header_image_width', 257 ), 'height' => apply_filters( 'sunspot_header_image_height', 157 ), 'wp-head-callback' => 'sunspot_header_style', 'admin-head-callback' => 'sunspot_admin_header_style', 'admin-preview-callback' => 'sunspot_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'sunspot_custom_header_setup' ); if ( ! function_exists( 'sunspot_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @since Sunspot 1.0 */ function sunspot_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() && '' == get_header_image() ) return; // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @since Sunspot 1.0 */ function sunspot_admin_header_style() { ?> Header admin panel. * * @since Sunspot 1.0 */ function sunspot_admin_header_image() { $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); $header_image = get_header_image(); ?>

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

>