-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-base.php
76 lines (66 loc) · 3.71 KB
/
header-base.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
<!doctype html>
<head lang="en">
<meta charset="utf-8">
<title><?php bloginfo('name'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta name="description" content="<?php bloginfo('description'); ?>">
<meta name="keywords" content="Java,Database,Stream,Pure,ORM">
<meta name="author" content="Speedment, Inc.">
<meta name="google-site-verification" content="aXJW68kMbD2Mb0zRHCVkiSoe5ao6OUgNg8_RPVt5Qdo" />
<link href="<?php bloginfo('stylesheet_url');?>" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
wp_enqueue_script("jquery");
if (basename(get_page_template()) == 'contact-page.php') {
echo '<script src="https://www.google.com/recaptcha/api.js" async defer></script>';
}
wp_head();
?>
</head>
<body>
<header class="container-fluid">
<div id="nav-bar-wrapper"<?php echo is_user_logged_in() ? ' class="logged-in"' : ''; ?>>
<nav class="navbar navbar-toggleable-md navbar-light hidden-md-down navbar-shadow" role="navigation">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#speedment-navbar" aria-controls="speedment-navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="/">
<div class="logo"></div>
<!-- <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/brand/speedment-black.png" height="55" class="d-inline-block align-top" alt="Speedment"> -->
</a>
<!-- Brand and toggle get grouped for better mobile display -->
<?php wp_nav_menu(array(
'menu' => 'top-left-menu',
'theme_location' => 'top-left-menu',
'depth' => 3,
'container' => 'div',
'container_class' => 'collapse navbar-collapse justify-content-center',
'container_id' => 'speedment-navbar',
'menu_class' => 'navbar-nav',
'walker' => new bootstrap_4_walker_nav_menu())
); ?>
<a class="btn btn-secondary-white d-inline-block align-top" href="https://www.speedment.com/initializer">Download Now</a>
</nav>
<nav class="navbar navbar-toggleable-md navbar-light bg-white hidden-lg-up" role="navigation">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#mobile-navbar" aria-controls="mobile-navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="/">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/brand/speedment-black.png" height="40" class="d-inline-block align-top" alt="Speedment">
</a>
<!-- Brand and toggle get grouped for better mobile display -->
<?php wp_nav_menu(array(
'menu' => 'top-mobile-menu',
'theme_location' => 'top-mobile-menu',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'mobile-navbar',
'menu_class' => 'navbar-nav',
'walker' => new bootstrap_4_walker_nav_menu())
); ?>
</nav>
</div>