-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.inc.php
32 lines (29 loc) · 1.09 KB
/
footer.inc.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
<?php
include_once('classes/Nudge.php');
$nudges = new Nudge();
$nudges->setUserId2($_SESSION['id']);
$nudgeCount = $nudges->unreadNudges();
include_once('classes/User.php');
$user = new User();
$user->setId($_SESSION['id']);
$token = $user->tokenFromSession();
?>
<footer>
<div class="middle">
<a href="map.php"><img src="images/map.svg" alt="map button" class="mapbtn"></a>
<div class="line"></div>
</div>
<nav>
<a href="index.php"><img src="images/home.svg" alt="home icon"></a>
<a href="allMyCommunities.php"><img src="images/list.svg" alt="list icon"></a>
<div class="slide">
<?php if ($nudgeCount['COUNT(*)'] > 0):?>
<div class="test"></div>
<?php endif; ?>
<a href="?nudge=true"><img src="images/notification.svg" alt="notification icon"></a>
</div>
<a
href="profile.php?u=<?php echo $token['activationToken']; ?>"><img
src="images/profile.svg" alt="profile icon"></a>
</nav>
</footer>