aboutsummaryrefslogtreecommitdiff
path: root/views/default/layouts/two_sidebar.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-04 15:52:14 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-04 15:52:14 +0000
commit58e7394e2dabe3bcf92b5efdc1c3917973cdf943 (patch)
treeb2cb6dfa30447d537fe10b4ebf312ea0a112f6a0 /views/default/layouts/two_sidebar.php
parent3d25a1293f4caf6b94e87bc214c1631ea1164229 (diff)
downloadelgg-58e7394e2dabe3bcf92b5efdc1c3917973cdf943.tar.gz
elgg-58e7394e2dabe3bcf92b5efdc1c3917973cdf943.tar.bz2
refs #1402 first cut of the new sidebar layout code (plus some other stuff - very non-atomic commit). blog plugin uses the one sidebar layout and bookmarks uses the two sidebar layout (for testing purposes)
git-svn-id: http://code.elgg.org/elgg/trunk@7528 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layouts/two_sidebar.php')
-rw-r--r--views/default/layouts/two_sidebar.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/views/default/layouts/two_sidebar.php b/views/default/layouts/two_sidebar.php
new file mode 100644
index 000000000..26fb64920
--- /dev/null
+++ b/views/default/layouts/two_sidebar.php
@@ -0,0 +1,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>