header.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. * @package WordPress
  8. * @subpackage Twenty_Fifteen
  9. * @since Twenty Fifteen 1.0
  10. */
  11. ?><!DOCTYPE html>
  12. <html <?php language_attributes(); ?> class="no-js">
  13. <head>
  14. <meta charset="<?php bloginfo( 'charset' ); ?>">
  15. <meta name="viewport" content="width=device-width, initial-scale=1">
  16. <title><?php wp_title( '|', true, 'right' ); ?></title>
  17. <link rel="profile" href="http://gmpg.org/xfn/11">
  18. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  19. <!--[if lt IE 9]>
  20. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
  21. <![endif]-->
  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', 'twentyfifteen' ); ?></a>
  27. <div id="sidebar" class="sidebar">
  28. <header id="masthead" class="site-header" role="banner">
  29. <div class="site-branding">
  30. <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  31. <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  32. <button class="secondary-toggle"><?php esc_html_e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
  33. </div>
  34. </header><!-- .site-header -->
  35. <?php get_sidebar(); ?>
  36. </div><!-- .sidebar -->
  37. <div id="content" class="site-content">