diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-12-24 07:45:22 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-12-24 07:45:22 -0500 |
commit | e357d172fa71f9b940ed35df0dd5ee6eb6777d5a (patch) | |
tree | 89d302d4e2778ed1b831fccb4da9e05454fd7414 /views | |
parent | 1c2735807961ce916c27832327a07ef0bc9d5a40 (diff) | |
download | elgg-e357d172fa71f9b940ed35df0dd5ee6eb6777d5a.tar.gz elgg-e357d172fa71f9b940ed35df0dd5ee6eb6777d5a.tar.bz2 |
Fixes #3272 added button to revert avatar
Diffstat (limited to 'views')
-rw-r--r-- | views/default/core/avatar/upload.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/views/default/core/avatar/upload.php b/views/default/core/avatar/upload.php index 4aa86373a..29aa59c9c 100644 --- a/views/default/core/avatar/upload.php +++ b/views/default/core/avatar/upload.php @@ -12,6 +12,17 @@ $user_avatar = elgg_view('output/img', array( $current_label = elgg_echo('avatar:current'); +$revert_button = ''; +if ($vars['entity']->icontime) { + $revert_button = elgg_view('output/url', array( + 'text' => elgg_echo('revert'), + 'title' => elgg_echo('avatar:revert'), + 'href' => 'action/avatar/revert?guid=' . elgg_get_page_owner_guid(), + 'is_action' => true, + 'class' => 'elgg-button elgg-button-cancel mll', + )); +} + $form_params = array('enctype' => 'multipart/form-data'); $upload_form = elgg_view_form('avatar/upload', $form_params, $vars); @@ -28,6 +39,7 @@ $image = <<<HTML <label>$current_label</label><br /> $user_avatar </div> +$revert_button HTML; $body = <<<HTML |