From 1852b00a819721c9d7399e7fa42321d582bb32af Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 4 Mar 2010 17:53:57 +0000 Subject: Pulled profile sidebar out into separate view. Using one_column_with_sidebar layout for editing profile. git-svn-id: http://code.elgg.org/elgg/trunk@5285 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/profile_lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/profile/profile_lib.php') diff --git a/mod/profile/profile_lib.php b/mod/profile/profile_lib.php index 176c6e4de..d92ad29b3 100644 --- a/mod/profile/profile_lib.php +++ b/mod/profile/profile_lib.php @@ -44,6 +44,7 @@ function profile_get_user_profile_html($user, $section = 'activity') { break; } + $body .= elgg_view('profile/profile_contents/sidebar'); return $body; } @@ -56,10 +57,11 @@ function profile_get_user_profile_html($user, $section = 'activity') { */ function profile_get_user_edit_content($user, $page) { $section = (isset($page[2])) ? $page[2] : 'details'; + $content = elgg_view('profile/profile_navigation', array('section' => $section, 'entity' => $user)); switch ($section) { case 'icon': - $content = elgg_view_title(elgg_echo('profile:edit')); + $content .= elgg_view_title(elgg_echo('profile:edit')); $content .= elgg_view("profile/editicon", array('entity' => $user)); break; default: -- cgit v1.2.3