* * @package ishop */ /** * Set up the WordPress core custom header feature. * * @uses ishop_header_style() * @uses ishop_admin_header_style() * @uses ishop_admin_header_image() */ function ishop_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'ishop_custom_header_args', array( 'default-image' => '', 'default-text-color' => '000000', 'width' => 1440, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'ishop_header_style', 'admin-head-callback' => 'ishop_admin_header_style', 'admin-preview-callback' => 'ishop_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'ishop_custom_header_setup' ); if ( ! function_exists( 'ishop_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see ishop_custom_header_setup(). */ function ishop_header_style() { $header_image = get_header_image(); $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> Header admin panel. * * @see ishop_custom_header_setup(). */ function ishop_admin_header_style() { ?> Header admin panel. * * @see ishop_custom_header_setup(). */ function ishop_admin_header_image() { ?>