aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/avatar/crop.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-13 16:22:57 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-13 16:22:57 -0500
commit6483d9d446e7fa50e16823fe20514a45416880e2 (patch)
tree68c5bb2e6a0b7b486e17f1101321323e7894a008 /views/default/forms/avatar/crop.php
parent95346209886527207ffd036a58d6fd50572d34fd (diff)
downloadelgg-6483d9d446e7fa50e16823fe20514a45416880e2.tar.gz
elgg-6483d9d446e7fa50e16823fe20514a45416880e2.tar.bz2
Fixes #4082 adds output/img
Diffstat (limited to 'views/default/forms/avatar/crop.php')
-rw-r--r--views/default/forms/avatar/crop.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/views/default/forms/avatar/crop.php b/views/default/forms/avatar/crop.php
index f622fd60f..3e798cb27 100644
--- a/views/default/forms/avatar/crop.php
+++ b/views/default/forms/avatar/crop.php
@@ -9,14 +9,23 @@ elgg_load_js('jquery.imgareaselect');
elgg_load_js('elgg.avatar_cropper');
elgg_load_css('jquery.imgareaselect');
-$master_image = $vars['entity']->getIconUrl('master');
+$master_img = elgg_view('output/img', array(
+ 'src' => $vars['entity']->getIconUrl('master'),
+ 'alt' => elgg_echo('avatar'),
+ 'class' => 'mrl',
+ 'id' => 'user-avatar-cropper',
+));
+
+$preview_img = elgg_view('output/img', array(
+ 'src' => $vars['entity']->getIconUrl('master'),
+ 'alt' => elgg_echo('avatar'),
+));
?>
<div class="clearfix">
- <img id="user-avatar-cropper" class="mrl" src="<?php echo $master_image; ?>" alt="<?php echo elgg_echo('avatar'); ?>" />
+ <?php echo $master_img; ?>
<div id="user-avatar-preview-title"><label><?php echo elgg_echo('avatar:preview'); ?></label></div>
- <div id="user-avatar-preview"><img src="<?php echo $master_image; ?>" /></div>
-
+ <div id="user-avatar-preview"><?php echo $preview_img; ?></div>
</div>
<div class="elgg-foot">
<?php