Elgg  Version 1.11
messages.php
Go to the documentation of this file.
1 <?php
12 echo '<ul class="elgg-system-messages">';
13 
14 // hidden li so we validate
15 echo '<li class="hidden"></li>';
16 
17 if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
18  foreach ($vars['object'] as $type => $list ) {
19  foreach ($list as $message) {
20  echo "<li class=\"elgg-message elgg-state-$type\">";
21  echo elgg_autop($message);
22  echo '</li>';
23  }
24  }
25 }
26 
27 echo '</ul>';
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