aboutsummaryrefslogtreecommitdiff
path: root/views/default/layouts/two_sidebar.php
blob: 26fb64920ebae9c02f5dd4780ccad13e74c9bed6 (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
<?php
/**
 * Elgg 2 sidebar layout
 *
 * @package Elgg
 * @subpackage Core
 *
 * @uses $vars['content'] The content string for the main column
 * @uses $vars['sidebar'] Optional content that is displayed in the sidebar
 * @uses $vars['sidebar-alt'] Optional content that is displayed in the alternate sidebar
 */
?>

<div class="elgg-layout-two-sidebar elgg-center elgg-width-classic clearfix">
	<div class="elgg-sidebar elgg-aside">
		<?php
			echo elgg_view('page_elements/sidebar', $vars);
		?>
	</div>
	<div class="elgg-sidebar-alt elgg-aside">
		<?php
			//$params = $vars;
			//$params['sidebar'] = $vars['sidebar-alt'];
			$params = array(
				'sidebar' => elgg_view('layout_elements/module', array('title' => 'Testing', 'body' => 'Hello, world!'))
			);
			echo elgg_view('page_elements/sidebar', $params);
		?>
	</div>

	<div class="elgg-main elgg-body">
		<?php
			// @todo deprecated so remove in Elgg 2.0
			if (isset($vars['area1'])) {
				echo $vars['area1'];
			}
			if (isset($vars['content'])) {
				echo $vars['content'];
			}
		?>
	</div>
</div>