header.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * The header for our theme.
  4. *
  5. * This is the template that displays all of the <head> section and everything up until <div id="content">
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package Ixion
  10. */
  11. ?><!DOCTYPE html>
  12. <html <?php language_attributes(); ?> itemscope itemtype="http://schema.org/WebPage">
  13. <head>
  14. <meta charset="<?php bloginfo( 'charset' ); ?>">
  15. <meta name="viewport" content="width=device-width, initial-scale=1">
  16. <link rel="profile" href="http://gmpg.org/xfn/11">
  17. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  18. <?php wp_head(); ?>
  19. </head>
  20. <body <?php body_class(); ?>>
  21. <div id="page" class="site">
  22. <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'ixion' ); ?></a>
  23. <header id="masthead" class="site-header" role="banner">
  24. <div class="utility-container">
  25. <?php ixion_social_menu(); ?>
  26. <?php get_search_form(); ?>
  27. </div>
  28. <div class="branding-container">
  29. <?php get_template_part( 'components/header/site', 'branding' ); ?>
  30. <?php get_template_part( 'components/navigation/navigation', 'top' ); ?>
  31. </div>
  32. </header>
  33. <?php if ( is_front_page() ) : ?>
  34. <div class="front-page-wrapper">
  35. <div class="header-overlay">
  36. <?php if ( get_header_image() ) : ?>
  37. <img src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="">
  38. <?php endif; ?>
  39. <div class="site-description-wrapper">
  40. <?php $description = get_bloginfo( 'description', 'display' );
  41. if ( $description || is_customize_preview() ) : ?>
  42. <p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
  43. <?php endif; ?>
  44. <?php
  45. $button = get_theme_mod( 'ixion_button_text', '' );
  46. if ( '' !== $button || is_customize_preview() ) : ?>
  47. <a href="<?php echo esc_url( get_theme_mod( 'ixion_button_link', '' ) ); ?>" class="button callout-button"><?php echo esc_html( $button ); ?></a>
  48. <?php endif; ?>
  49. </div><!-- .site-description-wrapper -->
  50. </div><!-- .header-overlay -->
  51. <?php get_template_part( 'components/features/featured-content/display', 'featured' ); ?>
  52. </div><!-- .front-page-wrapper -->
  53. <?php endif; // End is_front_page() check ?>
  54. <div id="content" class="site-content">