diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-08 15:45:41 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-08 15:45:41 +0000 |
commit | 21e4f3681d9f936af24e6a44868628ceeb53ddf9 (patch) | |
tree | 419674d729dfeaa389a6159ca8e9a4bdeed5fda8 /mod/thewire/index.php | |
parent | fd75f66c772983c871ee5ed06d702dbb24ecac07 (diff) | |
download | elgg-21e4f3681d9f936af24e6a44868628ceeb53ddf9.tar.gz elgg-21e4f3681d9f936af24e6a44868628ceeb53ddf9.tar.bz2 |
Updates to thewire interface
git-svn-id: http://code.elgg.org/elgg/trunk@5302 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/thewire/index.php')
-rw-r--r-- | mod/thewire/index.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mod/thewire/index.php b/mod/thewire/index.php index 2514d7452..078e93271 100644 --- a/mod/thewire/index.php +++ b/mod/thewire/index.php @@ -21,16 +21,20 @@ } // title - $area2 = elgg_view_title(elgg_echo("thewire:read")); + if (page_owner() == $_SESSION['guid']) { + $area2 = elgg_view_title(elgg_echo("thewire:read")); + } else { + $area2 = elgg_view_title(sprintf(elgg_echo("thewire:user"),$page_owner->name)); + } //add form $area2 .= elgg_view("thewire/forms/add"); // Display the user's wire - $area2 .= list_user_objects($page_owner->getGUID(),'thewire'); // elgg_view("thewire/view",array('entity' => $thewire)); - + $area2 .= list_user_objects($page_owner->getGUID(),'thewire'); + //select the correct canvas area - $body = elgg_view_layout("two_column_left_sidebar", '', $area2); + $body = elgg_view_layout("one_column_with_sidebar", '', $area2); // Display page page_draw(sprintf(elgg_echo('thewire:user'),$page_owner->name),$body); |