diff options
Diffstat (limited to 'settings/templates/personal.php')
-rw-r--r-- | settings/templates/personal.php | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 7832c79894b..7cd5361a924 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -83,26 +83,17 @@ if($_['passwordChangeSupported']) { } ?> -<?php if ($_['avatar'] !== "none"): ?> <form id="avatar" method="post" action="<?php p(\OC_Helper::linkTo('', 'avatar.php')); ?>"> <fieldset class="personalblock"> <legend><strong><?php p($l->t('Profile Image')); ?></strong></legend> <img src="<?php print_unescaped(link_to('', 'avatar.php').'?user='.OC_User::getUser().'&size=128'); ?>"><br> - <?php if ($_['avatar'] === "local"): ?> - <em><?php p($l->t('Your profile image has to be a square and either a PNG or JPG image')); ?></em><br> - <div class="inlineblock button" id="uploadavatarbutton"><?php p($l->t('Upload a new image')); ?></div> - <input type="file" class="hidden" name="files[]" id="uploadavatar"> - <div class="inlineblock button" id="selectavatar"><?php p($l->t('Select a new image from your files')); ?></div> - <div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove my image')); ?></div> - <?php elseif ($_['avatar'] === "gravatar"): ?> - <em><?php p($l->t('Your profile image is provided by gravatar, which is based on your Email.')); ?></em> - <div class?"inlineblock button" id="overridegravatar"><?php p($l->t('Use my local avatar instead')); ?></div> - <?php else: ?> - <em><?php p($l->t('Your profile image is provided by a custom service, ask your administrator, on how to change your image.')); ?></em> - <?php endif; ?> + <em><?php p($l->t('Has to be square and either PNG or JPG')); ?></em><br> + <div class="inlineblock button" id="uploadavatarbutton"><?php p($l->t('Upload new')); ?></div> + <input type="file" class="hidden" name="files[]" id="uploadavatar"> + <div class="inlineblock button" id="selectavatar"><?php p($l->t('Select new from files')); ?></div> + <div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove image')); ?></div> </fieldset> </form> -<?php endif; ?> <form> <fieldset class="personalblock"> |