Project

General

Profile

1
<?php
2

    
3
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
4

    
5
?>
6

    
7
<div>
8
	<?php if (count($alerts) == 0) { ?>
9
		<h3>No new alerts</h3>
10
	<?php } else { ?>
11
		<?php foreach ($alerts as $alert) { ?>
12
			<?php if ($displayTitle) { ?>
13
				<h3><?php echo($alert['title']); ?></h3>
14
			<?php } ?>
15
			<h4><?php echo(date($dateFormat, strtotime($alert['time']))); ?></h4>
16
			<p>
17
				<a href="<?php echo($alert['link']); ?>"><?php echo($alert['message']); ?></a>
18
			</p>
19
		<?php } ?>
20
	<?php } ?>
21
</div>
22

    
(1-1/2)