diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-02 13:01:30 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-02 13:01:30 +0000 |
commit | 984138d1a523409f8b2fc84487ce21f69998de78 (patch) | |
tree | fee2758626ea626698e287b4880dd762a6d1a711 /views/default/messages | |
parent | 4990faf1ebf89b8f6bda96580fede8d9b17e8872 (diff) | |
download | elgg-984138d1a523409f8b2fc84487ce21f69998de78.tar.gz elgg-984138d1a523409f8b2fc84487ce21f69998de78.tar.bz2 |
rough implementation of Evan's page layout
git-svn-id: http://code.elgg.org/elgg/trunk@7496 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/messages')
-rw-r--r-- | views/default/messages/errors/list.php | 6 | ||||
-rw-r--r-- | views/default/messages/list.php | 14 | ||||
-rw-r--r-- | views/default/messages/messages/list.php | 4 |
3 files changed, 13 insertions, 11 deletions
diff --git a/views/default/messages/errors/list.php b/views/default/messages/errors/list.php index 6e1c5a888..88c3c6c2a 100644 --- a/views/default/messages/errors/list.php +++ b/views/default/messages/errors/list.php @@ -13,9 +13,9 @@ if (!empty($vars['object']) && is_array($vars['object'])) { foreach($vars['object'] as $error) { ?> - <div class="elgg-system-message hidden radius8 error"> - <?php echo elgg_view('messages/errors/error',array('object' => $error)); ?> - </div> + <li class="elgg-state-error radius8"> + <?php echo elgg_view('messages/errors/error', array('object' => $error)); ?> + </li> <?php } diff --git a/views/default/messages/list.php b/views/default/messages/list.php index 84cec1b34..dad1c23ab 100644 --- a/views/default/messages/list.php +++ b/views/default/messages/list.php @@ -8,14 +8,16 @@ * * @uses $vars['object'] The array of message registers */ + +if (!empty($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) { ?> -<div id="elgg-system-messages"> +<ul class="elgg-system-messages"> <?php - if (!empty($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) { - foreach($vars['object'] as $register => $list ) { - echo elgg_view("messages/{$register}/list", array('object' => $list)); - } + foreach ($vars['object'] as $register => $list ) { + echo elgg_view("messages/{$register}/list", array('object' => $list)); } ?> -</div>
\ No newline at end of file +</ul> +<?php +} diff --git a/views/default/messages/messages/list.php b/views/default/messages/messages/list.php index 6af17b929..924ebbd66 100644 --- a/views/default/messages/messages/list.php +++ b/views/default/messages/messages/list.php @@ -13,9 +13,9 @@ if (!empty($vars['object']) && is_array($vars['object'])) { foreach($vars['object'] as $message) { ?> - <div class="elgg-system-message hidden radius8"> + <li class="elgg-state-success radius8"> <?php echo elgg_view('messages/messages/message',array('object' => $message)); ?> - </div> + </li> <?php } |