-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathheader.php
62 lines (53 loc) · 2.27 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<!-- Meta Tags & Browser Stuff -->
<meta name="description" content="<?php bloginfo("description"); ?>" />
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/favicon.ico" />
<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<!-- Make the HTML5 elements work in IE. -->
<!--[if IE]>
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- The mountain of stuff WP puts in -->
<?php wp_head(); ?>
<!-- CSS -->
<!-- <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/css/sass.css" /> -->
<?php $ga_tracking_code = get_option('ga_tracking_code'); if ($ga_tracking_code) : ?>
<!-- GOOGLE ANALYTICS -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo $ga_tracking_code; ?>']);
_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>
<?php endif; ?>
<?php
if (is_singular() && get_option('thread_comments')) :
wp_enqueue_script('comment-reply');
endif;
?>
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<header>
<a class="logo" href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a>
<nav>
<ul>
<?php wp_nav_menu(array(
'sort_column' => 'menu_order',
'container_class' => 'menu-header',
'menu' => 'Header',
'container' => '',
'items_wrap' => '%3$s'
)); ?>
</ul>
</nav>
</header>