ID, 'bold-photography-header-image', true ); if ( 'disable' === $individual_featured_image || ( 'default' === $individual_featured_image && 'disable' === $enable ) ) { return 'disable' ; } elseif ( 'enable' == $individual_featured_image && 'disable' === $enable ) { return bold_photography_featured_page_post_image(); } } // Check Homepage if ( 'homepage' === $enable ) { if ( is_front_page() ) { return bold_photography_featured_image(); } } elseif ( 'exclude-home' === $enable ) { // Check Excluding Homepage if ( ! is_front_page() ) { return bold_photography_featured_image(); } } elseif ( 'exclude-home-page-post' === $enable ) { if ( is_front_page() ) { return 'disable'; } elseif ( is_singular() || ( class_exists( 'WooCommerce' ) && is_shop() ) || ( is_home() && ! is_front_page() ) ) { return bold_photography_featured_page_post_image(); } else { return bold_photography_featured_image(); } } elseif ( 'entire-site' === $enable ) { // Check Entire Site return bold_photography_featured_image(); } elseif ( 'entire-site-page-post' === $enable ) { // Check Entire Site (Post/Page) if ( is_singular() || ( class_exists( 'WooCommerce' ) && is_shop() ) || ( is_home() && ! is_front_page() ) ) { return bold_photography_featured_page_post_image(); } else { return bold_photography_featured_image(); } } elseif ( 'pages-posts' === $enable ) { // Check Page/Post if ( is_singular() ) { return bold_photography_featured_page_post_image(); } } return 'disable'; } // bold_photography_featured_overall_image endif; if ( ! function_exists( 'bold_photography_header_media_text' ) ): /** * Display Header Media Text * * @since Bold Photography 1.0 */ function bold_photography_header_media_text() { if ( ! bold_photography_has_header_media_text() ) { // Bail early if header media text is disabled on front page return false; } $content_alignment = get_theme_mod( 'bold_photography_header_media_content_alignment', 'content-align-left' ); $text_alignment = get_theme_mod( 'bold_photography_header_media_text_alignment', 'text-align-left' ); $header_media_logo = get_theme_mod( 'bold_photography_header_media_logo' ); ?>
' . wp_kses_post( get_theme_mod( 'bold_photography_header_media_text', esc_html__( 'A camera that puts a world of possibilities at your fingertips', 'bold-photography' ) ) ) . '
' . $after; } elseif ( is_singular() && ! is_page() ) { echo $before . '' . esc_html__( 'Oops! That page can’t be found', 'bold-photography' ) . '
' . $after; } else { the_archive_description( $before, $after ); } } endif; /** * Customize video play/pause button in the custom header. */ function bold_photography_video_controls( $settings ) { $settings['l10n']['play'] = '' . esc_html__( 'Play background video', 'bold-photography' ) . '' . bold_photography_get_svg( array( 'icon' => 'play' ) ); $settings['l10n']['pause'] = '' . esc_html__( 'Pause background video', 'bold-photography' ) . '' . bold_photography_get_svg( array( 'icon' => 'pause' ) ); return $settings; } add_filter( 'header_video_settings', 'bold_photography_video_controls' );