Completed
Pull Request — master (#9332)
by Julius
15:09
created
settings/templates/settings/personal/personal.info.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 					</div>
68 68
 				</div>
69 69
 				<span class="icon-checkmark hidden"></span>
70
-				<?php if($_['lookupServerUploadEnabled']) { ?>
70
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
71 71
 				<input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>">
72 72
 				<?php } ?>
73 73
 			</form>
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
 					<p class="quotatext">
86 86
 						<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
87 87
 							<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
88
-								[$_['usage'], $_['total_space']]));?>
88
+								[$_['usage'], $_['total_space']])); ?>
89 89
 						<?php else: ?>
90 90
 							<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)',
91
-								[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
91
+								[$_['usage'], $_['total_space'], $_['usage_relative']])); ?>
92 92
 						<?php endif ?>
93 93
 					</p>
94 94
 				</div>
95
-				<progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
95
+				<progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if ($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
96 96
 			</div>
97 97
 		</div>
98 98
 	</div>
@@ -107,15 +107,15 @@  discard block
 block discarded – undo
107 107
 					</span>
108 108
 				</h2>
109 109
 				<input type="text" id="displayname" name="displayname"
110
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
110
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
111 111
 					   value="<?php p($_['displayName']) ?>"
112 112
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
113
-				<?php if(!$_['displayNameChangeSupported']) { ?>
114
-					<span><?php if(isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
113
+				<?php if (!$_['displayNameChangeSupported']) { ?>
114
+					<span><?php if (isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
115 115
 				<?php } ?>
116 116
 				<span class="icon-checkmark hidden"></span>
117 117
 				<span class="icon-error hidden" ></span>
118
-				<?php if($_['lookupServerUploadEnabled']) { ?>
118
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
119 119
 					<input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>">
120 120
 				<?php } ?>
121 121
 			</form>
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
 						<span class="icon-triangle-s"></span>
129 129
 					</span>
130 130
 				</h2>
131
-				<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') p('hidden'); ?>">
131
+				<div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>">
132 132
 					<img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src="
133 133
 				<?php
134
-					switch($_['emailVerification']) {
134
+					switch ($_['emailVerification']) {
135 135
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
136 136
 							p(image_path('core', 'actions/verifying.svg'));
137 137
 							break;
@@ -144,18 +144,18 @@  discard block
 block discarded – undo
144 144
 					?>">
145 145
 				</div>
146 146
 				<input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
147
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
147
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
148 148
 					   placeholder="<?php p($l->t('Your email address')); ?>"
149 149
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
150 150
 			   	<span class="icon-checkmark hidden"></span>
151 151
 				<span class="icon-error hidden" ></span>
152
-				<?php if(!$_['displayNameChangeSupported']) { ?>
153
-					<span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
152
+				<?php if (!$_['displayNameChangeSupported']) { ?>
153
+					<span><?php if (isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
154 154
 				<?php } ?>
155
-				<?php if($_['displayNameChangeSupported']) { ?>
155
+				<?php if ($_['displayNameChangeSupported']) { ?>
156 156
 					<em><?php p($l->t('For password reset and notifications')); ?></em>
157 157
 				<?php } ?>
158
-				<?php if($_['lookupServerUploadEnabled']) { ?>
158
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
159 159
 					<input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
160 160
 				<?php } ?>
161 161
 			</form>
@@ -169,12 +169,12 @@  discard block
 block discarded – undo
169 169
 						<span class="icon-triangle-s"></span>
170 170
 					</span>
171 171
 				</h2>
172
-				<input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
172
+				<input type="tel" id="phone" name="phone" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
173 173
 					   value="<?php p($_['phone']) ?>"
174 174
 					   placeholder="<?php p($l->t('Your phone number')); ?>"
175 175
 				       autocomplete="on" autocapitalize="none" autocorrect="off" />
176 176
 				<span class="icon-checkmark hidden"></span>
177
-				<?php if($_['lookupServerUploadEnabled']) { ?>
177
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
178 178
 				<input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>">
179 179
 				<?php } ?>
180 180
 			</form>
@@ -189,12 +189,12 @@  discard block
 block discarded – undo
189 189
 						<span class="icon-triangle-s"></span>
190 190
 					</span>
191 191
 				</h2>
192
-				<input type="text" id="address" name="address" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
192
+				<input type="text" id="address" name="address" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
193 193
 					   placeholder="<?php p($l->t('Your postal address')); ?>"
194 194
 					   value="<?php p($_['address']) ?>"
195 195
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
196 196
 				<span class="icon-checkmark hidden"></span>
197
-				<?php if($_['lookupServerUploadEnabled']) { ?>
197
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
198 198
 				<input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>">
199 199
 				<?php } ?>
200 200
 			</form>
@@ -209,11 +209,11 @@  discard block
 block discarded – undo
209 209
 						<span class="icon-triangle-s"></span>
210 210
 					</span>
211 211
 				</h2>
212
-				<?php if($_['lookupServerUploadEnabled']) { ?>
213
-				<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') p('hidden'); ?>">
212
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
213
+				<div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>">
214 214
 					<img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
215 215
 					<?php
216
-					switch($_['websiteVerification']) {
216
+					switch ($_['websiteVerification']) {
217 217
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
218 218
 							p(image_path('core', 'actions/verifying.svg'));
219 219
 							break;
@@ -224,13 +224,13 @@  discard block
 block discarded – undo
224 224
 							p(image_path('core', 'actions/verify.svg'));
225 225
 					}
226 226
 					?>"
227
-					<?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
227
+					<?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
228 228
 					>
229 229
 					<div class="verification-dialog popovermenu bubble menu">
230 230
 						<div class="verification-dialog-content">
231 231
 							<p class="explainVerification"></p>
232 232
 							<p class="verificationCode"></p>
233
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
233
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
234 234
 						</div>
235 235
 					</div>
236 236
 				</div>
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
 				<input type="url" name="website" id="website" value="<?php p($_['website']); ?>"
239 239
 				       placeholder="<?php p($l->t('Link https://…')); ?>"
240 240
 				       autocomplete="on" autocapitalize="none" autocorrect="off"
241
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
241
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
242 242
 				/>
243 243
 				<span class="icon-checkmark hidden"></span>
244
-				<?php if($_['lookupServerUploadEnabled']) { ?>
244
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
245 245
 				<input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>">
246 246
 				<?php } ?>
247 247
 			</form>
@@ -256,11 +256,11 @@  discard block
 block discarded – undo
256 256
 						<span class="icon-triangle-s"></span>
257 257
 					</span>
258 258
 				</h2>
259
-				<?php if($_['lookupServerUploadEnabled']) { ?>
260
-				<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') p('hidden'); ?>">
259
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
260
+				<div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>">
261 261
 					<img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
262 262
 					<?php
263
-					switch($_['twitterVerification']) {
263
+					switch ($_['twitterVerification']) {
264 264
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
265 265
 							p(image_path('core', 'actions/verifying.svg'));
266 266
 							break;
@@ -271,13 +271,13 @@  discard block
 block discarded – undo
271 271
 							p(image_path('core', 'actions/verify.svg'));
272 272
 					}
273 273
 					?>"
274
-					<?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
274
+					<?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
275 275
 					>
276 276
 					<div class="verification-dialog popovermenu bubble menu">
277 277
 						<div class="verification-dialog-content">
278 278
 							<p class="explainVerification"></p>
279 279
 							<p class="verificationCode"></p>
280
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
280
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
281 281
 						</div>
282 282
 					</div>
283 283
 				</div>
@@ -285,10 +285,10 @@  discard block
 block discarded – undo
285 285
 				<input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>"
286 286
 					   placeholder="<?php p($l->t('Twitter handle @…')); ?>"
287 287
 					   autocomplete="on" autocapitalize="none" autocorrect="off"
288
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
288
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
289 289
 				/>
290 290
 				<span class="icon-checkmark hidden"></span>
291
-				<?php if($_['lookupServerUploadEnabled']) { ?>
291
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
292 292
 				<input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>">
293 293
 				<?php } ?>
294 294
 			</form>
@@ -301,47 +301,47 @@  discard block
 block discarded – undo
301 301
 			<?php if (isset($_['activelanguage'])) { ?>
302 302
 				<form id="language" class="section">
303 303
 					<h2>
304
-						<label for="languageinput"><?php p($l->t('Language'));?></label>
304
+						<label for="languageinput"><?php p($l->t('Language')); ?></label>
305 305
 					</h2>
306
-					<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
307
-						<option value="<?php p($_['activelanguage']['code']);?>">
308
-							<?php p($_['activelanguage']['name']);?>
306
+					<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>">
307
+						<option value="<?php p($_['activelanguage']['code']); ?>">
308
+							<?php p($_['activelanguage']['name']); ?>
309 309
 						</option>
310
-						<?php foreach($_['commonlanguages'] as $language):?>
311
-							<option value="<?php p($language['code']);?>">
312
-								<?php p($language['name']);?>
310
+						<?php foreach ($_['commonlanguages'] as $language):?>
311
+							<option value="<?php p($language['code']); ?>">
312
+								<?php p($language['name']); ?>
313 313
 							</option>
314
-						<?php endforeach;?>
314
+						<?php endforeach; ?>
315 315
 						<optgroup label="––––––––––"></optgroup>
316
-						<?php foreach($_['languages'] as $language):?>
317
-							<option value="<?php p($language['code']);?>">
318
-								<?php p($language['name']);?>
316
+						<?php foreach ($_['languages'] as $language):?>
317
+							<option value="<?php p($language['code']); ?>">
318
+								<?php p($language['name']); ?>
319 319
 							</option>
320
-						<?php endforeach;?>
320
+						<?php endforeach; ?>
321 321
 					</select>
322 322
 					<a href="https://www.transifex.com/nextcloud/nextcloud/"
323 323
 					   target="_blank" rel="noreferrer noopener">
324
-						<em><?php p($l->t('Help translate'));?></em>
324
+						<em><?php p($l->t('Help translate')); ?></em>
325 325
 					</a>
326 326
 				</form>
327 327
 			<?php } ?>
328 328
 		</div>
329 329
 		<div class="personal-settings-setting-box personal-settings-password-box">
330 330
 			<?php
331
-			if($_['passwordChangeSupported']) {
331
+			if ($_['passwordChangeSupported']) {
332 332
 				script('jquery-showpassword');
333 333
 				?>
334 334
 				<form id="passwordform" class="section">
335
-					<h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
335
+					<h2 class="inlineblock"><?php p($l->t('Password')); ?></h2>
336 336
 					<div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div>
337 337
 
338 338
 					<label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
339 339
 					<input type="password" id="pass1" name="oldpassword"
340
-						   placeholder="<?php p($l->t('Current password'));?>"
340
+						   placeholder="<?php p($l->t('Current password')); ?>"
341 341
 						   autocomplete="off" autocapitalize="none" autocorrect="off" />
342 342
 
343 343
 					<div class="personal-show-container">
344
-						<label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
344
+						<label for="pass2" class="hidden-visually"><?php p($l->t('New password')); ?>: </label>
345 345
 						<input type="password" id="pass2" name="newpassword"
346 346
 							   placeholder="<?php p($l->t('New password')); ?>"
347 347
 							   data-typetoggle="#personal-show"
Please login to merge, or discard this patch.