|
| 1 | +<?php |
| 2 | +script('settings', 'panels/profile'); |
| 3 | +vendor_script('strengthify/jquery.strengthify'); |
| 4 | +vendor_style('strengthify/strengthify'); |
| 5 | +if ($_['enableAvatars']) { |
| 6 | + vendor_script('jcrop/js/jquery.Jcrop'); |
| 7 | + vendor_style('jcrop/css/jquery.Jcrop'); |
| 8 | +} |
| 9 | +?> |
| 10 | +<?php if ($_['enableAvatars']): ?> |
| 11 | + <form id="avatar" class="section" method="post" action="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.postAvatar')); ?>"> |
| 12 | + <h2 class="app-name"><?php p($l->t('Profile picture')); ?></h2> |
| 13 | + <div id="displayavatar"> |
| 14 | + <div class="avatardiv"></div> |
| 15 | + <div class="warning hidden"></div> |
| 16 | + <?php if ($_['avatarChangeSupported']): ?> |
| 17 | + <label for="uploadavatar" class="inlineblock button icon-upload" id="uploadavatarbutton" title="<?php p($l->t('Upload new')); ?>"></label> |
| 18 | + <div class="inlineblock button icon-folder" id="selectavatar" title="<?php p($l->t('Select from Files')); ?>"></div> |
| 19 | + <div class="hidden button icon-delete" id="removeavatar" title="<?php p($l->t('Remove image')); ?>"></div> |
| 20 | + <input type="file" name="files[]" id="uploadavatar" class="hiddenuploadfield"> |
| 21 | + <p><em><?php p($l->t('png or jpg, max. 20 MB')); ?></em></p> |
| 22 | + <?php else: ?> |
| 23 | + <?php p($l->t('Picture provided by original account')); ?> |
| 24 | + <?php endif; ?> |
| 25 | + </div> |
| 26 | + |
| 27 | + <div id="cropper" class="hidden"> |
| 28 | + <div class="inlineblock button" id="abortcropperbutton"><?php p($l->t('Cancel')); ?></div> |
| 29 | + <div class="inlineblock button primary" id="sendcropperbutton"><?php p($l->t('Choose as profile picture')); ?></div> |
| 30 | + </div> |
| 31 | + </form> |
| 32 | +<?php endif; ?> |
| 33 | + |
| 34 | + <div id="displaynameform" class="section"> |
| 35 | + <h2><?php echo $l->t('Full name'); ?></h2> |
| 36 | + <span><?php if (isset($_['displayName'][0])) { |
| 37 | + p($_['displayName']); |
| 38 | + } else { |
| 39 | + p($l->t('No display name set')); |
| 40 | + } ?></span> |
| 41 | + </div> |
| 42 | + |
| 43 | + <div id="lostpassword" class="section"> |
| 44 | + <h2><?php echo $l->t('Email'); ?></h2> |
| 45 | + <span><?php if (isset($_['email'][0])) { |
| 46 | + p($_['email']); |
| 47 | + } else { |
| 48 | + p($l->t('No email address set')); |
| 49 | + } ?></span> |
| 50 | + </div> |
| 51 | + |
| 52 | +<div id="groups" class="section"> |
| 53 | + <h2><?php p($l->t('Groups')); ?></h2> |
| 54 | + <?php if (\count($_['groups']) > 0) { |
| 55 | + ?> |
| 56 | + <p><?php p($l->t('You are member of the following groups:')); ?></p> |
| 57 | + <p> |
| 58 | + <?php p(\implode(', ', $_['groups'])); ?> |
| 59 | + </p> |
| 60 | + <?php |
| 61 | + } else { |
| 62 | + ?> |
| 63 | + <p><?php p($l->t('You are not a member of any groups.')); ?></p> |
| 64 | + <?php |
| 65 | + } ?> |
| 66 | + |
| 67 | +</div> |
| 68 | + |
| 69 | +<form id="language" class="section"> |
| 70 | + <h2> |
| 71 | + <label><?php p($l->t('Language'));?></label> |
| 72 | + </h2> |
| 73 | + <?php print_unescaped($_['languageSelector']); ?> |
| 74 | + <?php if (OC_Util::getEditionString() === OC_Util::EDITION_COMMUNITY): ?> |
| 75 | + <a href="https://www.transifex.com/projects/p/owncloud/" |
| 76 | + target="_blank" rel="noreferrer"> |
| 77 | + <em><?php p($l->t('Help translate'));?></em> |
| 78 | + </a> |
| 79 | + <?php endif; ?> |
| 80 | +</form> |
0 commit comments