-
Notifications
You must be signed in to change notification settings - Fork 0
/
_navbar.php
59 lines (52 loc) · 2.36 KB
/
_navbar.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
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<i class="fa fa-bars"></i>
</button>
<!-- Topbar Navbar -->
<ul class="navbar-nav ml-auto">
<!-- Nav Item - Notification -->
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" id="notificationDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-bell"></i>
Notification
</a>
<!-- Dropdown - Notification -->
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
aria-labelledby="notificationDropdown">
<!-- Dropdown header -->
<h6 class="dropdown-header">Notifications</h6>
<!-- Dropdown items -->
<a class="dropdown-item" href="#">Notification 1</a>
<a class="dropdown-item" href="#">Notification 2</a>
<a class="dropdown-item" href="#">Notification 3</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">View All Notifications</a>
</div>
</li>
<div class="topbar-divider d-none d-sm-block"></div>
<!-- Nav Item - User Information -->
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Welcome: <?php echo $_SESSION['display_name'];?></span>
<img class="img-profile rounded-circle"
src="img/undraw_profile.svg">
</a>
</li>
</ul>
</nav>
<style>
.nav-item.dropdown.no-arrow .nav-link.dropdown-toggle.active {
color: #845EC2;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
var notificationButton = document.getElementById('notificationDropdown');
notificationButton.addEventListener('click', function() {
this.classList.toggle('active');
});
});
</script>