-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
51 lines (41 loc) · 2.08 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
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<title><?= the_title() ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','<?= get_field('google_tag_manager_key', 'option') ?>');</script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,900&display=swap" rel="stylesheet">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id='<?= get_field('google_tag_manager_key', 'apis') ?>'"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<?php wp_body_open(); ?>
<header id="header" class="fixed-top bg-white">
<nav class="navbar container navbar-expand-md" role="navigation">
<!--?php get_template_part('template-parts/headers/logo'); ?-->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<?php
wp_nav_menu(array(
'theme_location' => 'primary',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'navbar',
'menu_class' => 'nav navbar-nav ml-auto',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker()
));
?>
</nav>
</header>