@@ -3,12 +3,18 @@ discard block |
||
| 3 | 3 | <span><?php p($l->t('Default quota'));?></span> |
| 4 | 4 | <?php if((bool) $_['isAdmin']): ?> |
| 5 | 5 | <select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>" data-tipsy-gravity="s"> |
| 6 | - <option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'> |
|
| 6 | + <option <?php if($_['default_quota'] === 'none') { |
|
| 7 | + print_unescaped('selected="selected"'); |
|
| 8 | +} |
|
| 9 | +?> value='none'> |
|
| 7 | 10 | <?php p($l->t('Unlimited'));?> |
| 8 | 11 | </option> |
| 9 | 12 | <?php foreach($_['quota_preset'] as $preset):?> |
| 10 | 13 | <?php if($preset !== 'default'):?> |
| 11 | - <option <?php if($_['default_quota']==$preset) print_unescaped('selected="selected"');?> value='<?php p($preset);?>'> |
|
| 14 | + <option <?php if($_['default_quota']==$preset) { |
|
| 15 | + print_unescaped('selected="selected"'); |
|
| 16 | +} |
|
| 17 | +?> value='<?php p($preset);?>'> |
|
| 12 | 18 | <?php p($preset);?> |
| 13 | 19 | </option> |
| 14 | 20 | <?php endif;?> |
@@ -28,8 +34,11 @@ discard block |
||
| 28 | 34 | : |
| 29 | 35 | <?php if( $_['default_quota'] === 'none'): ?> |
| 30 | 36 | <?php p($l->t('Unlimited'));?> |
| 31 | - <?php else: ?> |
|
| 32 | - <?php p($_['default_quota']);?> |
|
| 37 | + <?php else { |
|
| 38 | + : ?> |
|
| 39 | + <?php p($_['default_quota']); |
|
| 40 | +} |
|
| 41 | +?> |
|
| 33 | 42 | <?php endif; ?> |
| 34 | 43 | <?php endif; ?> |
| 35 | 44 | </div> |
@@ -23,8 +23,11 @@ |
||
| 23 | 23 | <?php p($rootCert->getIssuerName()) ?> |
| 24 | 24 | </td> |
| 25 | 25 | <td <?php if ($rootCert != ''): ?>class="remove" |
| 26 | - <?php else: ?>style="visibility:hidden;" |
|
| 27 | - <?php endif; ?>><img alt="<?php p($l->t('Delete')); ?>" |
|
| 26 | + <?php else { |
|
| 27 | + : ?>style="visibility:hidden;" |
|
| 28 | + <?php endif; |
|
| 29 | +} |
|
| 30 | +?>><img alt="<?php p($l->t('Delete')); ?>" |
|
| 28 | 31 | title="<?php p($l->t('Delete')); ?>" |
| 29 | 32 | class="action" |
| 30 | 33 | src="<?php print_unescaped(image_path('core', 'actions/delete.svg')); ?>"/> |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | // Return Success story |
| 67 | 67 | if($username) { |
| 68 | 68 | $targetUserObject->setQuota($quota); |
| 69 | -}else{//set the default quota when no username is specified |
|
| 69 | +} else{//set the default quota when no username is specified |
|
| 70 | 70 | if($quota === 'default') {//'default' as default quota makes no sense |
| 71 | 71 | $quota='none'; |
| 72 | 72 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $ln = array('code' => $lang, 'name' => $potentialName); |
| 88 | 88 | } elseif ($lang === 'en') { |
| 89 | 89 | $ln = ['code' => $lang, 'name' => 'English (US)']; |
| 90 | - }else{//fallback to language code |
|
| 90 | + } else{//fallback to language code |
|
| 91 | 91 | $ln=array('code'=>$lang, 'name'=>$lang); |
| 92 | 92 | } |
| 93 | 93 | |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | ]; |
| 83 | 83 | } |
| 84 | 84 | $subAdmins = $result; |
| 85 | -}else{ |
|
| 85 | +} else{ |
|
| 86 | 86 | /* Retrieve group IDs from $groups array, so we can pass that information into OC_Group::displayNamesInGroups() */ |
| 87 | 87 | $gids = array(); |
| 88 | 88 | foreach($groups as $group) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $url=\OCP\Util::linkToAbsolute( 'core', 'doc/admin/index.html' ); |
| 40 | 40 | $style1=''; |
| 41 | 41 | $style2=' active'; |
| 42 | -}else{ |
|
| 42 | +} else{ |
|
| 43 | 43 | $url=\OCP\Util::linkToAbsolute( 'core', 'doc/user/index.html' ); |
| 44 | 44 | $style1=' active'; |
| 45 | 45 | $style2=''; |
@@ -111,8 +111,11 @@ |
||
| 111 | 111 | <?php foreach($_['navigation'] as $entry): ?> |
| 112 | 112 | <?php if($entry['showInHeader']): ?> |
| 113 | 113 | <li data-id="<?php p($entry['id']); ?>" class="in-header"> |
| 114 | - <?php else: ?> |
|
| 115 | - <li data-id="<?php p($entry['id']); ?>"> |
|
| 114 | + <?php else { |
|
| 115 | + : ?> |
|
| 116 | + <li data-id="<?php p($entry['id']); |
|
| 117 | +} |
|
| 118 | +?>"> |
|
| 116 | 119 | <?php endif; ?> |
| 117 | 120 | <a href="<?php print_unescaped($entry['href']); ?>" tabindex="3" |
| 118 | 121 | <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>> |
@@ -46,35 +46,50 @@ |
||
| 46 | 46 | <div id="userlistoptions"> |
| 47 | 47 | <p> |
| 48 | 48 | <input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation" |
| 49 | - class="checkbox" <?php if ($_['show_storage_location'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
| 49 | + class="checkbox" <?php if ($_['show_storage_location'] === 'true') { |
|
| 50 | + print_unescaped('checked="checked"'); |
|
| 51 | +} |
|
| 52 | +?> /> |
|
| 50 | 53 | <label for="CheckboxStorageLocation"> |
| 51 | 54 | <?php p($l->t('Show storage location')) ?> |
| 52 | 55 | </label> |
| 53 | 56 | </p> |
| 54 | 57 | <p> |
| 55 | 58 | <input type="checkbox" name="UserBackend" value="UserBackend" id="CheckboxUserBackend" |
| 56 | - class="checkbox" <?php if ($_['show_backend'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
| 59 | + class="checkbox" <?php if ($_['show_backend'] === 'true') { |
|
| 60 | + print_unescaped('checked="checked"'); |
|
| 61 | +} |
|
| 62 | +?> /> |
|
| 57 | 63 | <label for="CheckboxUserBackend"> |
| 58 | 64 | <?php p($l->t('Show user backend')) ?> |
| 59 | 65 | </label> |
| 60 | 66 | </p> |
| 61 | 67 | <p> |
| 62 | 68 | <input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin" |
| 63 | - class="checkbox" <?php if ($_['show_last_login'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
| 69 | + class="checkbox" <?php if ($_['show_last_login'] === 'true') { |
|
| 70 | + print_unescaped('checked="checked"'); |
|
| 71 | +} |
|
| 72 | +?> /> |
|
| 64 | 73 | <label for="CheckboxLastLogin"> |
| 65 | 74 | <?php p($l->t('Show last login')) ?> |
| 66 | 75 | </label> |
| 67 | 76 | </p> |
| 68 | 77 | <p> |
| 69 | 78 | <input type="checkbox" name="EmailAddress" value="EmailAddress" id="CheckboxEmailAddress" |
| 70 | - class="checkbox" <?php if ($_['show_email'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
| 79 | + class="checkbox" <?php if ($_['show_email'] === 'true') { |
|
| 80 | + print_unescaped('checked="checked"'); |
|
| 81 | +} |
|
| 82 | +?> /> |
|
| 71 | 83 | <label for="CheckboxEmailAddress"> |
| 72 | 84 | <?php p($l->t('Show email address')) ?> |
| 73 | 85 | </label> |
| 74 | 86 | </p> |
| 75 | 87 | <p> |
| 76 | 88 | <input type="checkbox" name="MailOnUserCreate" value="MailOnUserCreate" id="CheckboxMailOnUserCreate" |
| 77 | - class="checkbox" <?php if ($_['send_email'] === 'true') print_unescaped('checked="checked"'); ?> /> |
|
| 89 | + class="checkbox" <?php if ($_['send_email'] === 'true') { |
|
| 90 | + print_unescaped('checked="checked"'); |
|
| 91 | +} |
|
| 92 | +?> /> |
|
| 78 | 93 | <label for="CheckboxMailOnUserCreate"> |
| 79 | 94 | <?php p($l->t('Send email to new user')) ?> |
| 80 | 95 | </label> |
@@ -31,9 +31,12 @@ discard block |
||
| 31 | 31 | <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?> |
| 32 | 32 | <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>', |
| 33 | 33 | [$_['usage'], $_['total_space']]));?> |
| 34 | - <?php else: ?> |
|
| 34 | + <?php else { |
|
| 35 | + : ?> |
|
| 35 | 36 | <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)', |
| 36 | - [$_['usage'], $_['total_space'], $_['usage_relative']]));?> |
|
| 37 | + [$_['usage'], $_['total_space'], $_['usage_relative']])); |
|
| 38 | +} |
|
| 39 | +?> |
|
| 37 | 40 | <?php endif ?> |
| 38 | 41 | </p> |
| 39 | 42 | </div> |
@@ -55,8 +58,11 @@ discard block |
||
| 55 | 58 | <div class="hidden button icon-delete svg" id="removeavatar" title="<?php p($l->t('Remove image')); ?>"></div> |
| 56 | 59 | <input type="file" name="files[]" id="uploadavatar" class="hiddenuploadfield"> |
| 57 | 60 | <p><em><?php p($l->t('png or jpg, max. 20 MB')); ?></em></p> |
| 58 | - <?php else: ?> |
|
| 59 | - <?php p($l->t('Picture provided by original account')); ?> |
|
| 61 | + <?php else { |
|
| 62 | + : ?> |
|
| 63 | + <?php p($l->t('Picture provided by original account')); |
|
| 64 | +} |
|
| 65 | +?> |
|
| 60 | 66 | <?php endif; ?> |
| 61 | 67 | </div> |
| 62 | 68 | |