aboutsummaryrefslogtreecommitdiff
path: root/views/installation/page/elements/messages.php
blob: 46261dca40491315ce779c16a93f6e26a6a4fde2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Lists all system messages
 *
 * @uses $vars['object'] The array of message registers
 */

if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {

	echo '<ul class="elgg-system-messages">';

	foreach ($vars['object'] as $type => $list ) {
		foreach ($list as $message) {
			echo "<li class=\"elgg-state-$type\">";
			echo elgg_autop($message);
			echo '</li>';
		}
	}

	echo '</ul>';
}