Advertisement
Guest User

Untitled

a guest
Jul 5th, 2016
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying the header
  4. *
  5. * Displays all of the head element and everything up until the "site-content" div.
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Sixteen
  9. * @since Twenty Sixteen 1.0
  10. */
  11.  
  12. ?><!DOCTYPE html>
  13. <html <?php language_attributes(); ?> class="no-js">
  14. <head>
  15. <meta charset="<?php bloginfo( 'charset' ); ?>">
  16. <meta name="viewport" content="width=device-width, initial-scale=1">
  17. <link rel="profile" href="http://gmpg.org/xfn/11">
  18. <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
  19. <link rel="pingback" href="<?php bloginfo( 'pi ngback_url' ); ?>">
  20. <?php endif; ?>
  21. <?php wp_head(); ?>
  22. <script src="https://use.fontawesome.com/a4252f0dfd.js"></script>
  23. </head>
  24.  
  25. <body <?php body_class(); ?>>
  26. <div id="page" class="site">
  27. <div class="site-inner">
  28. <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentysixteen' ); ?></a>
  29.  
  30. <header id="masthead" class="site-header" role="banner" style="background:url(<?php echo get_header_image()?>) center no-repeat;">
  31. <!--moved header here - above menu -->
  32. <div class="site-header-main">
  33. <div class="site-branding">
  34. <?php if ( is_front_page() && is_home() ) : ?>
  35. <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  36. <?php else : ?>
  37. <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
  38. <?php endif;
  39.  
  40. $description = get_bloginfo( 'description', 'display' );
  41. if ( $description || is_customize_preview() ) : ?>
  42. <p class="site-description"><?php echo $description; ?></p>
  43. <?php endif; ?>
  44. </div><!-- .site-branding -->
  45.  
  46. </div><!-- .site-header-main -->
  47. <?php if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) ) : ?>
  48. <button id="menu-toggle" class="menu-toggle"><?php _e( 'Menu', 'twentysixteen' ); ?></button>
  49.  
  50. <div id="site-header-menu" class="site-header-menu">
  51. <?php if ( has_nav_menu( 'primary' ) ) : ?>
  52. <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php _e( 'Primary Menu', 'twentysixteen' ); ?>">
  53. <?php
  54. wp_nav_menu( array(
  55. 'theme_location' => 'primary',
  56. 'menu_class' => 'primary-menu',
  57. ) );
  58. ?>
  59. </nav><!-- .main-navigation -->
  60. <?php endif; ?>
  61.  
  62. <?php if ( has_nav_menu( 'social' ) ) : ?>
  63. <nav id="social-navigation" class="social-navigation" role="navigation" aria-label="<?php _e( 'Social Links Menu', 'twentysixteen' ); ?>">
  64. <?php
  65. wp_nav_menu( array(
  66. 'theme_location' => 'social',
  67. 'menu_class' => 'social-links-menu',
  68. 'depth' => 1,
  69. 'link_before' => '<span class="screen-reader-text">',
  70. 'link_after' => '</span>',
  71. ) );
  72. ?>
  73. </nav><!-- .social-navigation -->
  74. <?php endif; ?>
  75. </div><!-- .site-header-menu -->
  76. <?php endif; ?>
  77.  
  78. </header><!-- .site-header -->
  79.  
  80. <div id="content" class="site-content">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement