aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout')
-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',
+));