Skip to content
Newer
Older
100644 75 lines (65 sloc) 2.43 KB
edfeccc @ianstewart _s: initial fork of Toolbox
ianstewart authored
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 _s
8 * @since _s 1.0
9 */
10 ?><!DOCTYPE html>
11 <!--[if IE 6]>
12 <html id="ie6" <?php language_attributes(); ?>>
13 <![endif]-->
14 <!--[if IE 7]>
15 <html id="ie7" <?php language_attributes(); ?>>
16 <![endif]-->
17 <!--[if IE 8]>
18 <html id="ie8" <?php language_attributes(); ?>>
19 <![endif]-->
20 <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
21 <html <?php language_attributes(); ?>>
22 <!--<![endif]-->
23 <head>
24 <meta charset="<?php bloginfo( 'charset' ); ?>" />
25 <meta name="viewport" content="width=device-width" />
26 <title><?php
27 /*
28 * Print the <title> tag based on what is being viewed.
29 */
30 global $page, $paged;
31
32 wp_title( '|', true, 'right' );
33
34 // Add the blog name.
35 bloginfo( 'name' );
36
37 // Add the blog description for the home/front page.
38 $site_description = get_bloginfo( 'description', 'display' );
39 if ( $site_description && ( is_home() || is_front_page() ) )
40 echo " | $site_description";
41
42 // Add a page number if necessary:
43 if ( $paged >= 2 || $page >= 2 )
44 echo ' | ' . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) );
45
46 ?></title>
47 <link rel="profile" href="http://gmpg.org/xfn/11" />
48 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
49 <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
50 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
51 <!--[if lt IE 9]>
52 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
53 <![endif]-->
54
55 <?php wp_head(); ?>
56 </head>
57
58 <body <?php body_class(); ?>>
59 <div id="page" class="hfeed">
60 <?php do_action( 'before' ); ?>
61 <header id="branding" role="banner">
62 <hgroup>
63 <h1 id="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
64 <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
65 </hgroup>
66
67 <nav id="access" role="navigation">
68 <h1 class="assistive-text section-heading"><?php _e( 'Main menu', '_s' ); ?></h1>
69 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div>
70
71 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
72 </nav><!-- #access -->
73 </header><!-- #branding -->
74
75 <div id="main">
Something went wrong with that request. Please try again.