-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
78 lines (49 loc) · 2.65 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
76
77
78
<!doctype html>
<!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html <?php language_attributes(); ?> class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html <?php language_attributes(); ?> class="no-js"> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php bloginfo('name'); ?> | <?php is_home() ? bloginfo('description') : wp_title(''); ?></title>
<meta name="description" content="<?php get_bloginfo ( 'description' ); ?>">
<meta name="author" content="James Koster">
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="<?php bloginfo ( 'template_url' ); ?>/favicon.ico">
<link rel="apple-touch-icon" href="<?php bloginfo ( 'template_url' ); ?>/apple-touch-icon.png">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!-- CSS : implied media="all" -->
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php wp_head(); ?>
<?php
$koster_options = get_option('koster_theme_options');
?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo $koster_options['analytics_id']; ?>']);
_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 <?php body_class(); ?>>
<div id="wrapper" class="<?php if (!is_home()) echo 'not-home'; ?>">
<header id="header" class="row visible">
<?php display_logo(); ?>
<?php if ( is_home() ) { ?>
<h1 class="fourcol site-title"><?php bloginfo('name'); ?></h1>
<?php } else { ?>
<a href="<?php echo home_url(); ?>" class="fourcol site-title "><?php bloginfo('name'); ?></a>
<?php } ?>
<h3 class="nav-toggle"><a href="#"><?php _e('Navigation','koster'); ?></a></h3>
<nav class="main-nav sixcol last">
<?php wp_nav_menu( 'main' ); ?>
</nav>
</header>