aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/admin.php
blob: efbe547d1536501a2131170da4761c373d58ee84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?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-site-title">
			<a href="<?php echo elgg_get_site_url(); ?>pg/admin/">
				<?php echo $admin_title; ?>
			</a>
		</h1>
		<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('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>
</div>
<div class="elgg-page-footer"></div>