diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-21 13:36:35 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-21 13:36:35 +0000 |
commit | b8005abf1a1649ca84e5db807ec33b1ce1f59f0f (patch) | |
tree | 382c94ced6205d82118cffe9e990092452df1ed6 | |
parent | 4cfb3d233d04210854f97c4ee5a8c8f48665cc52 (diff) | |
download | elgg-b8005abf1a1649ca84e5db807ec33b1ce1f59f0f.tar.gz elgg-b8005abf1a1649ca84e5db807ec33b1ce1f59f0f.tar.bz2 |
Added easier sidebar population
git-svn-id: https://code.elgg.org/elgg/trunk@665 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/elgglib.php | 3 | ||||
-rw-r--r-- | views/default/pageshells/pageshell.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 7e785ce07..57b8c71c8 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -328,7 +328,7 @@ * @param unknown_type $body
* @return unknown
*/
- function page_draw($title, $body) {
+ function page_draw($title, $body, $sidebar = "") {
if (isloggedin()) {
$view = "pageshells/pageshell";
} else {
@@ -337,6 +337,7 @@ echo elgg_view('pageshells/pageshell', array(
'title' => $title,
'body' => $body,
+ 'sidebar' => $sidebar,
'sysmessages' => system_messages(null,"")
)
);
diff --git a/views/default/pageshells/pageshell.php b/views/default/pageshells/pageshell.php index 253029cc8..e70d8dfca 100644 --- a/views/default/pageshells/pageshell.php +++ b/views/default/pageshells/pageshell.php @@ -58,7 +58,8 @@ <div class="panelcontent">
<?php
// echo $vars['body'];
- // Removed to prevent double body!
+ // Removed to prevent double body!
+ echo $vars['sidebar'];
?>
</div>
</div>
|