forked from victorianwaderstudygroup/vwsg-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
74 lines (65 loc) · 2.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html <?php language_attributes(); ?> lang="en">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6D0QPMHHPB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-6D0QPMHHPB');
</script>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="device-xs visible-xs"></div>
<div class="device-sm visible-sm"></div>
<div class="device-md visible-md"></div>
<div class="device-lg visible-lg"></div>
<nav class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="<?= site_url(); ?>">
<img class="navbar-logo" src="<?= get_template_directory_uri() ?>/images/logo.svg" alt="<?php bloginfo('site_title'); ?>">
Victorian Wader Study Group
</a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-menu" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php wp_page_menu([
'container_id' => 'top-menu',
'container_class' => '',
'menu_class' => 'navbar-collapse collapse',
'menu_id' => 'top-menu',
'before' => '<ul class="nav navbar-nav">',
'depth' => 1,
'exclude' => '34'
]); ?>
<?php get_search_form(); ?>
</div>
</div>
</nav>
<div class="container">
<?php
$parent_post = get_top_ancestor();
$child_pages = get_child_pages($parent_post);
if (count($child_pages)) {
?>
<div class="row visible-sm visible-xs toggle-submenu-wrapper">
<div class="col-xs-12">
<div class="toggle-submenu pull-right">
<div class="show-menu">
<button class="btn"><i class="fas fa-bars"></i> Show submenu</button>
</div>
<div class="hide-menu">
<button class="btn"><i class="fas fa-bars"></i> Hide submenu</button>
</div>
</div>
</div>
</div>
<?php } ?>