-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
67 lines (58 loc) · 1.77 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<?="\n".header_()."\n"?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php if (GA4_ACCOUNT) : ?>
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo GA4_ACCOUNT; ?>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<?php echo GA4_ACCOUNT; ?>');
</script>
<?php elseif(GA_ACCOUNT or CB_UID):?>
<script type="text/javascript">
var _sf_startpt = (new Date()).getTime();
<?php if(GA_ACCOUNT):?>
var GA_ACCOUNT = '<?=GA_ACCOUNT?>';
var _gaq = _gaq || [];
_gaq.push(['_setAccount', GA_ACCOUNT]);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
<?php endif;?>
<?php if(CB_UID):?>
var CB_UID = '<?=CB_UID?>';
var CB_DOMAIN = '<?=CB_DOMAIN?>';
<?php endif?>
</script>
<?php endif;?>
<script type="text/javascript">
var PostTypeSearchDataManager = {
'searches' : [],
'register' : function(search) {
this.searches.push(search);
}
}
var PostTypeSearchData = function(column_count, column_width, data) {
this.column_count = column_count;
this.column_width = column_width;
this.data = data;
}
</script>
</head>
<body class="<?=body_classes()?>">
<?php if ( has_nav_menu( 'nav-menu' ) ) : ?>
<nav class="header-nav">
<a class="mobile-nav-toggle" href="#"><div class="hamburger"></div>Menu</a>
<?=wp_nav_menu(array(
'theme_location' => 'nav-menu',
'container' => false,
'menu_class' => 'menu '.get_header_styles(),
'menu_id' => 'header-menu',
'depth' => 1
));
?>
</nav>
<?php endif; ?>