header.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta charset="<?php bloginfo( 'charset' ); ?>">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <?php wp_head(); ?>
  8. </head>
  9. <body <?php body_class(); ?>>
  10. <div id="page" class="site">
  11. <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'cc' ); ?></a>
  12. <header id="masthead" class="site-header" role="banner">
  13. <div class="site-branding">
  14. <?php
  15. if ( is_front_page() && is_home() ) : ?>
  16. <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  17. <?php else : ?>
  18. <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
  19. <?php
  20. endif;
  21. $description = get_bloginfo( 'description', 'display' );
  22. if ( $description || is_customize_preview() ) : ?>
  23. <p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
  24. <?php
  25. endif; ?>
  26. </div><!-- .site-branding -->
  27. <nav id="site-navigation" class="main-navigation" role="navigation">
  28. <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'cc' ); ?></button>
  29. <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
  30. </nav><!-- #site-navigation -->
  31. </header><!-- #masthead -->
  32. <div id="content" class="site-content">