true ) );
/** Add a way for the custom header to be styled in the admin panel that controls */
add_custom_image_header( 'blogtina_header_style', 'blogtina_admin_header_style' );
/** Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. */
register_default_headers( array(
'blogtina' => array(
'url' => '%s/images/headers/header-blogtina.png',
'thumbnail_url' => '%s/images/headers/header-blogtina-thumbnail.png',
'description' => 'blogtina'
),
'bubbles' => array(
'url' => '%s/images/headers/header-bubbles.png',
'thumbnail_url' => '%s/images/headers/header-bubbles-thumbnail.png',
'description' => 'Bubbles'
),
'dawn' => array(
'url' => '%s/images/headers/header-dawn.png',
'thumbnail_url' => '%s/images/headers/header-dawn-thumbnail.png',
'description' => 'Dawn'
),
) );
}
/** Styles the header image and text displayed on the blog */
function blogtina_header_style() {
$headimg = sprintf( '#headimg { border: none; background: url(%s) no-repeat; font-family: Georgia, Times, serif; width: %spx; height: %spx; text-align: center; text-shadow: #8e8e8e 1px 1px; }', get_header_image(), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT );
$headimgdata = sprintf( '#headimg-data {}' );
$h1 = sprintf( '#headimg h1, #headimg h1 a { margin:0px; padding-top:50px; color: #%s; font-size: 48px; font-weight: normal; text-decoration: none; }', esc_html( get_header_textcolor() ) );
$desc = sprintf( '#headimg #desc { margin:0px; padding-top:5px; color: #%s; font-size: 20px; font-style: italic; }', esc_html( get_header_textcolor() ) );
printf( '', $headimg, $headimgdata, $h1, $desc );
}
/** Styles the header image displayed on the Appearance > Header admin panel. */
function blogtina_admin_header_style() {
$headimg = sprintf( '.appearance_page_custom-header #headimg { border: none; background: url(%s) no-repeat; font-family: Georgia, Times, serif; width: %spx; height: %spx; text-align: center; text-shadow: #8e8e8e 1px 1px; }', get_header_image(), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT );
$h1 = sprintf( '#headimg h1, #headimg h1 a { margin:0px; padding-top:65px; color: #%s; font-size: 48px; font-weight: normal; text-decoration: none; }', esc_html( get_header_textcolor() ) );
$desc = sprintf( '#headimg #desc { margin:0px; padding-top:25px; color: #%s; font-size: 20px; font-style: italic; }', esc_html( get_header_textcolor() ) );
printf( '', $headimg, $h1, $desc );
}
?>