aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 01:07:50 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 01:07:50 +0000
commit9cf832684b0e64a27c5ffab309db189394cd3d4d (patch)
treecaae183fae205a4000680aa0487fa50366c7e639 /views/default
parente495d88fe96e6c73d6ed261fcdda332073052438 (diff)
downloadelgg-9cf832684b0e64a27c5ffab309db189394cd3d4d.tar.gz
elgg-9cf832684b0e64a27c5ffab309db189394cd3d4d.tar.bz2
Refs #2114 - added elgg_sidebar view
git-svn-id: http://code.elgg.org/elgg/trunk@6196 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/canvas/layouts/one_column_with_sidebar.php10
-rw-r--r--views/default/page_elements/elgg_sidebar.php17
2 files changed, 22 insertions, 5 deletions
diff --git a/views/default/canvas/layouts/one_column_with_sidebar.php b/views/default/canvas/layouts/one_column_with_sidebar.php
index fbb960dc8..01bb1e54d 100644
--- a/views/default/canvas/layouts/one_column_with_sidebar.php
+++ b/views/default/canvas/layouts/one_column_with_sidebar.php
@@ -10,16 +10,16 @@
?>
<div id="elgg_content" class="clearfloat sidebar">
<div id="elgg_sidebar">
- <?php
- echo elgg_view('page_elements/owner_block');
- if (isset($vars['area2'])) echo $vars['area2'];
- if (isset($vars['area3'])) echo $vars['area3'];
+ <?php
+ echo elgg_view('page_elements/elgg_sidebar', $vars);
?>
</div>
<div id="elgg_page_contents" class="clearfloat">
<?php
- if (isset($vars['area1'])) echo $vars['area1'];
+ if (isset($vars['area1'])) {
+ echo $vars['area1'];
+ }
?>
</div>
</div>
diff --git a/views/default/page_elements/elgg_sidebar.php b/views/default/page_elements/elgg_sidebar.php
new file mode 100644
index 000000000..a8d3239ab
--- /dev/null
+++ b/views/default/page_elements/elgg_sidebar.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Elgg sidebar contents
+ *
+ **/
+
+echo elgg_view('page_elements/owner_block');
+
+if (isset($vars['area2'])) {
+ echo $vars['area2'];
+}
+
+// optional third parameter of elgg_view_layout
+if (isset($vars['area3'])) {
+ echo $vars['area3'];
+}
+