aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
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'];
+}
+