-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
78 lines (74 loc) · 3.06 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 IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php bloginfo('name'); ?> » <?php is_home() ? bloginfo('description') : wp_title(''); ?></title>
<link href='http://fonts.googleapis.com/css?family=Lato:400,900' rel='stylesheet' type='text/css'>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="icon" href="http://img.photobucket.com/albums/v36/Dayuse/Comics/Maddy/favicon.gif" type="image/gif" >
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php
// Support for threaded comments
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<!-- Project Wonderful Ad Box Loader -->
<!-- Put this after the <body> tag at the top of your page -->
<script type="text/javascript">
(function(){function pw_load(){
if(arguments.callee.z)return;else arguments.callee.z=true;
var d=document;var s=d.createElement('script');
var x=d.getElementsByTagName('script')[0];
s.type='text/javascript';s.async=true;
s.src='//www.projectwonderful.com/pwa.js';
x.parentNode.insertBefore(s,x);}
if (window.attachEvent){
window.attachEvent('DOMContentLoaded',pw_load);
window.attachEvent('onload',pw_load);}
else{
window.addEventListener('DOMContentLoaded',pw_load,false);
window.addEventListener('load',pw_load,false);}})();
</script>
<!-- End Project Wonderful Ad Box Loader -->
<div id="mm-page">
<header id="mm-header">
<section class="mm-ad mm-ad-header">
</section>
<hgroup id="mm-logo">
<h1><a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h2><a href="<?php echo home_url(); ?>"><?php bloginfo( 'description' ); ?></a></h2>
</hgroup>
<nav class="mm-menu mm-menu-header">
<ul>
<?php foreach( MaddyMcGee::get_header_menu_items() as $menu_item_key => $menu_item ) : ?>
<li class="mm-menu-item mm-menu-header-item mm-menu-header-item-<?php echo $menu_item_key; ?>">
<a href="<?php echo home_url( $menu_item_key != 'home' ? $menu_item_key : '' ); ?>" class="<?php echo is_page( $menu_item_key ) ? 'mm-active' : ''; ?>">
<?php echo $menu_item['text'];?>
<?php if( isset( $menu_item['subtext'] ) ) : ?>
<span><?php echo $menu_item['subtext']; ?></span>
<?php endif; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</nav>
</header>