-
Notifications
You must be signed in to change notification settings - Fork 1
/
navbar.php
34 lines (23 loc) · 1.37 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
<style>
.active {
background-color:#e94b3cff;
color:white !important;
}
</style>
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<!--TO DO retrieve image per user -->
<li class="sidebar-brand"><a href="<?php echo $_ENV['site_home']?>profile"><img style="border-radius: 4px; word-break: break-all;" id="navbar-profile-img" src="../assets/uploads/<?php echo $_SESSION['user_id'] ?>.jpg" width="50px" height="50px" alt="Icon" /> <?php echo ($_SESSION['fullname']); ?></a></li>
<li><a class= "home" href=" <?php echo $_ENV['site_home'] ?>home">HOME</a></li>
<li><a class="search" href="<?php echo $_ENV['site_home'] ?>search">SEARCH </a></li>
<li><a class = "chat" href=" <?php echo $_ENV['site_home'] ?>chat">CHAT </a></li>
<li><a class = "profile" href="<?php echo $_ENV['site_home'] ?>profile">PROFILE </a></li>
<?php if (isset($_SESSION['user_id'])) {
echo '<li><a href="' . $_ENV['site_home'] . 'logout.php">LOGOUT</a></li>';
} ?>
<?php if ($_SESSION['admin'] == 1) {
echo '<li><a style="color:pink" href="' . $_ENV['site_home'] . 'admin ">ADMIN</a></li>';
} ?>
<li style="margin-left:0px; margin-top: 50px;" class="sidebar-brand"><a href="#"><img src="https://i.imgur.com/yFSkW1L.png" width="150px" height="150px"> </a></li>
</ul>
</div>