aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-23 18:50:11 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-23 18:50:11 +0000
commit6b1b6ed9eec3d0bcbe0e6a5eab2253ee036178e5 (patch)
treee9dcf8511be096e7e502ae289416bc59a22a3536 /views/default/layout/shells
parent3e6269c99e4615e9ab46d41ec3230fc55370cf2a (diff)
downloadelgg-6b1b6ed9eec3d0bcbe0e6a5eab2253ee036178e5.tar.gz
elgg-6b1b6ed9eec3d0bcbe0e6a5eab2253ee036178e5.tar.bz2
take two of the admin header and sidebar menu - sidebar menu still needs plenty of work
git-svn-id: http://code.elgg.org/elgg/trunk@7918 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/shells')
-rw-r--r--views/default/layout/shells/admin.php38
-rw-r--r--views/default/layout/shells/admin/menu.php12
2 files changed, 32 insertions, 18 deletions
diff --git a/views/default/layout/shells/admin.php b/views/default/layout/shells/admin.php
index ce9d2d503..efbe547d1 100644
--- a/views/default/layout/shells/admin.php
+++ b/views/default/layout/shells/admin.php
@@ -10,6 +10,8 @@
* @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'),
@@ -23,8 +25,8 @@ $logout = elgg_view('output/url', array(
<div class="elgg-page-header">
<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 href="<?php echo elgg_get_site_url(); ?>pg/admin/">
+ <?php echo $admin_title; ?>
</a>
</h1>
<ul class="elgg-user-menu">
@@ -36,23 +38,23 @@ $logout = elgg_view('output/url', array(
</div>
<div class="elgg-page-body">
- <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']);
- }
+ <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">
+ <?php
+ if (isset($vars['title'])) {
+ echo elgg_view_title($vars['title']);
+ }
- if (isset($vars['content'])) {
- echo $vars['content'];
- }
- ?>
- </div>
+ if (isset($vars['content'])) {
+ echo $vars['content'];
+ }
+ ?>
</div>
</div>
<div class="elgg-page-footer"></div> \ No newline at end of file
diff --git a/views/default/layout/shells/admin/menu.php b/views/default/layout/shells/admin/menu.php
new file mode 100644
index 000000000..82dd90ab0
--- /dev/null
+++ b/views/default/layout/shells/admin/menu.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Admin sidebar menu
+ */
+
+$content = elgg_view_menu('page', array('sort_by' => 'name'));
+
+echo elgg_view('layout/objects/module', array(
+ 'title' => elgg_echo('menu'),
+ 'body' => $content,
+ 'class' => 'elgg-main-module',
+));