aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/avatar/upload.php
blob: 8d920a900f6fe96377baf7ce886f2e239eb4c78c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Avatar upload view
 *
 * @uses $vars['entity']
 */

$user_avatar = $vars['entity']->getIcon('medium');

?>

<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\" />"; ?>
</div>

<div id="avatar-upload">
<?php
	$form_params = array('enctype' => 'multipart/form-data');
	echo elgg_view_form('avatar/upload', $form_params, $vars);
?>
</div>