More spruce up of notifications

This commit is contained in:
johnnyq 2023-02-23 17:46:20 -05:00
parent 8f1c3613c4
commit b4ee800a4b
1 changed files with 5 additions and 7 deletions

View File

@ -48,20 +48,20 @@
</a>
<div class="dropdown-menu dropdown-menu-xlg dropdown-menu-right" style="left: inherit; right: 0px;">
<span class="dropdown-item dropdown-header"><i class="fas fa-fw fa-bell mr-2"></i><?php echo $num_notifications; ?> Notifications</span>
<a href="notifications.php" class="dropdown-item dropdown-header"><i class="fas fa-fw fa-bell mr-2"></i><strong><?php echo $num_notifications; ?></strong> Notifications</a>
<div class="dropdown-divider"></div>
<?php
while ($row = mysqli_fetch_array($sql_notifications)) {
$notification_id = intval($row['notification_id']);
$notification_type = htmlentities($row['notification_type']);
$notification = htmlentities($row['notification']);
$notification_timestamp = htmlentities($row['notification_timestamp']);
$notification_timestamp = date('M d g:ia',strtotime($row['notification_timestamp']));
?>
<a href="post.php?dismiss_notification=<?php echo $notification_id; ?>" class="dropdown-item">
<p class="mb-0">
<p class="mb-1">
<span class="text-bold"><i class="fas fa-bullhorn mr-2"></i><?php echo $notification_type; ?></span>
<span class="float-right text-muted text-sm"><?php echo $notification_timestamp; ?></span>
<small class="float-right text-muted"><?php echo $notification_timestamp; ?></small>
</p>
<small class="text-secondary"><?php echo $notification; ?></small>
</a>
@ -71,9 +71,7 @@
?>
<div class="dropdown-divider"></div>
<a href="notifications.php" class="dropdown-item dropdown-footer text-primary">See All Notifications</a>
<div class="dropdown-divider"></div>
<a href="post.php?dismiss_all_notifications" class="dropdown-item dropdown-footer text-secondary text-bold"><i class="fa fa-fw fa-check mr-2"></i>Dismiss All Notifications</a>
<a href="post.php?dismiss_all_notifications" class="dropdown-item dropdown-footer text-secondary text-bold"><i class="fa fa-fw fa-check mr-2"></i>Dismiss Notifications</a>
</div>
</li>
<?php } else { ?>