diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-04 17:53:57 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-04 17:53:57 +0000 |
commit | 1852b00a819721c9d7399e7fa42321d582bb32af (patch) | |
tree | fe81c6f4fa440359091c0a737201c522f923a9db /mod/profile/start.php | |
parent | 88c3d54f0a6ceb0b539af4e922157b101b945542 (diff) | |
download | elgg-1852b00a819721c9d7399e7fa42321d582bb32af.tar.gz elgg-1852b00a819721c9d7399e7fa42321d582bb32af.tar.bz2 |
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
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r-- | mod/profile/start.php | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |