@@ -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); ?> |
@@ -27,11 +27,15 @@ discard block |
||
27 | 27 | <?php p($l->t('Set up two-factor authentication')) ?> |
28 | 28 | </a> |
29 | 29 | <?php } ?> |
30 | - <?php else: ?> |
|
30 | + <?php else { |
|
31 | + : ?> |
|
31 | 32 | <strong><?php p($l->t('Two-factor authentication is enforced but has not been configured on your account. Use one of your backup codes to log in or contact your admin for assistance.')) ?></strong> |
32 | - <?php endif; ?> |
|
33 | + <?php endif; |
|
34 | +} |
|
35 | +?> |
|
33 | 36 | </p> |
34 | - <?php else: ?> |
|
37 | + <?php else { |
|
38 | + : ?> |
|
35 | 39 | <ul> |
36 | 40 | <?php foreach ($_['providers'] as $provider): ?> |
37 | 41 | <li> |
@@ -45,6 +49,7 @@ discard block |
||
45 | 49 | <?php |
46 | 50 | if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { |
47 | 51 | $icon = $provider->getLightIcon(); |
52 | +} |
|
48 | 53 | } else { |
49 | 54 | $icon = image_path('core', 'actions/password-white.svg'); |
50 | 55 | } |
@@ -61,7 +66,8 @@ discard block |
||
61 | 66 | <?php endif ?> |
62 | 67 | <?php if (!is_null($_['backupProvider'])): ?> |
63 | 68 | <p> |
64 | - <a class="<?php if ($noProviders): ?>button primary two-factor-primary<?php else: ?>two-factor-secondary<?php endif ?>" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge', |
|
69 | + <a class="<?php if ($noProviders): ?>button primary two-factor-primary<?php else { |
|
70 | + : ?>two-factor-secondary<?php endif ?>" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge', |
|
65 | 71 | [ |
66 | 72 | 'challengeProviderId' => $_['backupProvider']->getId(), |
67 | 73 | 'redirect_url' => $_['redirect_url'], |
@@ -70,7 +76,9 @@ discard block |
||
70 | 76 | <?php p($l->t('Use backup code')) ?> |
71 | 77 | </a> |
72 | 78 | </p> |
73 | - <?php endif; ?> |
|
79 | + <?php endif; |
|
80 | +} |
|
81 | +?> |
|
74 | 82 | <p><a class="two-factor-secondary" href="<?php print_unescaped($_['logout_url']); ?>"> |
75 | 83 | <?php p($l->t('Cancel login')) ?> |
76 | 84 | </a></p> |
@@ -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> |
@@ -14,10 +14,13 @@ |
||
14 | 14 | ?> |
15 | 15 | <?php if (isset($_['content'])): ?> |
16 | 16 | <?php print_unescaped($_['content']) ?> |
17 | -<?php else: ?> |
|
17 | +<?php else { |
|
18 | + : ?> |
|
18 | 19 | <div class="body-login-container update"> |
19 | 20 | <div class="icon-big icon-search"></div> |
20 | - <h2><?php p($l->t('Page not found')); ?></h2> |
|
21 | + <h2><?php p($l->t('Page not found')); |
|
22 | +} |
|
23 | +?></h2> |
|
21 | 24 | <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> |
22 | 25 | <p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>"> |
23 | 26 | <?php p($l->t('Back to %s', [$theme->getName()])); ?> |
@@ -59,7 +59,8 @@ discard block |
||
59 | 59 | <div id="preview"> |
60 | 60 | <?php if (isset($_['folder'])): ?> |
61 | 61 | <?php print_unescaped($_['folder']); ?> |
62 | - <?php else: ?> |
|
62 | + <?php else { |
|
63 | + : ?> |
|
63 | 64 | <!-- preview frame to open file in with viewer --> |
64 | 65 | <div id="imgframe"></div> |
65 | 66 | <?php if (isset($_['mimetype']) && str_starts_with($_['mimetype'], 'image')): ?> |
@@ -68,7 +69,9 @@ discard block |
||
68 | 69 | <?php p($_['filename'])?> (<?php p($_['fileSize']) ?>) |
69 | 70 | </div> |
70 | 71 | <?php if (!$_['hideDownload']) { ?> |
71 | - <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button"> |
|
72 | + <a href="<?php p($_['downloadURL']); |
|
73 | +} |
|
74 | +?>" id="downloadFile" class="button"> |
|
72 | 75 | <span class="icon icon-download"></span> |
73 | 76 | <?php p($l->t('Download'))?> |
74 | 77 | </a> |
@@ -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()])); ?> |