aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/core/avatar/crop.php2
-rw-r--r--views/default/core/avatar/upload.php24
-rw-r--r--views/default/css/elements/misc.php11
-rw-r--r--views/default/forms/avatar/crop.php2
4 files changed, 20 insertions, 19 deletions
diff --git a/views/default/core/avatar/crop.php b/views/default/core/avatar/crop.php
index 499e2af4e..1c59842c8 100644
--- a/views/default/core/avatar/crop.php
+++ b/views/default/core/avatar/crop.php
@@ -6,7 +6,7 @@
*/
?>
-<div id="avatar-croppingtool">
+<div id="avatar-croppingtool" class="mtl ptm">
<label><?php echo elgg_echo('avatar:crop:title'); ?></label>
<br />
<p>
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);
diff --git a/views/default/css/elements/misc.php b/views/default/css/elements/misc.php
index 705cb41a5..64962b890 100644
--- a/views/default/css/elements/misc.php
+++ b/views/default/css/elements/misc.php
@@ -23,24 +23,15 @@
/* ***************************************
AVATAR UPLOADING & CROPPING
*************************************** */
-#avatar-upload {
- height:145px;
-}
+
#current-user-avatar {
- float:left;
- width:160px;
- height:130px;
border-right:1px solid #cccccc;
- margin:0 20px 0 0;
}
#avatar-croppingtool {
border-top: 1px solid #cccccc;
- margin:20px 0 0 0;
- padding:10px 0 0 0;
}
#user-avatar {
float: left;
- margin-right: 20px;
}
#user-avatar-preview {
float: left;
diff --git a/views/default/forms/avatar/crop.php b/views/default/forms/avatar/crop.php
index 380a4bb6c..857a54e1f 100644
--- a/views/default/forms/avatar/crop.php
+++ b/views/default/forms/avatar/crop.php
@@ -9,7 +9,7 @@ $master_image = $vars['entity']->getIcon('master');
?>
<div>
- <img id="user-avatar" src="<?php echo $master_image; ?>" alt="<?php echo elgg_echo('avatar'); ?>" />
+ <img id="user-avatar" class="mrl" src="<?php echo $master_image; ?>" alt="<?php echo elgg_echo('avatar'); ?>" />
</div>
<div class="clearfloat"></div>