This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.php
90 lines (86 loc) · 2.79 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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php wp_title('|') ?></title>
<?php wp_head(); ?>
</head>
<?php
//get main settings
global $_set;
$settings = $_set->settings;
?>
<body <?php body_class(); ?>>
<!-- MENU MOBILE -->
<div class="show-for-small-only mobile-nav primary gradient-blue">
<div class="grid-container">
<div class="grid-x align-justify">
<div class="cell small-8">
<a href="<?php bloginfo('url') ?>">
<div class="mobile-logo"></div>
</a>
</div>
<div class="cell small-1">
<a href="#" class="mobile-nav-open"><span class="dashicons dashicons-menu"></span></a>
</div>
</div>
</div>
</div>
<div class="menu-mobile-container closed">
<a class="close" href="#"><span class="dashicons dashicons-no"></span></span></a>
<?php
$args = array(
'theme_location' => 'main-menu-mobile',
'container' => '',
'depth' => 2,
'fallback_cb' => false,
'items_wrap' => '<ul id = "%1$s" class = "menu vertical %2$s" data-magellan>%3$s</ul>'
);
wp_nav_menu( $args );
?>
</div>
<header class="main-header-sticky hide-for-small-only">
<div class="grid-container gradient-blue">
<div class="grid-x grid-padding-x navigation hide-for-small-only">
<div class="cell large-3 medium-2 columns mini-logo">
<a href="<?php bloginfo('url') ?>"><h1 class="site-title"><?php bloginfo('name') ?></h1><span class="tagline">State of the commons</span></a>
</div>
<div class="cell large-9 medium-10 columns nav">
<nav class="main-navigation">
<?php
$args = array(
'theme_location' => 'main-menu',
'container' => '',
'fallback_cb' => false,
'items_wrap' => '<ul id = "%1$s" class = "menu %2$s" data-magellan>%3$s</ul>'
);
wp_nav_menu( $args );
?>
</nav>
</div>
</div>
</div>
</header>
<header class="main-header hide-for-small-only">
<div class="grid-container gradient-blue">
<div class="grid-x grid-padding-x navigation hide-for-small-only">
<div class="cell large-3 columns logo">
<a href="<?php bloginfo('url') ?>"><h1 class="site-title"><?php bloginfo('name') ?></h1><span class="tagline">State of the commons</span></a>
</div>
<div class="cell large-9 columns nav">
<nav class="main-navigation">
<?php
$args = array(
'theme_location' => 'main-menu',
'container' => '',
'fallback_cb' => false,
'items_wrap' => '<ul id = "%1$s" class = "menu %2$s" data-magellan>%3$s</ul>'
);
wp_nav_menu( $args );
?>
</nav>
</div>
</div>
</div>
</header>