From 6ca24436bdb144d68cc772ce6b5a75929d35b773 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 9 Jul 2008 09:05:07 +0000 Subject: new profile avatar page git-svn-id: https://code.elgg.org/elgg/trunk@1342 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/editicon.php | 6 +++++- mod/profile/languages/en.php | 4 +++- mod/profile/views/default/profile/editicon.php | 16 ++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/mod/profile/editicon.php b/mod/profile/editicon.php index 145932795..3dc10cc21 100644 --- a/mod/profile/editicon.php +++ b/mod/profile/editicon.php @@ -15,9 +15,13 @@ // Make sure we're logged in if (!isloggedin()) forward(); + + // set title + $area1 = elgg_view_title(elgg_echo('profile:createicon:header')); + $area1 .= elgg_view("profile/editicon"); // Get the form and correct canvas area - $body = elgg_view_layout("one_column", elgg_view("profile/editicon")); + $body = elgg_view_layout("one_column", $area1); // Draw the page page_draw(elgg_echo("profile:editicon"),$body); diff --git a/mod/profile/languages/en.php b/mod/profile/languages/en.php index 33e210f88..e9d96e79d 100644 --- a/mod/profile/languages/en.php +++ b/mod/profile/languages/en.php @@ -24,7 +24,9 @@ 'profile:editicon' => "Change your profile picture", 'profile:icon' => "Profile icon", 'profile:createicon' => "Create your avatar", - 'profile:createicon:instructions' => "Click and drag to crop your image", + 'profile:currentavatar' => "Your current avatar", + 'profile:createicon:header' => "Upload your profile picture", + 'profile:createicon:instructions' => "Click and drag to crop your main profile photo into a cool avatar", 'profile:aboutme' => "About me", 'profile:description' => "About me", diff --git a/mod/profile/views/default/profile/editicon.php b/mod/profile/views/default/profile/editicon.php index b580426b7..eca239872 100644 --- a/mod/profile/views/default/profile/editicon.php +++ b/mod/profile/views/default/profile/editicon.php @@ -17,6 +17,19 @@ +
+ +

:

+ username . "/medium/" . $_SESSION['user']->icontime . ".jpg"; + echo "\"avatar\""; + + ?> + +
+ +

: @@ -32,9 +45,12 @@ " />

+
"; + echo "

Create a new avatar:

"; echo elgg_echo("profile:createicon:instructions") . ":
"; //display the current user photo $user_master_image = $vars['url'] . "pg/icon/" . $_SESSION['user']->username . "/master/" . $_SESSION['user']->icontime . ".jpg"; -- cgit v1.2.3