A WordPress theme I used to use on www.chriswiegman.com.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

60 lines
1.6 KiB

  1. <?php
  2. /**
  3. * The header for our theme.
  4. *
  5. * Displays all of the <head> section and everything up till <div id="content">
  6. *
  7. * @since 5.0.0
  8. *
  9. * @package CW\Theme\Templates\Header
  10. *
  11. * @author Chris Wiegman <chris@chriswiegman.com>
  12. */
  13. namespace CW\Theme\Templates\Header;
  14. ?>
  15. <!DOCTYPE html>
  16. <html <?php language_attributes(); ?>>
  17. <head>
  18. <meta charset="<?php bloginfo( 'charset' ); ?>">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. <title><?php esc_html( wp_title( '|', true, 'right' ) ); ?></title>
  21. <link rel="profile" href="http://gmpg.org/xfn/11">
  22. <?php wp_head(); ?>
  23. </head>
  24. <body <?php body_class(); ?>>
  25. <div id="page" class="hfeed site">
  26. <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'chriswiegman' ); ?></a>
  27. <?php
  28. if ( is_user_logged_in() ) {
  29. $hclass = 'top-padding ';
  30. } else {
  31. $hclass = '';
  32. }
  33. ?>
  34. <header id="masthead" class="<?php echo esc_attr( $hclass ); ?>site-header" role="banner">
  35. <div class="progress-wrap">
  36. <div class="progress-indicator"></div>
  37. </div>
  38. <div class="wrap">
  39. <div class="site-title">
  40. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><span class="logo-chris">Chris</span><span class="logo-wiegman">Wiegman</span></a>
  41. </div>
  42. <div class="menu-toggle"><i class="menu-icon icon-menu"></i><?php esc_html_e( 'Menu', 'chriswiegman' ); ?>
  43. </div>
  44. <nav id="site-navigation" class="main-navigation" role="navigation">
  45. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  46. </nav>
  47. </div>
  48. <!-- #site-navigation -->
  49. </header>
  50. <!-- #masthead -->
  51. <div id="content" class="site-content">