-
Notifications
You must be signed in to change notification settings - Fork 64
/
header.php
75 lines (57 loc) · 2.29 KB
/
header.php
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
<!DOCTYPE html>
<html xmlns:fb="http://ogp.me/ns/fb#" lang="en">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object#">
<meta charset="utf-8">
<meta name="apple-itunes-app" content="app-id=463248665"/>
<title><?php bloginfo('name'); ?> | <?php is_front_page() ? bloginfo( 'description' ) : wp_title( '' ); ?></title>
<meta name="description" content="<?php if ( is_single() ) {
echo wp_trim_words( strip_shortcodes( get_the_content( '...' ) ), 20 );
} else {
echo bloginfo( 'name' ) . ' - ' . bloginfo( 'description' );
}
?>" />
<?php wp_head(); ?>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body id="bootstrap-js" <?php body_class(); ?>>
<header id="header">
<div class="container">
<div class="row">
<div class="span12">
<p class="tagline"><?php echo bloginfo( 'description' ); ?></p>
</div>
<div class="span12">
<!-- Custom Header Here -->
<h1>
<a href="<?php echo home_url( '/' ); ?>"><img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" title="<?php echo bloginfo( 'name' ); ?>" alt="<?php echo bloginfo( 'description' ); ?>" /></a>
</h1>
</div>
<div class="span12">
<div class="nav navi">
<?php
wp_nav_menu( array(
'theme_location' => 'header-menu',
'container' => false,
'link_before' => '<div>',
'link_after' => '</div>',
'items_wrap' => '<ul id="%1$s" class="%2$s nav nav-pills">%3$s</ul>',
) );
?>
</div><!--end nav wrapper-->
</div>
</div>
</div>
</header>