Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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>';
$vars['entity']
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:56
if(!$display_name) $type
Definition: delete.php:27