diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-23 03:31:40 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-23 03:31:40 +0000 |
commit | 73d5501621d74bcf57a108abef08169ef4ba4977 (patch) | |
tree | f8cb4070ce24d816f0e95a5c52ba546d7386cf93 /views/default/layout/shells/admin.php | |
parent | 391eff471bf8fd2d44bee0ec08ff4253ed9a6691 (diff) | |
download | elgg-73d5501621d74bcf57a108abef08169ef4ba4977.tar.gz elgg-73d5501621d74bcf57a108abef08169ef4ba4977.tar.bz2 |
playing around a little with the admin theme
git-svn-id: http://code.elgg.org/elgg/trunk@7911 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/shells/admin.php')
-rw-r--r-- | views/default/layout/shells/admin.php | 52 |
1 files changed, 33 insertions, 19 deletions
diff --git a/views/default/layout/shells/admin.php b/views/default/layout/shells/admin.php index e33c1c62f..ce9d2d503 100644 --- a/views/default/layout/shells/admin.php +++ b/views/default/layout/shells/admin.php @@ -9,36 +9,50 @@ * @uses $vars['sidebar'] Optional sidebar content * @uses $vars['title'] Title string */ + +$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"> - <h1> + <div class="elgg-inner clearfix"> + <h1 class="elgg-site-title"> <a href="<?php echo elgg_get_site_url(); ?>"> <?php echo $vars['config']->sitename; echo " " . elgg_echo('admin'); ?> </a> </h1> - <a class="return_to_network" href="<?php echo elgg_get_site_url(); ?>"><< Return to network</a> + <ul class="elgg-user-menu"> + <li><?php echo elgg_echo('admin:loggedin', array(get_loggedin_user()->name)); ?></li> + <li><?php echo $view_site; ?></li> + <li><?php echo $logout; ?></li> + </ul> </div> </div> <div class="elgg-page-body"> - - <div class="elgg-sidebar clearfix"> - <?php - echo elgg_view('layout/elements/sidebar', $vars); - ?> - </div> - <div class="elgg-main elgg-body"> - <?php - if (isset($vars['title'])) { - echo elgg_view_title($vars['title']); - } - - if (isset($vars['content'])) { - echo $vars['content']; - } - ?> + <div class="elgg-inner clearfix"> + <div class="elgg-sidebar clearfix"> + <?php + echo elgg_view('layout/elements/sidebar', $vars); + ?> + </div> + <div class="elgg-main elgg-body"> + <?php + if (isset($vars['title'])) { + echo elgg_view_title($vars['title']); + } + + if (isset($vars['content'])) { + echo $vars['content']; + } + ?> + </div> </div> </div> <div class="elgg-page-footer"></div>
\ No newline at end of file |