Advertisement
Guest User

Header.php

a guest
Nov 12th, 2012
1,643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Header for our theme.
  4. *
  5. * Displays all of the <head> section and everything up till <div id="main">
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Twelve
  9. * @since Twenty Twelve 1.0
  10. */
  11. ?><!DOCTYPE html>
  12. <!--[if IE 7 | IE 8]>
  13. <html class="ie" <?php language_attributes(); ?>>
  14. <![endif]-->
  15. <!--[if !(IE 7) | !(IE 8) ]><!-->
  16. <html <?php language_attributes(); ?>>
  17. <!--<![endif]-->
  18. <head>
  19. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  20. <meta name="viewport" content="width=device-width" />
  21. <title><?php wp_title( '|', true, 'right' ); ?></title>
  22. <link rel="profile" href="http://gmpg.org/xfn/11" />
  23. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  24. <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
  25. <!--[if lt IE 9]>
  26. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
  27. <![endif]-->
  28. <?php wp_head(); ?>
  29. </head>
  30.  
  31. <body <?php body_class(); ?>>
  32. <div id="page" class="hfeed site">
  33. <header id="masthead" class="site-header" role="banner">
  34. <hgroup>
  35. <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  36. <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  37. </hgroup>
  38.  
  39.  
  40. <?php $header_image = get_header_image();
  41. if ( ! empty( $header_image ) ) : ?>
  42. <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
  43. <?php endif; ?>
  44.  
  45. <nav id="site-navigation" class="main-navigation" role="navigation">
  46. <h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
  47. <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div>
  48. <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
  49. </nav><!-- #site-navigation -->
  50.  
  51. </header><!-- #masthead -->
  52.  
  53. <div id="main" class="wrapper">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement