Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 62 lines (52 sloc) 2.089 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 <html <?php language_attributes(); ?>>
12 <head>
13 <meta charset="<?php bloginfo( 'charset' ); ?>" />
14 <meta name="viewport" content="width=device-width" />
15 <title><?php
16 /*
17 * Print the <title> tag based on what is being viewed.
18 */
19 global $page, $paged;
20
21 wp_title( '|', true, 'right' );
22
23 // Add the blog name.
24 bloginfo( 'name' );
25
26 // Add the blog description for the home/front page.
27 $site_description = get_bloginfo( 'description', 'display' );
28 if ( $site_description && ( is_home() || is_front_page() ) )
29 echo " | $site_description";
30
31 // Add a page number if necessary:
32 if ( $paged >= 2 || $page >= 2 )
33 echo ' | ' . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) );
34
35 ?></title>
36 <link rel="profile" href="http://gmpg.org/xfn/11" />
37 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
38 <!--[if lt IE 9]>
39 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
40 <![endif]-->
41
42 <?php wp_head(); ?>
43 </head>
44
45 <body <?php body_class(); ?>>
afe244f @ianstewart _s: More consistency with class names in the structural markup
ianstewart authored
46 <div id="page" class="hfeed site">
ae85c2b @ianstewart _s
ianstewart authored
47 <?php do_action( 'before' ); ?>
88b7c40 @ianstewart _s: using a simpler and more consistent site-header class
ianstewart authored
48 <header id="masthead" class="site-header" role="banner">
edfeccc @ianstewart _s: initial fork of Toolbox
ianstewart authored
49 <hgroup>
db89577 @ianstewart _s
ianstewart authored
50 <h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
51 <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
edfeccc @ianstewart _s: initial fork of Toolbox
ianstewart authored
52 </hgroup>
53
44c46fd @ianstewart _s: Simple WordPress menu styles
ianstewart authored
54 <nav role="navigation" class="site-navigation main-navigation">
a140387 @ianstewart _s: cache the masthead selector and use find to grab it's descendants…
ianstewart authored
55 <h1 class="assistive-text"><?php _e( 'Menu', '_s' ); ?></h1>
db89577 @ianstewart _s
ianstewart authored
56 <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div>
edfeccc @ianstewart _s: initial fork of Toolbox
ianstewart authored
57
58 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
b9fa5c0 @obenland Add missing 'class' comments
obenland authored
59 </nav><!-- .site-navigation .main-navigation -->
88b7c40 @ianstewart _s: using a simpler and more consistent site-header class
ianstewart authored
60 </header><!-- #masthead .site-header -->
edfeccc @ianstewart _s: initial fork of Toolbox
ianstewart authored
61
752d08a Update the HTML "class" system
Matias authored
62 <div id="main" class="site-main">
Something went wrong with that request. Please try again.