* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package Chique */ // For registration of custom-header, check customizer/header-background-color.php if ( ! function_exists( 'chique_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see chique_custom_header_setup(). */ function chique_header_style() { $header_textcolor = get_header_textcolor(); $header_image = chique_featured_overall_image(); if ( $header_image ) : ?> ID, 'chique-header-image', true ); if ( 'disable' === $individual_featured_image || ( 'default' === $individual_featured_image && 'disable' === $enable ) ) { return; } elseif ( 'enable' == $individual_featured_image && 'disable' === $enable ) { return chique_featured_page_post_image(); } } // Check Homepage if ( 'homepage' === $enable ) { if ( is_front_page() || ( is_home() && is_front_page() ) ) { return chique_featured_image(); } } elseif ( 'entire-site' === $enable ) { // Check Entire Site return chique_featured_image(); } return false; } // chique_featured_overall_image endif; if ( ! function_exists( 'chique_header_media_text' ) ): /** * Display Header Media Text * * @since Chique 0.1 */ function chique_header_media_text() { if ( ! chique_has_header_media_text() ) { // Bail early if header media text is disabled return false; } $content_align = get_theme_mod( 'chique_header_media_content_align', 'content-aligned-center' ); $text_align = get_theme_mod( 'chique_header_media_text_align', 'text-aligned-center' ); $classes[] = 'custom-header-content'; $classes[] = $content_align; $classes[] = $text_align; ?>
'; chique_header_title(); echo ''; } else { echo '

'; chique_header_title(); echo '

'; } ?>