980,
'height' => 120,
'default-image' => '',
'default-text-color' => '3478e3',
'wp-head-callback' => 'p2_header_style',
'admin-head-callback' => 'p2_admin_header_style',
);
$args = apply_filters( 'p2_custom_header_args', $args );
if ( function_exists( 'get_custom_header' ) ) {
add_theme_support( 'custom-header', $args );
} else {
// Compat: Versions of WordPress prior to 3.4.
define( 'HEADER_TEXTCOLOR', $args['default-text-color'] );
define( 'HEADER_IMAGE', $args['default-image'] );
define( 'HEADER_IMAGE_WIDTH', $args['width'] );
define( 'HEADER_IMAGE_HEIGHT', $args['height'] );
add_custom_image_header( $args['wp-head-callback'], $args['admin-head-callback'] );
}
}
/**
* Styles for the Custom Header admin UI.
*
* @package P2
* @since P2 1.1
*/
function p2_admin_header_style() {
?>