aboutsummaryrefslogtreecommitdiff
path: root/views/installation/page/elements/messages.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/installation/page/elements/messages.php')
-rw-r--r--views/installation/page/elements/messages.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/installation/page/elements/messages.php b/views/installation/page/elements/messages.php
new file mode 100644
index 000000000..2a06a7b1e
--- /dev/null
+++ b/views/installation/page/elements/messages.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Lists all system messages
+ *
+ * @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\">";
+ echo autop($message);
+ echo '</li>';
+ }
+ }
+
+ echo '</ul>';
+}