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/start.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod/profile/start.php') diff --git a/mod/profile/start.php b/mod/profile/start.php index 2fef3f4d2..44a6d4e74 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -146,26 +146,29 @@ function profile_page_handler($page) { switch ($action) { case 'edit': + $layout = 'one_column_with_sidebar'; + if (!$user || !$user->canEdit()) { register_error(elgg_echo("profile:noaccess")); forward(); } $content = profile_get_user_edit_content($user, $page); + $content = elgg_view_layout($layout, 'asdf', $content); break; default: + $layout = 'one_column'; if (isset($page[1])) { $section = $page[1]; } else { $section = 'activity'; } $content = profile_get_user_profile_html($user, $section); + $content = elgg_view_layout($layout, $content); break; } - $content = elgg_view_layout('one_column', $content); - page_draw($title, $content); return; } -- cgit v1.2.3