*
* @package Enterprise
*/
/**
* Setup the WordPress core custom header feature.
*
* @uses enterprise_header_style()
* @uses enterprise_admin_header_style()
* @uses enterprise_admin_header_image()
*
* @package Enterprise
*/
function enterprise_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'enterprise_custom_header_args', array(
'default-text-color' => '333333',
'default-image' => '',
'width' => 960,
'height' => 90,
'wp-head-callback' => 'enterprise_header_style',
'admin-head-callback' => 'enterprise_admin_header_style',
'admin-preview-callback' => '',
) ) );
}
add_action( 'after_setup_theme', 'enterprise_custom_header_setup' );
if ( ! function_exists( 'enterprise_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see enterprise_custom_header_setup().
*
*/
function enterprise_header_style() {
// Custom header is present? If so display it
$header_image = get_header_image();
if ( ! empty( $header_image ) ) {
?>
Header admin panel.
*
* @see enterprise_custom_header_setup().
*
*/
function enterprise_admin_header_style() {
?>