Advertisement
Guest User

more-button.php

a guest
Aug 21st, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. function catch_fullscreen_header_media_text() {
  2.  
  3. if ( ! catch_fullscreen_has_header_media_text() ) {
  4. // Bail early if header media text is disabled on front page
  5. return false;
  6. }
  7.  
  8. ?>
  9. <div class="custom-header-content entry-content-wrapper sections">
  10. <div class="entry-container">
  11. <?php get_template_part( 'template-parts/header/breadcrumb' ); ?>
  12. <header class="entry-header">
  13. <h1 class="entry-title">
  14. <?php catch_fullscreen_header_title(); ?>
  15. </h1>
  16. </header>
  17.  
  18. <div class="entry-summary">
  19. <?php catch_fullscreen_header_description(); ?>
  20.  
  21. <?php if ( is_front_page() ) :
  22. $header_media_title = get_theme_mod( 'catch_fullscreen_header_media_title', esc_html__( 'Dancing Under The Sky', 'catch-fullscreen-pro' ) );
  23. $header_media_url = get_theme_mod( 'catch_fullscreen_header_media_url');
  24. $header_media_url_text = get_theme_mod( 'catch_fullscreen_header_media_url_text' );
  25. ?>
  26.  
  27. <?php if ( $header_media_url_text ) : ?>
  28. <span class="more-button right">
  29. <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>
  30. <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>
  31. </span>
  32. <?php endif; ?>
  33. <?php endif; ?>
  34. </div> <!-- entry-summary -->
  35. </div> <!-- entry-container -->
  36. </div><!-- .custom-header-content -->
  37. <?php
  38. } // catch_fullscreen_header_media_text.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement