personal.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?php /**
  2. * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
  3. * This file is licensed under the Affero General Public License version 3 or later.
  4. * See the COPYING-README file.
  5. */?>
  6. <div class="clientsbox center">
  7. <h2><?php p($l->t('Get the apps to sync your files'));?></h2>
  8. <a href="<?php p($_['clients']['desktop']); ?>" target="_blank">
  9. <img src="<?php print_unescaped(OCP\Util::imagePath('core', 'desktopapp.png')); ?>" />
  10. </a>
  11. <a href="<?php p($_['clients']['android']); ?>" target="_blank">
  12. <img src="<?php print_unescaped(OCP\Util::imagePath('core', 'googleplay.png')); ?>" />
  13. </a>
  14. <a href="<?php p($_['clients']['ios']); ?>" target="_blank">
  15. <img src="<?php print_unescaped(OCP\Util::imagePath('core', 'appstore.png')); ?>" />
  16. </a>
  17. <?php if(OC_APP::isEnabled('firstrunwizard')) {?>
  18. <p class="center"><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again'));?></a></p>
  19. <?php }?>
  20. </div>
  21. <div id="quota" class="personalblock">
  22. <div style="width:<?php p($_['usage_relative']);?>%;">
  23. <p id="quotatext">
  24. <?php print_unescaped($l->t('You have used <strong>%s</strong> of the available <strong>%s</strong>',
  25. array($_['usage'], $_['total_space'])));?>
  26. </p>
  27. </div>
  28. </div>
  29. <?php
  30. if($_['passwordChangeSupported']) {
  31. ?>
  32. <form id="passwordform">
  33. <fieldset class="personalblock">
  34. <h2><?php p($l->t('Password'));?></h2>
  35. <div id="passwordchanged"><?php echo $l->t('Your password was changed');?></div>
  36. <div id="passworderror"><?php echo $l->t('Unable to change your password');?></div>
  37. <input type="password" id="pass1" name="oldpassword"
  38. placeholder="<?php echo $l->t('Current password');?>"
  39. autocomplete="off" autocapitalize="off" autocorrect="off" />
  40. <input type="password" id="pass2" name="personal-password"
  41. placeholder="<?php echo $l->t('New password');?>"
  42. data-typetoggle="#personal-show"
  43. autocomplete="off" autocapitalize="off" autocorrect="off" />
  44. <input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label>
  45. <input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
  46. <br/>
  47. <div class="strengthify-wrapper"></div>
  48. </fieldset>
  49. </form>
  50. <?php
  51. }
  52. ?>
  53. <?php
  54. if($_['displayNameChangeSupported']) {
  55. ?>
  56. <form id="displaynameform">
  57. <fieldset class="personalblock">
  58. <h2><?php echo $l->t('Full Name');?></h2>
  59. <input type="text" id="displayName" name="displayName"
  60. value="<?php p($_['displayName'])?>"
  61. autocomplete="on" autocapitalize="off" autocorrect="off" />
  62. <span class="msg"></span>
  63. <input type="hidden" id="oldDisplayName" name="oldDisplayName" value="<?php p($_['displayName'])?>" />
  64. </fieldset>
  65. </form>
  66. <?php
  67. }
  68. ?>
  69. <?php
  70. if($_['passwordChangeSupported']) {
  71. ?>
  72. <form id="lostpassword">
  73. <fieldset class="personalblock">
  74. <h2><?php p($l->t('Email'));?></h2>
  75. <input type="text" name="email" id="email" value="<?php p($_['email']); ?>"
  76. placeholder="<?php p($l->t('Your email address'));?>"
  77. autocomplete="on" autocapitalize="off" autocorrect="off" />
  78. <span class="msg"></span><br />
  79. <em><?php p($l->t('Fill in an email address to enable password recovery'));?></em>
  80. </fieldset>
  81. </form>
  82. <?php
  83. }
  84. ?>
  85. <?php if ($_['enableAvatars']): ?>
  86. <form id="avatar" method="post" action="<?php p(\OC_Helper::linkToRoute('core_avatar_post')); ?>">
  87. <fieldset class="personalblock">
  88. <h2><?php p($l->t('Profile picture')); ?></h2>
  89. <div id="displayavatar">
  90. <div class="avatardiv"></div><br>
  91. <div class="warning hidden"></div>
  92. <?php if ($_['avatarChangeSupported']): ?>
  93. <div class="inlineblock button" id="uploadavatarbutton"><?php p($l->t('Upload new')); ?></div>
  94. <input type="file" class="hidden" name="files[]" id="uploadavatar">
  95. <div class="inlineblock button" id="selectavatar"><?php p($l->t('Select new from Files')); ?></div>
  96. <div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove image')); ?></div><br>
  97. <?php p($l->t('Either png or jpg. Ideally square but you will be able to crop it.')); ?>
  98. <?php else: ?>
  99. <?php p($l->t('Your avatar is provided by your original account.')); ?>
  100. <?php endif; ?>
  101. </div>
  102. <div id="cropper" class="hidden">
  103. <div class="inlineblock button" id="abortcropperbutton"><?php p($l->t('Abort')); ?></div>
  104. <div class="inlineblock button primary" id="sendcropperbutton"><?php p($l->t('Choose as profile image')); ?></div>
  105. </div>
  106. </fieldset>
  107. </form>
  108. <?php endif; ?>
  109. <form>
  110. <fieldset class="personalblock">
  111. <h2><?php p($l->t('Language'));?></h2>
  112. <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
  113. <option value="<?php p($_['activelanguage']['code']);?>">
  114. <?php p($_['activelanguage']['name']);?>
  115. </option>
  116. <?php foreach($_['commonlanguages'] as $language):?>
  117. <option value="<?php p($language['code']);?>">
  118. <?php p($language['name']);?>
  119. </option>
  120. <?php endforeach;?>
  121. <optgroup label="––––––––––"></optgroup>
  122. <?php foreach($_['languages'] as $language):?>
  123. <option value="<?php p($language['code']);?>">
  124. <?php p($language['name']);?>
  125. </option>
  126. <?php endforeach;?>
  127. </select>
  128. <?php if (OC_Util::getEditionString() === ''): ?>
  129. <a href="https://www.transifex.com/projects/p/owncloud/team/<?php p($_['activelanguage']['code']);?>/"
  130. target="_blank">
  131. <em><?php p($l->t('Help translate'));?></em>
  132. </a>
  133. <?php endif; ?>
  134. </fieldset>
  135. </form>
  136. <fieldset class="personalblock">
  137. <h2><?php p($l->t('WebDAV'));?></h2>
  138. <code><?php print_unescaped(OC_Helper::linkToRemote('webdav')); ?></code><br />
  139. <em><?php print_unescaped($l->t('Use this address to <a href="%s" target="_blank">access your Files via WebDAV</a>', array(link_to_docs('user-webdav'))));?></em>
  140. </fieldset>
  141. <?php foreach($_['forms'] as $form) {
  142. print_unescaped($form);
  143. };?>
  144. <?php if($_['enableDecryptAll']): ?>
  145. <fieldset class="personalblock" id="decryptAll">
  146. <h2>
  147. <?php p( $l->t( 'Encryption' ) ); ?>
  148. </h2>
  149. <?php p($l->t( "The encryption app is no longer enabled, please decrypt all your files" )); ?>
  150. <p>
  151. <input
  152. type="password"
  153. name="privateKeyPassword"
  154. id="privateKeyPassword" />
  155. <label for="privateKeyPassword"><?php p($l->t( "Log-in password" )); ?></label>
  156. <br />
  157. <button
  158. type="button"
  159. disabled
  160. name="submitDecryptAll"><?php p($l->t( "Decrypt all Files" )); ?>
  161. </button>
  162. <span class="msg"></span>
  163. </p>
  164. <br />
  165. </fieldset>
  166. <?php endif; ?>
  167. <fieldset class="personalblock">
  168. <h2><?php p($l->t('Version'));?></h2>
  169. <strong><?php p($theme->getName()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?><br />
  170. <?php if (OC_Util::getEditionString() === ''): ?>
  171. <?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
  172. <?php endif; ?>
  173. </fieldset>
  174. <fieldset class="personalblock credits-footer">
  175. <p>
  176. <?php print_unescaped($theme->getShortFooter()); ?>
  177. </p>
  178. </fieldset>