messages.php 433 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Lists all system messages
  4. *
  5. * @uses $vars['object'] The array of message registers
  6. */
  7. if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
  8. echo '<ul class="elgg-system-messages">';
  9. foreach ($vars['object'] as $type => $list ) {
  10. foreach ($list as $message) {
  11. echo "<li class=\"elgg-state-$type\">";
  12. echo elgg_autop($message);
  13. echo '</li>';
  14. }
  15. }
  16. echo '</ul>';
  17. }