2012-02-06 23:23:41 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The Header for our theme.
|
|
|
|
*
|
|
|
|
* Displays all of the <head> section and everything up till <div id="main">
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Twelve
|
|
|
|
* @since Twenty Twelve 1.0
|
|
|
|
*/
|
|
|
|
?><!DOCTYPE html>
|
|
|
|
<html <?php language_attributes(); ?>>
|
|
|
|
<head>
|
|
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
2012-02-14 04:54:46 +01:00
|
|
|
<title><?php wp_title( '|', true, 'right' ); ?> <?php bloginfo( 'name' ); ?></title>
|
2012-02-06 23:23:41 +01:00
|
|
|
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
|
|
|
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
|
|
|
|
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
|
|
|
|
<![endif]-->
|
2012-02-07 00:07:41 +01:00
|
|
|
<?php
|
2012-02-21 07:41:20 +01:00
|
|
|
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
|
2012-02-07 00:07:41 +01:00
|
|
|
wp_enqueue_script( 'comment-reply' );
|
|
|
|
|
2012-02-28 06:19:50 +01:00
|
|
|
wp_enqueue_style( 'fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700' );
|
|
|
|
|
2012-02-14 04:54:46 +01:00
|
|
|
wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
|
2012-02-07 00:07:41 +01:00
|
|
|
?>
|
2012-02-06 23:23:41 +01:00
|
|
|
<?php wp_head(); ?>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body <?php body_class(); ?>>
|
|
|
|
<div id="page" class="hfeed">
|
2012-02-21 07:14:51 +01:00
|
|
|
<header id="masthead" class="site-header" role="banner">
|
2012-02-06 23:23:41 +01:00
|
|
|
<hgroup>
|
|
|
|
<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>
|
|
|
|
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
|
|
|
|
</hgroup>
|
|
|
|
|
2012-02-28 04:59:47 +01:00
|
|
|
<nav class="site-navigation main-navigation" role="navigation">
|
|
|
|
<h3 class="assistive-text"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
|
|
|
|
<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>
|
2012-02-06 23:23:41 +01:00
|
|
|
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
|
|
|
|
</nav>
|
2012-02-14 04:54:46 +01:00
|
|
|
|
|
|
|
<?php $header_image = get_header_image();
|
|
|
|
if ( ! empty( $header_image ) ) : ?>
|
|
|
|
<img src="<?php echo esc_url( $header_image ); ?>" alt="" />
|
|
|
|
<?php endif; ?>
|
2012-02-06 23:23:41 +01:00
|
|
|
</header><!-- #masthead -->
|
|
|
|
|
|
|
|
<div id="main">
|