diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-24 00:54:03 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-24 00:54:03 +0000 |
commit | 1e00e19d1e06d6eed784c92850c387ce7cde1df3 (patch) | |
tree | 5faeabda7bdca4b85408d604530c29209115410e /views/default/core/avatar/upload.php | |
parent | 01afda7ed87e7def6a411d871daf49522e977b26 (diff) | |
download | elgg-1e00e19d1e06d6eed784c92850c387ce7cde1df3.tar.gz elgg-1e00e19d1e06d6eed784c92850c387ce7cde1df3.tar.bz2 |
cutting down the amount of css required for the avatar page
git-svn-id: http://code.elgg.org/elgg/trunk@8453 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/core/avatar/upload.php')
-rw-r--r-- | views/default/core/avatar/upload.php | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/views/default/core/avatar/upload.php b/views/default/core/avatar/upload.php index 8d920a900..6887eab5c 100644 --- a/views/default/core/avatar/upload.php +++ b/views/default/core/avatar/upload.php @@ -7,20 +7,30 @@ $user_avatar = $vars['entity']->getIcon('medium'); +$current_label = elgg_echo('avatar:current'); + +$form_params = array('enctype' => 'multipart/form-data'); +$upload_form = elgg_view_form('avatar/upload', $form_params, $vars); + ?> <p class="mtm"> <?php echo elgg_echo('avatar:upload:instructions'); ?> </p> -<div id="current-user-avatar"> - <label><?php echo elgg_echo('avatar:current'); ?></label> - <?php echo "<img src=\"{$user_avatar}\" alt=\"avatar\" />"; ?> +<?php + +$image = <<<HTML +<div id="current-user-avatar" class="mrl prl"> + <label>$current_label</label><br /> + <img src="$user_avatar" alt="avatar" /> </div> +HTML; +$body = <<<HTML <div id="avatar-upload"> -<?php - $form_params = array('enctype' => 'multipart/form-data'); - echo elgg_view_form('avatar/upload', $form_params, $vars); -?> + $upload_form </div> +HTML; + +echo elgg_view_image_block($image, $upload_form); |