* * @package Book Lite * @since Book Lite 1.0 */ /** * Setup the WordPress core custom header feature. * * @uses book_lite_header_style() * @uses book_lite_admin_header_style() * @uses book_lite_admin_header_image() * * @package Book Lite */ function book_lite_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'book_lite_custom_header_args', array( 'default-image' => get_template_directory_uri() . '/images/default-header.jpg', 'default-text-color' => '111111', 'width' => 1440, 'height' => 500, 'wp-head-callback' => 'book_lite_header_style', 'admin-head-callback' => 'book_lite_admin_header_style', 'admin-preview-callback' => 'book_lite_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'book_lite_custom_header_setup' ); if ( ! function_exists( 'book_lite_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see book_lite_custom_header_setup(). * * @since Book Lite 1.0 */ function book_lite_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 book_lite_custom_header_setup(). * * @since Book Lite 1.0 */ function book_lite_admin_header_style() { $header_image = get_header_image(); ?> Header admin panel. * * @see book_lite_custom_header_setup(). * * @since Book Lite 1.0 */ function book_lite_admin_header_image() { ?>

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

>