* * @package Hatch * @since Hatch 1.0 */ /** * Setup the WordPress core custom header feature. * * Use add_theme_support to register support for WordPress 3.4+ * as well as provide backward compatibility for previous versions. * Use feature detection of wp_get_theme() which was introduced * in WordPress 3.4. * * @todo Rework this function to remove WordPress 3.4 support when WordPress 3.6 is released. * * @uses hatch_header_style() * @uses hatch_admin_header_style() * @uses hatch_admin_header_image() * * @package Hatch */ function hatch_custom_header_setup() { if ( '' != get_theme_mod( 'hatch_intro' ) ) $header_width = 640; else $header_width = 940; add_theme_support( 'custom-header', apply_filters( 'hatch_custom_header_args', array( 'default-image' => '', 'default-text-color' => '222', 'width' => $header_width, 'height' => 360, 'flex-height' => true, 'wp-head-callback' => 'hatch_header_style', 'admin-head-callback' => 'hatch_admin_header_style', 'admin-preview-callback' => 'hatch_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'hatch_custom_header_setup' ); if ( ! function_exists( 'hatch_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see hatch_custom_header_setup(). * * @since Hatch 1.0 */ function hatch_header_style() { ?> Header admin panel. * * @see hatch_custom_header_setup(). * * @since Hatch 1.0 */ function hatch_admin_header_style() { ?> Header admin panel. * * @see hatch_custom_header_setup(). * * @since Hatch 1.0 */ function hatch_admin_header_image() { ?>

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

>