Last change
on this file was 0791611, checked in by sstalevska <sara.stalevska@…>, 2 years ago |
Push the entire project.
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Line | |
---|
1 | <?php
|
---|
2 | /**
|
---|
3 | * The navigation menu, included in multiple pages.
|
---|
4 | */
|
---|
5 | ?>
|
---|
6 | <nav class="navbar sticky-top navbar-expand-md navbar-light bg-light shadow-sm border-bottom">
|
---|
7 | <div class="container">
|
---|
8 | <a class="navbar-brand" href="/">
|
---|
9 | <img src="/img/logo.png" alt="WeService" height="41.5">
|
---|
10 | </a>
|
---|
11 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
---|
12 | <span class="navbar-toggler-icon"></span>
|
---|
13 | </button>
|
---|
14 | <div class="collapse navbar-collapse" id="navbarNav">
|
---|
15 | <ul class="navbar-nav me-auto">
|
---|
16 | <li class="nav-item">
|
---|
17 | <a class="nav-link <?= ($pageSlug == 'home') ? 'active" aria-current="page' : ''?>" href="/">Home</a>
|
---|
18 | </li>
|
---|
19 | <li class="nav-item">
|
---|
20 | <a class="nav-link <?= ($pageSlug == 'categories') ? 'active" aria-current="page' : ''?>" href="/categories.php">Categories</a>
|
---|
21 | </li>
|
---|
22 | <li class="nav-item">
|
---|
23 | <a class="nav-link <?= ($pageSlug == 'services') ? 'active" aria-current="page' : ''?>" href="/services.php">Services</a>
|
---|
24 | </li>
|
---|
25 | <li class="nav-item">
|
---|
26 | <a class="nav-link <?= ($pageSlug == 'businesses') ? 'active" aria-current="page' : ''?>" href="/businesses.php">Businesses</a>
|
---|
27 | </li>
|
---|
28 | </ul>
|
---|
29 | <ul class="navbar-nav">
|
---|
30 | <?php if (isset($_SESSION['is_reviewer'])) { ?>
|
---|
31 | <li class="nav-item">
|
---|
32 | <a class="nav-link disabled">Hi, <strong class="mr-3"><?= $_SESSION['reviewer_name'] ?></strong></a>
|
---|
33 | </li>
|
---|
34 | <li class="nav-item">
|
---|
35 | <a class="nav-link" href="/logout.php">Log out</a>
|
---|
36 | </li>
|
---|
37 | <?php } else { ?>
|
---|
38 | <li class="nav-item">
|
---|
39 | <a class="nav-link <?= ($pageSlug == 'login') ? 'active" aria-current="page' : ''?>" href="/login.php">Sign in</a>
|
---|
40 | </li>
|
---|
41 | <?php } ?>
|
---|
42 | </ul>
|
---|
43 | </div>
|
---|
44 | </div>
|
---|
45 | </nav>
|
---|
46 | <main class="pb-5"> |
---|
Note:
See
TracBrowser
for help on using the repository browser.