diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 18:03:24 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 18:03:24 +0000 |
commit | 562bc001f3002f43c343cc63bbbe3e9cb421de32 (patch) | |
tree | 232e0534386a6250315f20a8eaf9037197b8003d /views/default/layout/shells/admin.php | |
parent | 412d337ee7f1463dc4ea4cf1d23415b10749f996 (diff) | |
download | elgg-562bc001f3002f43c343cc63bbbe3e9cb421de32.tar.gz elgg-562bc001f3002f43c343cc63bbbe3e9cb421de32.tar.bz2 |
Refs #2950: layout/shells => page/layouts
git-svn-id: http://code.elgg.org/elgg/trunk@8286 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/shells/admin.php')
-rw-r--r-- | views/default/layout/shells/admin.php | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/views/default/layout/shells/admin.php b/views/default/layout/shells/admin.php deleted file mode 100644 index 7ba4abbd1..000000000 --- a/views/default/layout/shells/admin.php +++ /dev/null @@ -1,84 +0,0 @@ -<?php -/** - * Elgg Admin Area Canvas - * - * @package Elgg - * @subpackage Core - * - * @uses $vars['content'] Content string - * @uses $vars['sidebar'] Optional sidebar content - * @uses $vars['title'] Title string - */ - -$admin_title = elgg_get_site_entity()->name . ' ' . elgg_echo('admin'); - -$view_site = elgg_view('output/url', array( - 'href' => elgg_get_site_url(), - 'text' => elgg_echo('admin:view_site'), -)); -$logout = elgg_view('output/url', array( - 'href' => 'action/logout', - 'text' => elgg_echo('logout'), -)); -?> - -<div class="elgg-page-header"> - <div class="elgg-inner clearfix"> - <h1 class="elgg-heading-site"> - <a href="<?php echo elgg_get_site_url(); ?>pg/admin/"> - <?php echo $admin_title; ?> - </a> - </h1> - <ul class="elgg-menu-user"> - <li><?php echo elgg_echo('admin:loggedin', array(elgg_get_logged_in_user_entity()->name)); ?></li> - <li><?php echo $view_site; ?></li> - <li><?php echo $logout; ?></li> - </ul> - </div> -</div> - -<?php -// @todo clean up system messages code -$messages = null; -if (count_messages()) { - // get messages - try for errors first - $messages = system_messages(NULL, "error"); - if (count($messages["error"]) == 0) { - // no errors so grab rest of messages - $messages = system_messages(null, ""); - } else { - // we have errors - clear out remaining messages - system_messages(null, ""); - } -} -echo elgg_view('page/elements/messages', array('object' => $messages)); -?> - -<div class="elgg-page-body"> - <div class="elgg-sidebar clearfix"> - <?php - echo elgg_view('admin/sidebar/top', $vars); - echo elgg_view('layout/shells/admin/menu', $vars); - echo elgg_view('admin/sidebar/bottom', $vars); - ?> - </div> - <div class="elgg-main elgg-body"> - <div class="elgg-head"> - <?php - if (isset($vars['title'])) { - echo elgg_view_title($vars['title']); - } - ?> - </div> - <?php - if (isset($vars['content'])) { - echo $vars['content']; - } - ?> - </div> -</div> -<div class="elgg-page-footer"> -</div> -<?php - -echo elgg_view('footer/analytics'); |