header-home.php
5.05 KB
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
<?php include 'staging-lock.php'; ?>
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes() ?>><![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" <?php language_attributes() ?>><![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" <?php language_attributes() ?>><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" <?php language_attributes() ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo('charset') ?>">
<meta name="google-site-verification" content="GTvP0lRrA3o8bYYjvi8LR64PZIYIPLPVyxGj9EDQm2M" />
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<![endif]-->
<meta name="viewport" content="width=device-width" />
<meta name="facebook-domain-verification" content="yvu0p7s5ycmx5htkiw6wn8hmyb2rbo" />
<title><?php wp_title(' » ', true, 'right'); ?></title>
<script>
dataLayer = [{
'userId': '<?php echo get_current_user_id(); ?>'
}];
</script>
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'//www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-MWQJ2F');
</script>
<link rel="shortcut icon" type="image/x-icon" href="<?php bloginfo('url'); ?>/favicon.ico">
<link rel="apple-touch-icon" href="<?php bloginfo('url'); ?>/apple-touch-icon.png">
<?php wp_head() ?>
</head>
<body <?php body_class() ?>>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MWQJ2F" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager -->
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
your browser</a> to improve your experience.</p>
<![endif]-->
<?php $current_user = wp_get_current_user(); ?>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<?php wp_nav_menu(array(
'theme_location' => 'main-nav',
'container' => 'nav',
'menu_class' => 'sf-menu',
'walker' => new commonwell_walker_nav_menu
)) ?>
<a href='/wp-login.php' class='broker-login home-page-link'>Broker Login</a>
</div>
<div id="content">
<div id="content-wrap">
<header id="page-header-home">
<div id="other-header">
<div id="new-page-logo">
<a href="<?php bloginfo('url') ?>/" title="<?php bloginfo('name') ?> - <?php bloginfo('description') ?>">
<img id="otherpage-logo" src="<?php bloginfo('template_directory') ?>/images/Commonwell-logo.svg" alt="Commonwell Mutual Insurance Group logo" />
</a>
</div>
<div class="row header-row">
<div id='header'>
<div id="myTopnav" class="topnav">
<?php if(is_page_template("impact.php")){?>
<h1>Impact Report: <strong>2021</strong></h1>
<?php } ?>
<a href='/wp-login.php' class='broker-login home-page-link'>Broker Login</a>
<?php wp_nav_menu(array(
'theme_location' => 'main-nav',
'container' => 'nav',
'container_id' => 'primary-nav',
'menu_class' => 'sf-menu',
'walker' => new commonwell_walker_nav_menu
)) ?>
</div>
<span id="mobile-menu-btn" class="mobile-menu-btn" onclick="openNav()" title="menu-btn">Mobile menu link</span>
</div>
</div>
</div>
</header>
</div>
<script>
function toggle_mobile_menu() {
jQuery(document).ready(
function($) {
$(".mobile_collapse").slideToggle(300);
$("#mySidenav").removeClass('mySidenavOpen');
$(".people_span").removeClass('peopleOpen');
if ($("#seacrh_mobile").css('display') == 'block') {
$("#seacrh_mobile").slideToggle();
}
}
);
}
// Using jQuery.
</script>