diff options
Diffstat (limited to 'views/default/page_elements')
-rw-r--r-- | views/default/page_elements/messages.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/views/default/page_elements/messages.php b/views/default/page_elements/messages.php new file mode 100644 index 000000000..f44d1204b --- /dev/null +++ b/views/default/page_elements/messages.php @@ -0,0 +1,28 @@ +<?php +/** + * Elgg global system message list + * Lists all system messages + * + * @package Elgg + * @subpackage Core + * + * @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 radius8\">"; + echo elgg_view('output/longtext', array( + 'value' => $message, + 'parse_urls' => false + )); + echo '</li>'; + } + } + + echo '</ul>'; +} |