header.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 Lodestar
  10. */
  11. ?><!DOCTYPE html>
  12. <html <?php language_attributes(); ?>>
  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', 'lodestar' ); ?></a>
  23. <header id="masthead" class="site-header" role="banner">
  24. <div class="header-top">
  25. <div class="wrap">
  26. <?php get_template_part( 'components/navigation/navigation', 'top' ); ?>
  27. <?php get_template_part( 'components/header/content', 'top' ); ?>
  28. <?php // Add Woocommerce Cart to header if Woocommerce exists
  29. if ( class_exists( 'WooCommerce' ) ) {
  30. lodestar_woocommerce_header_cart();
  31. }
  32. ?>
  33. </div>
  34. </div><!-- .header-top -->
  35. <?php get_template_part( 'components/header/header', 'image' ); ?>
  36. </header>
  37. <div id="content" class="site-content">