示例#1
0
}
?>
	

		<h1 class="animated bounceInDown text-center">Notifications</h1>
		<br />

<?php 
$currentPage = isset($_GET['page']) && is_numeric($_GET['page']) && $_GET['page'] > 0 ? $_GET['page'] : 1;
//Get current page
$notificationsPerPage = getConfigValue('notifications_per_page');
$pagesBehind = getConfigValue('notifications_pages_behind');
$pagesAhead = getConfigValue('notifications_pages_ahead');
$notificationManager = new notification_manager();
$notificationCount = $notificationManager->getNotificationCount();
$notificationsToDisplay = $notificationManager->getNotifications($notificationsPerPage, $notificationsPerPage * ($currentPage - 1));
foreach ($notificationsToDisplay as $notification) {
    ?>

		<div class="well clearfix">
			<div class="clearfix">
				<div class="pull-left">
					<h4><strong>
	<?php 
    if (!$notification->isRead) {
        echo '<span class="badge">!</span> ';
        //Display an indicator for unread notifications
    }
    if (!empty($notification->url)) {
        echo '<a href="' . $notification->url . '">' . $notification->summary . '</a>';
    } else {