-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathheader.php
55 lines (46 loc) · 1.32 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
<?
/**
* @author Flurin Dürst
* @version 1.9.0
* @since WPSeed 0.1
*/
?>
<!DOCTYPE html>
<html <? language_attributes(); ?> class="<?= get_browser_name() ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, initial-scale=1">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<? WPSeed_gtm('head') ?>
<!--=== PRELOAD FONTS ===-->
<? WPSeed_preload_fonts() ?>
<!--=== WP HEAD ===-->
<? wp_head() ?>
</head>
<body>
<? WPSeed_gtm('body') ?>
<header>
<nav>
<a href="<?= get_bloginfo('url'); ?>">
<div class="logo"></div>
</a>
<!-- DESKTOP NAV -->
<?
if ( has_nav_menu( 'mainmenu' ) ) :
wp_nav_menu([
'menu_class'=> 'hidden_mobile',
'menu_id' => 'menu_main',
'container'=> false,
'depth' => 1,
'theme_location' => 'mainmenu'
]);
endif;
?>
<!-- MOBILE NAV (BURGER) -->
<button class="hamburger--squeeze" id="hamburger" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
</nav>
</header>