09-01-2017, 05:59 PM
Here is my notifications class:
https://pastebin.com/B7B3xzen
navigation.php:
https://pastebin.com/Yp0zNwYQ
getNotifications.php (Ajax parser):
https://pastebin.com/VJ38bzwd
page_footer.php
https://pastebin.com/aETkyRLX
I did have an issue with the font colors on my end being white despite any css changes. I didn't immediately see any reason for it to happen. I also have a style change for the 'new' badge but wasn't sure where to put it. Maybe simply in a style tag right above the notifications modal?
A new notification can be added easily:
For example:
https://pastebin.com/B7B3xzen
navigation.php:
https://pastebin.com/Yp0zNwYQ
getNotifications.php (Ajax parser):
https://pastebin.com/VJ38bzwd
page_footer.php
https://pastebin.com/aETkyRLX
I did have an issue with the font colors on my end being white despite any css changes. I didn't immediately see any reason for it to happen. I also have a style change for the 'new' badge but wasn't sure where to put it. Maybe simply in a style tag right above the notifications modal?
Code:
.badge-notif {
Code:
font-size: 8px;
Code:
background: #245eb3;
Code:
}
A new notification can be added easily:
Code:
$notifications->addNotification($message, $id);
For example:
Code:
$msg = 'A new time off request requires approval. <a href="'.$us_url_root.'users/staff_timeoff_approval">Go to page</a>';
Code:
$notifications->addNotification($msg, $empId);