diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-25 01:07:50 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-25 01:07:50 +0000 |
commit | 9cf832684b0e64a27c5ffab309db189394cd3d4d (patch) | |
tree | caae183fae205a4000680aa0487fa50366c7e639 | |
parent | e495d88fe96e6c73d6ed261fcdda332073052438 (diff) | |
download | elgg-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
-rw-r--r-- | views/default/canvas/layouts/one_column_with_sidebar.php | 10 | ||||
-rw-r--r-- | views/default/page_elements/elgg_sidebar.php | 17 |
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']; +} + |