Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
if (!empty($alertList)) {
3
	foreach ($alertList as $alertInfo) {
4
	    $alertType = "light";
5
	    if (empty($alertInfo['visited'])) {
6
	       $alertType = !empty($alertInfo['alert_type']) ? $alertInfo['alert_type'] : "success";
7
	    }
8
 
9
	    $alertLink = "#";
10
	    if (!empty($alertInfo['alert_url'])) {
11
	        $alertLink = stristr($alertInfo['alert_url'], 'http') ? $alertInfo['alert_url'] : Spider::addTrailingSlash(SP_WEBPATH) . $alertInfo['alert_url'];
12
	    }
13
		?>
14
		<li class="list-group-item list-group-item-<?php echo $alertType?>">
15
			<div>
16
				<a href="<?php echo $alertLink?>"><?php echo $alertInfo["alert_subject"]?></a>
17
			</div>
18
			<div style="margin-top: 6px;"><?php echo $alertInfo["alert_message"]?></div>
19
			<div style="margin-top: 6px;font-size: 12px;text-align: right;"><?php echo timeElapsedString($alertInfo['alert_time'])?></div>
20
		</li>
21
		<?php
22
	}
23
} else {
24
	?>
25
	<li class="list-group-item list-group-item-light"><a href="#" class="text-bold text-italic">No Notification Found</a></li>
26
	<?php
27
}
28
?>
29
<li class="list-group-item list-group-item-secondary" style="text-align: center;line-height: 0px; border-bottom: none;">
30
	<a href="<?php echo SP_WEBPATH?>/admin-panel.php?sec=alerts" style="font-size: 10px; ">See All</a>
31
</li>