aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/header.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 23:15:23 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 23:15:23 +0000
commitbff46f5fb754515aecbe864715e327c18e4b0db3 (patch)
tree2d4fc1b48fe646416ef67130552a81221d1522b7 /views/default/admin/header.php
parent2e55e477f93fc7e2e26e5d01395fd8d47c283c27 (diff)
downloadelgg-bff46f5fb754515aecbe864715e327c18e4b0db3.tar.gz
elgg-bff46f5fb754515aecbe864715e327c18e4b0db3.tar.bz2
extracted admin header, footer to admin/*. Moved pageshell code from admin layout to admin pageshell.
git-svn-id: http://code.elgg.org/elgg/trunk@8431 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/header.php')
-rw-r--r--views/default/admin/header.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/views/default/admin/header.php b/views/default/admin/header.php
new file mode 100644
index 000000000..826fbdb9a
--- /dev/null
+++ b/views/default/admin/header.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Elgg admin header
+ */
+$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'),
+));
+?>
+<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> \ No newline at end of file