aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/elements/messages.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-05-25 21:50:52 +0200
committerSem <sembrestels@riseup.net>2012-05-25 21:50:52 +0200
commit60df8b304bd70b5ddc79927abec1b1dc2eb706ee (patch)
tree36828d43b5f1b8cd21c8ad1ef3fdd19b8564de9a /views/default/page/elements/messages.php
downloadelgg-60df8b304bd70b5ddc79927abec1b1dc2eb706ee.tar.gz
elgg-60df8b304bd70b5ddc79927abec1b1dc2eb706ee.tar.bz2
Purity2 Theme by SocialApparatus.
http://community.elgg.org/pg/plugins/project/874669/developer/sbarron/purity2-theme-for-elgg-18
Diffstat (limited to 'views/default/page/elements/messages.php')
-rw-r--r--views/default/page/elements/messages.php27
1 files changed, 27 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..869ce2b5e
--- /dev/null
+++ b/views/default/page/elements/messages.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * Elgg global system message list
+ * Lists all system messages
+ *
+ * @package Elgg
+ * @subpackage Core
+ *
+ * @uses $vars['object'] The array of message registers
+ */
+echo '<div style="width:990px;margin:0px auto;position:relative;">';
+echo '<ul class="elgg-system-messages">';
+
+// hidden li so we validate
+echo '<li class="hidden"></li>';
+
+if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
+ foreach ($vars['object'] as $type => $list ) {
+ foreach ($list as $message) {
+ echo "<li class=\"elgg-message elgg-state-$type\">";
+ echo autop($message);
+ echo '</li>';
+ }
+ }
+}
+
+echo '</ul></div>';