forked from obenland/the-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
93 lines (85 loc) · 3.76 KB
/
header.php
File metadata and controls
93 lines (85 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/** header.php
*
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @since 1.0 - 05.02.2012
*/
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php wp_title( '«', true, 'right' ); ?></title>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="container">
<div id="page" class="hfeed row">
<header id="branding" role="banner" class="span12">
<?php wp_nav_menu( array(
'container' => 'nav',
'container_class' => 'subnav clearfix',
'theme_location' => 'header-menu',
'menu_class' => 'nav nav-pills pull-right',
'depth' => 1,
'fallback_cb' => false
) ); ?>
<hgroup>
<h1 id="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<span><?php bloginfo( 'name' ); ?></span>
</a>
</h1>
<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<?php if ( get_header_image() ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
</a>
<?php endif; // if ( get_header_image() ) ?>
<nav id="access" role="navigation">
<h3 class="assistive-text"><?php _e( 'Main menu', 'the-bootstrap' ); ?></h3>
<div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'the-bootstrap' ); ?>"><?php _e( 'Skip to primary content', 'the-bootstrap' ); ?></a></div>
<div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'the-bootstrap' ); ?>"><?php _e( 'Skip to secondary content', 'the-bootstrap' ); ?></a></div>
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'container' => 'div',
'container_class' => 'nav-collapse',
'menu_class' => 'nav',
'depth' => 2
) ); ?>
</div>
</div>
</div>
<?php endif; ?>
</nav><!-- #access -->
<?php if ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<nav id="breadcrumb" class="breadcrumb">', '</nav>' );
} ?>
</header><!-- #branding --><?php
/* End of file header.php */
/* Location: ./wp-content/themes/the-bootstrap/header.php */