Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function catch_fullscreen_header_media_text() {
- if ( ! catch_fullscreen_has_header_media_text() ) {
- // Bail early if header media text is disabled on front page
- return false;
- }
- ?>
- <div class="custom-header-content entry-content-wrapper sections">
- <div class="entry-container">
- <?php get_template_part( 'template-parts/header/breadcrumb' ); ?>
- <header class="entry-header">
- <h1 class="entry-title">
- <?php catch_fullscreen_header_title(); ?>
- </h1>
- </header>
- <div class="entry-summary">
- <?php catch_fullscreen_header_description(); ?>
- <?php if ( is_front_page() ) :
- $header_media_title = get_theme_mod( 'catch_fullscreen_header_media_title', esc_html__( 'Dancing Under The Sky', 'catch-fullscreen-pro' ) );
- $header_media_url = get_theme_mod( 'catch_fullscreen_header_media_url');
- $header_media_url_text = get_theme_mod( 'catch_fullscreen_header_media_url_text' );
- ?>
- <?php if ( $header_media_url_text ) : ?>
- <span class="more-button right">
- <a class="more-link" href="<?php echo esc_url( $header_media_url ); ?>" target="<?php echo get_theme_mod( 'catch_fullscreen_header_url_target' ) ? '_blank' : '_self'; ?>"><?php echo esc_html( $header_media_url_text ); ?><span class="screen-reader-text"><?php echo wp_kses_post( $header_media_title ); ?></span></a>
- <a class="more-link" href="https://wordpress.org/" target="_blank"><?php echo esc_html( 'Hello' ); ?><span class="screen-reader-text"><?php echo wp_kses_post( 'Hello' ); ?></span></a>
- </span>
- <?php endif; ?>
- <?php endif; ?>
- </div> <!-- entry-summary -->
- </div> <!-- entry-container -->
- </div><!-- .custom-header-content -->
- <?php
- } // catch_fullscreen_header_media_text.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement