Elgg  Version 1.9
messages.php
Go to the documentation of this file.
1 <?php
8 if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
9 
10  echo '<ul class="elgg-system-messages">';
11 
12  foreach ($vars['object'] as $type => $list ) {
13  foreach ($list as $message) {
14  echo "<li class=\"elgg-state-$type\">";
15  echo elgg_autop($message);
16  echo '</li>';
17  }
18  }
19 
20  echo '</ul>';
21 }
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:56
elgg echo
Translates a string.
Definition: languages.js:43
$type
Definition: add.php:8
if(file_exists($welcome)) $vars
Definition: upgrade.php:93