Advertisement
Guest User

header-media.php

a guest
Sep 12th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <?php
  2. /**
  3. * Display Header Media
  4. *
  5. * @package Adonis
  6. */
  7. ?>
  8.  
  9. <div class="custom-header">
  10. <div class="wrapper">
  11. <?php
  12. $header_image = adonis_featured_overall_image();
  13.  
  14. if ( $header_image ) : ?>
  15. <div class="custom-header-media">
  16. <?php
  17. if ( is_header_video_active() && has_header_video() ) {
  18. the_custom_header_markup();
  19. } elseif ( $header_image ) {
  20. echo '<img src="' . esc_url( $header_image ) . '"/>';
  21. }
  22. ?>
  23. </div>
  24. <?php endif; ?>
  25.  
  26. <?php $class = get_theme_mod( 'adonis_header_content_alignment', 'align-center' ); ?>
  27. <div class="custom-header-content sections header-media-section <?php echo esc_attr( $class ); ?>">
  28. <?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
  29. </div>
  30.  
  31. <?php
  32. $enable_header_text = get_theme_mod( 'adonis_header_text', 'homepage' );
  33.  
  34. if ( $header_image || has_custom_logo() || adonis_check_section( $enable_header_text ) ) : ?>
  35. <button class="button-scroll" aria-label="Previous"><?php echo adonis_get_svg( array( 'icon' => 'angle-down' ) ); ?></button>
  36. <?php endif; ?>
  37. </div><!-- .wrapper -->
  38. </div><!-- .custom-header -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement