diff options
Diffstat (limited to 'views/failsafe/messages/errors')
-rw-r--r-- | views/failsafe/messages/errors/error.php | 20 | ||||
-rw-r--r-- | views/failsafe/messages/errors/list.php | 37 |
2 files changed, 57 insertions, 0 deletions
diff --git a/views/failsafe/messages/errors/error.php b/views/failsafe/messages/errors/error.php new file mode 100644 index 000000000..8e7dbb84a --- /dev/null +++ b/views/failsafe/messages/errors/error.php @@ -0,0 +1,20 @@ +<?php
+
+ /**
+ * Elgg error message
+ * Displays a single error message
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['object'] An error message (string)
+ */
+?>
+
+ <p>
+ <?php echo $vars['object']; ?>
+ </p>
\ No newline at end of file diff --git a/views/failsafe/messages/errors/list.php b/views/failsafe/messages/errors/list.php new file mode 100644 index 000000000..ff43f1d00 --- /dev/null +++ b/views/failsafe/messages/errors/list.php @@ -0,0 +1,37 @@ +<?php
+
+ /**
+ * Elgg list errors
+ * Lists error messages
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['object'] An array of error messages
+ */
+
+ if (!empty($vars['object']) && is_array($vars['object'])) {
+
+?>
+
+ <div class="messages">
+ <div class="messages-errors">
+
+<?php
+ foreach($vars['object'] as $error) {
+ echo elgg_view('messages/errors/error',array('object' => $error)); + echo "<hr />";
+ }
+?>
+ </div>
+ </div>
+<?php
+ }
+
+
+
+?>
\ No newline at end of file |