@@ -16,8 +16,11 @@ |
||
| 16 | 16 | <?php if ($error): ?> |
| 17 | 17 | <?php if ($error_message): ?> |
| 18 | 18 | <p><strong><?php p($error_message); ?></strong></p> |
| 19 | - <?php else: ?> |
|
| 20 | - <p><strong><?php p($l->t('Error while validating your second factor')); ?></strong></p> |
|
| 19 | + <?php else { |
|
| 20 | + : ?> |
|
| 21 | + <p><strong><?php p($l->t('Error while validating your second factor')); |
|
| 22 | +} |
|
| 23 | +?></strong></p> |
|
| 21 | 24 | <?php endif; ?> |
| 22 | 25 | <?php endif; ?> |
| 23 | 26 | <?php print_unescaped($template); ?> |
@@ -10,9 +10,12 @@ discard block |
||
| 10 | 10 | <!-- password prompt form. It should be hidden when we show the email prompt form --> |
| 11 | 11 | <?php if (!isset($_['identityOk'])): ?> |
| 12 | 12 | <form method="post" id="password-input-form"> |
| 13 | - <?php else: ?> |
|
| 13 | + <?php else { |
|
| 14 | + : ?> |
|
| 14 | 15 | <form method="post" id="password-input-form" style="display:none;"> |
| 15 | - <?php endif; ?> |
|
| 16 | + <?php endif; |
|
| 17 | +} |
|
| 18 | +?> |
|
| 16 | 19 | <fieldset class="warning"> |
| 17 | 20 | <?php if (!isset($_['wrongpw'])): ?> |
| 18 | 21 | <div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div> |
@@ -38,9 +41,12 @@ discard block |
||
| 38 | 41 | <!-- email prompt form. It should initially be hidden --> |
| 39 | 42 | <?php if (isset($_['identityOk'])): ?> |
| 40 | 43 | <form method="post" id="email-input-form"> |
| 41 | - <?php else: ?> |
|
| 44 | + <?php else { |
|
| 45 | + : ?> |
|
| 42 | 46 | <form method="post" id="email-input-form" style="display:none;"> |
| 43 | - <?php endif; ?> |
|
| 47 | + <?php endif; |
|
| 48 | +} |
|
| 49 | +?> |
|
| 44 | 50 | <fieldset class="warning"> |
| 45 | 51 | <div class="warning-info" id="email-prompt"><?php p($l->t('Please type in your email address to request a temporary password')); ?></div> |
| 46 | 52 | <p> |
@@ -53,8 +59,11 @@ discard block |
||
| 53 | 59 | <?php if (isset($_['identityOk'])): ?> |
| 54 | 60 | <?php if ($_['identityOk']): ?> |
| 55 | 61 | <div class="warning-info" id="identification-success"><?php p($l->t('Password sent!')); ?></div> |
| 56 | - <?php else: ?> |
|
| 57 | - <div class="warning" id="identification-failure"><?php p($l->t('You are not authorized to request a password for this share')); ?></div> |
|
| 62 | + <?php else { |
|
| 63 | + : ?> |
|
| 64 | + <div class="warning" id="identification-failure"><?php p($l->t('You are not authorized to request a password for this share')); |
|
| 65 | +} |
|
| 66 | +?></div> |
|
| 58 | 67 | <?php endif; ?> |
| 59 | 68 | <?php endif; ?> |
| 60 | 69 | </fieldset> |
@@ -73,9 +82,12 @@ discard block |
||
| 73 | 82 | id="request-password-back-button" |
| 74 | 83 | <?php if (isset($_['identityOk'])): ?> |
| 75 | 84 | style="display:block;"> |
| 76 | - <?php else: ?> |
|
| 85 | + <?php else { |
|
| 86 | + : ?> |
|
| 77 | 87 | style="display:none;"> |
| 78 | - <?php endif; ?> |
|
| 88 | + <?php endif; |
|
| 89 | +} |
|
| 90 | +?> |
|
| 79 | 91 | <?php p($l->t('Back')); ?></a> |
| 80 | 92 | </fieldset> |
| 81 | 93 | </form> |
@@ -53,11 +53,14 @@ |
||
| 53 | 53 | <div class="personal-settings-setting-box personal-settings-setting-box-detail"> |
| 54 | 54 | <div id="vue-details-section"></div> |
| 55 | 55 | </div> |
| 56 | - <?php else: ?> |
|
| 56 | + <?php else { |
|
| 57 | + : ?> |
|
| 57 | 58 | <div class="personal-settings-setting-box personal-settings-setting-box-detail--without-profile"> |
| 58 | 59 | <div id="vue-details-section"></div> |
| 59 | 60 | </div> |
| 60 | - <?php endif; ?> |
|
| 61 | + <?php endif; |
|
| 62 | +} |
|
| 63 | +?> |
|
| 61 | 64 | <div class="personal-settings-setting-box"> |
| 62 | 65 | <div id="vue-displayname-section"></div> |
| 63 | 66 | </div> |
@@ -55,12 +55,15 @@ |
||
| 55 | 55 | <iframe src="<?php print_unescaped($_['url']); ?>" class="help-iframe" tabindex="0"> |
| 56 | 56 | </iframe> |
| 57 | 57 | </div> |
| 58 | -<?php else: ?> |
|
| 58 | +<?php else { |
|
| 59 | + : ?> |
|
| 59 | 60 | <div id="app-content"> |
| 60 | 61 | <div class="help-wrapper"> |
| 61 | 62 | <div class="help-content"> |
| 62 | 63 | <h2 class="help-content__heading"> |
| 63 | - <?php p($l->t('Nextcloud help & privacy resources')); ?> |
|
| 64 | + <?php p($l->t('Nextcloud help & privacy resources')); |
|
| 65 | +} |
|
| 66 | +?> |
|
| 64 | 67 | </h2> |
| 65 | 68 | <div class="help-content__body"> |
| 66 | 69 | <a class="button" target="_blank" rel="noreferrer noopener" |
@@ -14,11 +14,13 @@ |
||
| 14 | 14 | <h3><?php p($l->t('Default encryption module')); ?></h3> |
| 15 | 15 | <?php if (!$_['initStatus'] && $_['masterKeyEnabled'] === false): ?> |
| 16 | 16 | <?php p($l->t('Encryption app is enabled but your keys are not initialized, please log-out and log-in again')); ?> |
| 17 | - <?php else: ?> |
|
| 17 | + <?php else { |
|
| 18 | + : ?> |
|
| 18 | 19 | <p id="encryptHomeStorageSetting"> |
| 19 | 20 | <input type="checkbox" class="checkbox" name="encrypt_home_storage" id="encryptHomeStorage" |
| 20 | 21 | value="1" <?php if ($_['encryptHomeStorage']) { |
| 21 | 22 | print_unescaped('checked="checked"'); |
| 23 | +} |
|
| 22 | 24 | } ?> /> |
| 23 | 25 | <label for="encryptHomeStorage"><?php p($l->t('Encrypt the home storage'));?></label></br> |
| 24 | 26 | <em><?php p($l->t('Enabling this option encrypts all files stored on the main storage, otherwise only files on external storage will be encrypted')); ?></em> |
@@ -18,10 +18,13 @@ |
||
| 18 | 18 | ?> |
| 19 | 19 | <?php if (isset($_['content'])) : ?> |
| 20 | 20 | <?php print_unescaped($_['content']) ?> |
| 21 | -<?php else : ?> |
|
| 21 | +<?php else { |
|
| 22 | + : ?> |
|
| 22 | 23 | <div class="body-login-container update"> |
| 23 | 24 | <div class="icon-big icon-error"></div> |
| 24 | - <h2><?php p($l->t('Profile not found')); ?></h2> |
|
| 25 | + <h2><?php p($l->t('Profile not found')); |
|
| 26 | +} |
|
| 27 | +?></h2> |
|
| 25 | 28 | <p class="infogroup"><?php p($l->t('The profile does not exist.')); ?></p> |
| 26 | 29 | <p><a class="button primary" href="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkTo('', 'index.php')) ?>"> |
| 27 | 30 | <?php p($l->t('Back to %s', [$theme->getName()])); ?> |
@@ -209,8 +209,11 @@ |
||
| 209 | 209 | foreach ($userBackends as $backend): ?> |
| 210 | 210 | <?php if ($deprecateTo = $backend->getDeprecateTo()): ?> |
| 211 | 211 | <input type="hidden" id="allowUserMountingBackends<?php p($i); ?>" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?>" data-deprecate-to="<?php p($deprecateTo->getIdentifier()); ?>" /> |
| 212 | - <?php else: ?> |
|
| 213 | - <input type="checkbox" id="allowUserMountingBackends<?php p($i); ?>" class="checkbox" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?>" <?php if ($backend->isVisibleFor(BackendService::VISIBILITY_PERSONAL)) { |
|
| 212 | + <?php else { |
|
| 213 | + : ?> |
|
| 214 | + <input type="checkbox" id="allowUserMountingBackends<?php p($i); |
|
| 215 | +} |
|
| 216 | +?>" class="checkbox" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?>" <?php if ($backend->isVisibleFor(BackendService::VISIBILITY_PERSONAL)) { |
|
| 214 | 217 | print_unescaped(' checked="checked"'); |
| 215 | 218 | } ?> /> |
| 216 | 219 | <label for="allowUserMountingBackends<?php p($i); ?>"><?php p($backend->getText()); ?></label> <br /> |
@@ -54,9 +54,12 @@ |
||
| 54 | 54 | aria-label="<?php p($l->t('Go to %s', [$_['logoUrl']])); ?>"> |
| 55 | 55 | <div class="logo logo-icon"></div> |
| 56 | 56 | </a> |
| 57 | - <?php else: ?> |
|
| 57 | + <?php else { |
|
| 58 | + : ?> |
|
| 58 | 59 | <div class="logo logo-icon"></div> |
| 59 | - <?php endif; ?> |
|
| 60 | + <?php endif; |
|
| 61 | +} |
|
| 62 | +?> |
|
| 60 | 63 | |
| 61 | 64 | <div class="header-info"> |
| 62 | 65 | <span class="header-title"> |
@@ -19,10 +19,13 @@ |
||
| 19 | 19 | ?> |
| 20 | 20 | <?php if (isset($_['content'])): ?> |
| 21 | 21 | <?php print_unescaped($_['content']) ?> |
| 22 | -<?php else: ?> |
|
| 22 | +<?php else { |
|
| 23 | + : ?> |
|
| 23 | 24 | <div class="body-login-container update"> |
| 24 | 25 | <div class="icon-big icon-search"></div> |
| 25 | - <h2><?php p($l->t('Page not found')); ?></h2> |
|
| 26 | + <h2><?php p($l->t('Page not found')); |
|
| 27 | +} |
|
| 28 | +?></h2> |
|
| 26 | 29 | <p class="infogroup"><?php p($l->t('The page could not be found on the server or you may not be allowed to view it.')); ?></p> |
| 27 | 30 | <p><a class="button primary" href="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkTo('', 'index.php')) ?>"> |
| 28 | 31 | <?php p($l->t('Back to %s', [$theme->getName()])); ?> |