* * @package The Columnist * @since The Columnist 1.0 */ /** * Setup the WordPress core custom header feature. * * @uses the_columnist_header_style() * @uses the_columnist_admin_header_style() * @uses the_columnist_admin_header_image() * * @package The Columnist */ function the_columnist_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'the_columnist_custom_header_args', array( 'default-text-color' => '333', 'header-text' => false, 'width' => 140, 'height' => 180, 'admin-head-callback' => 'the_columnist_admin_header_style', 'admin-preview-callback' => 'the_columnist_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'the_columnist_custom_header_setup' ); if ( ! function_exists( 'the_columnist_admin_header_style' ) ) : /** * Styles the header image displayed on the Appearance > Header admin panel. * * @see the_columnist_custom_header_setup(). * * @since The Columnist 1.0 */ function the_columnist_admin_header_style() { ?> Header admin panel. * * @see the_columnist_custom_header_setup(). * * @since The Columnist 1.0 */ function the_columnist_admin_header_image() { $header_image = get_header_image(); ?>