-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
113 lines (88 loc) · 3.23 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
<?php echo get_bloginfo('name'); ?> |
<?php echo get_bloginfo('description'); ?>
</title>
<?php wp_head(); ?>
</head>
<body>
<?php
// check if is child site in multisite
if (is_multisite() && !is_main_site()) :
// bail early if woocommerce shop
if (function_exists('is_shop') && is_shop()) :
return;
endif;
endif;
?>
<!-- contact bar top -->
<div id="contact-bar-top" class="container-fluid bg-dark-subtle">
<div class="row py-1">
<!-- phone -->
<div class="col">
<a href="tel:+27736336930" class="d-inline-block link-dark text-decoration-none" style="font-weight:500">
<i class="bi bi-telephone-fill"></i>
+27 73 633 6930
</a>
</div>
<!-- email -->
<div class="col text-end">
<a href="mailto:info@excelleratetech.com" class="d-inline-block link-dark text-decoration-none" style="font-weight:500">
<i class="bi bi-envelope-at-fill"></i>
info@excelleratetech.com
</a>
</div>
</div>
</div>
<!-- navigation top -->
<nav class="navbar navbar-expand-lg bg-dark shadow-lg sticky-top mb-0" data-bs-theme="dark">
<div class="container-fluid">
<!-- brand and home link -->
<a class="navbar-brand me-5" href="<?php echo get_home_url(); ?>">
<img id="logoTop" src="<?php echo EXTECH_URI . '/assets/img/logo-sbs.png'; ?>" alt="Excellerate Convenience">
</a>
<!-- nav toggler -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navLinks" aria-controls="navLinks" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navLinks">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<!-- Home -->
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="<?php echo get_home_url(); ?>">Home</a>
</li>
<!-- What We Do -->
<li class="nav-item">
<a class="nav-link" href="#what_we_do">What We Do</a>
</li>
<!-- How It Works -->
<li class="nav-item">
<a class="nav-link" href="#how_it_works">How It Works</a>
</li>
<!-- About -->
<!-- <li class="nav-item">
<a class="nav-link" href="#about_us">About</a>
</li> -->
<!-- Contact -->
<li class="nav-item">
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
<div class="d-flex">
<a href="<?php echo get_site_url() . '/dashboard/log-in/'; ?>" class="text-light pt-2 pe-3">Already registered? Log in.</a>
<a href="<?php echo get_site_url() . '/register'; ?>" id="navbar_register" class="btn btn-warning text-uppercase" title="Register your shop today">Register</a>
</div>
</div>
</div>
</nav>
<script>
$ = jQuery;
$('.nav-link').click(function() {
$('.nav-link').removeClass('active');
$(this).addClass('active');
});
</script>