-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
156 lines (143 loc) · 4.71 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package filmscene
*/
?>
<!DOCTYPE html>
<html <?php language_attributes();
?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
<title><?php wp_title( '|', true, 'right' ); ?>Rausch Productions</title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url');?>">
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/img/icon/favicon.png" />
<?php
wp_head();
global $post;
?>
<script src="//use.typekit.net/mhx0ocv.js"></script>
<script>try{Typekit.load();}catch(e){}</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</head>
<body>
<header class="global-header push-menu-right">
<a href="/" class="logotype"></a>
<nav class="nav-primary">
<?php
$defaults = array(
'theme_location' => '',
'menu' => 'main-menu',
'container' => false,
'container_class' => '',
'menu_class' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => ''
);
wp_nav_menu( $defaults );
?>
</nav>
<?php
if(is_page('Work') || $post->post_parent == 5) {
?>
<nav class="nav-secondary">
<?php
$defaults = array(
'theme_location' => '',
'menu' => 'work-menu',
'container' => false,
'container_class' => '',
'menu_class' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => ''
);
wp_nav_menu( $defaults );
?>
</nav>
<?php
}
?>
<?php
if(is_page('Services') || $post->post_parent == 7) {
?>
<nav class="nav-secondary">
<?php
$defaults = array(
'theme_location' => '',
'menu' => 'service-menu',
'container' => false,
'container_class' => '',
'menu_class' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => ''
);
wp_nav_menu( $defaults );
?>
</nav>
<?php
}
?>
<?php
if(is_page('LED Technology') || $post->post_parent == 9) {
?>
<nav class="nav-secondary">
<?php
$defaults = array(
'theme_location' => '',
'menu' => 'led-menu',
'container' => false,
'container_class' => '',
'menu_class' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => ''
);
wp_nav_menu( $defaults );
?>
</nav>
<?php
}
?>
<script type="text/javascript">
$(document).ready(function(){
var $sharpspring = $('body').children('img').last();
$sharpspring.css('height', '1px');
});
</script>
</header>
<button type="button" role="button" class="lines-button toggle-push-right"><span class="lines"></span></button>
<main>