* * @package Imbalance 2 * @since Imbalance 2 1.0.3-wpcom */ /** * Setup the WordPress core custom header feature. * * @uses imbalance2_header_style() * @uses imbalance2_admin_header_style() * @uses imbalance2_admin_header_image() * * */ function imbalance2_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'imbalance2_custom_header_args', array( 'default-image' => '', 'default-text-color' => '000', 'width' => 210, 'height' => 170, 'flex-height' => true, 'wp-head-callback' => 'imbalance2_header_style', 'admin-head-callback' => 'imbalance2_admin_header_style', ) ) ); } add_action( 'after_setup_theme', 'imbalance2_custom_header_setup' ); if ( ! function_exists( 'imbalance2_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see imbalance2_custom_header_setup(). * * @since imbalance2 1.0.3-wpcom */ function imbalance2_header_style() { if ( HEADER_TEXTCOLOR == get_header_textcolor() && '' == get_header_image() ) return; // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @see imbalance2_custom_header_setup(). * * @since imbalance2 1.2.2-wpcom */ function imbalance2_admin_header_style() { $options = imbalance2_get_theme_options(); ?>