Completed
Pull Request — stable10 (#3664)
by Joas
23:09
created
settings/templates/personal.php 1 patch
Spacing   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 
11 11
 <div id="app-navigation">
12 12
 	<ul>
13
-	<?php foreach($_['forms'] as $form) {
13
+	<?php foreach ($_['forms'] as $form) {
14 14
 		if (isset($form['anchor'])) {
15
-			$anchor = '#' . $form['anchor'];
15
+			$anchor = '#'.$form['anchor'];
16 16
 			$sectionName = $form['section-name'];
17 17
 			print_unescaped(sprintf("<li><a href='%s'>%s</a></li>", \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName)));
18 18
 		}
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
 <div id="app-content">
24 24
 
25 25
 <div id="quota" class="section">
26
-	<div style="width:<?php p($_['usage_relative']);?>%"
27
-		<?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
26
+	<div style="width:<?php p($_['usage_relative']); ?>%"
27
+		<?php if ($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
28 28
 		<p id="quotatext">
29 29
 			<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
30
-			array($_['usage'], $_['total_space'])));?>
30
+			array($_['usage'], $_['total_space']))); ?>
31 31
 		</p>
32 32
 	</div>
33 33
 </div>
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 <?php endif; ?>
58 58
 
59 59
 <?php
60
-if($_['displayNameChangeSupported']) {
60
+if ($_['displayNameChangeSupported']) {
61 61
 ?>
62 62
 <form id="displaynameform" class="section">
63 63
 	<h2>
64
-		<label for="displayName"><?php echo $l->t('Full name');?></label>
64
+		<label for="displayName"><?php echo $l->t('Full name'); ?></label>
65 65
 	</h2>
66 66
 	<input type="text" id="displayName" name="displayName"
67 67
 		value="<?php p($_['displayName'])?>"
@@ -73,32 +73,32 @@  discard block
 block discarded – undo
73 73
 } else {
74 74
 ?>
75 75
 <div id="displaynameform" class="section">
76
-	<h2><?php echo $l->t('Full name');?></h2>
77
-	<span><?php if(isset($_['displayName'][0])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
76
+	<h2><?php echo $l->t('Full name'); ?></h2>
77
+	<span><?php if (isset($_['displayName'][0])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
78 78
 </div>
79 79
 <?php
80 80
 }
81 81
 ?>
82 82
 
83 83
 <?php
84
-if($_['displayNameChangeSupported']) {
84
+if ($_['displayNameChangeSupported']) {
85 85
 ?>
86 86
 <form id="lostpassword" class="section">
87 87
 	<h2>
88
-		<label for="email"><?php p($l->t('Email'));?></label>
88
+		<label for="email"><?php p($l->t('Email')); ?></label>
89 89
 	</h2>
90 90
 	<input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
91
-		placeholder="<?php p($l->t('Your email address'));?>"
91
+		placeholder="<?php p($l->t('Your email address')); ?>"
92 92
 		autocomplete="on" autocapitalize="off" autocorrect="off" />
93 93
 	<span class="msg"></span><br />
94
-	<em><?php p($l->t('For password recovery and notifications'));?></em>
94
+	<em><?php p($l->t('For password recovery and notifications')); ?></em>
95 95
 </form>
96 96
 <?php
97 97
 } else {
98 98
 ?>
99 99
 <div id="lostpassword" class="section">
100 100
 	<h2><?php echo $l->t('Email'); ?></h2>
101
-	<span><?php if(isset($_['email'][0])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
101
+	<span><?php if (isset($_['email'][0])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
102 102
 </div>
103 103
 <?php
104 104
 }
@@ -113,24 +113,24 @@  discard block
 block discarded – undo
113 113
 </div>
114 114
 
115 115
 <?php
116
-if($_['passwordChangeSupported']) {
116
+if ($_['passwordChangeSupported']) {
117 117
 	script('jquery-showpassword');
118 118
 ?>
119 119
 <form id="passwordform" class="section">
120
-	<h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
120
+	<h2 class="inlineblock"><?php p($l->t('Password')); ?></h2>
121 121
 	<div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div>
122 122
 	<br>
123
-	<label for="pass1" class="hidden-visually"><?php echo $l->t('Current password');?>: </label>
123
+	<label for="pass1" class="hidden-visually"><?php echo $l->t('Current password'); ?>: </label>
124 124
 	<input type="password" id="pass1" name="oldpassword"
125
-		placeholder="<?php echo $l->t('Current password');?>"
125
+		placeholder="<?php echo $l->t('Current password'); ?>"
126 126
 		autocomplete="off" autocapitalize="off" autocorrect="off" />
127
-	<label for="pass2" class="hidden-visually"><?php echo $l->t('New password');?>: </label>
127
+	<label for="pass2" class="hidden-visually"><?php echo $l->t('New password'); ?>: </label>
128 128
 	<input type="password" id="pass2" name="personal-password"
129
-		placeholder="<?php echo $l->t('New password');?>"
129
+		placeholder="<?php echo $l->t('New password'); ?>"
130 130
 		data-typetoggle="#personal-show"
131 131
 		autocomplete="off" autocapitalize="off" autocorrect="off" />
132 132
 	<input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label>
133
-	<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
133
+	<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password'); ?>" />
134 134
 	<br/>
135 135
 </form>
136 136
 <?php
@@ -139,46 +139,46 @@  discard block
 block discarded – undo
139 139
 
140 140
 <form id="language" class="section">
141 141
 	<h2>
142
-		<label for="languageinput"><?php p($l->t('Language'));?></label>
142
+		<label for="languageinput"><?php p($l->t('Language')); ?></label>
143 143
 	</h2>
144
-	<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
145
-		<option value="<?php p($_['activelanguage']['code']);?>">
146
-			<?php p($_['activelanguage']['name']);?>
144
+	<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>">
145
+		<option value="<?php p($_['activelanguage']['code']); ?>">
146
+			<?php p($_['activelanguage']['name']); ?>
147 147
 		</option>
148
-		<?php foreach($_['commonlanguages'] as $language):?>
149
-			<option value="<?php p($language['code']);?>">
150
-				<?php p($language['name']);?>
148
+		<?php foreach ($_['commonlanguages'] as $language):?>
149
+			<option value="<?php p($language['code']); ?>">
150
+				<?php p($language['name']); ?>
151 151
 			</option>
152
-		<?php endforeach;?>
152
+		<?php endforeach; ?>
153 153
 		<optgroup label="––––––––––"></optgroup>
154
-		<?php foreach($_['languages'] as $language):?>
155
-			<option value="<?php p($language['code']);?>">
156
-				<?php p($language['name']);?>
154
+		<?php foreach ($_['languages'] as $language):?>
155
+			<option value="<?php p($language['code']); ?>">
156
+				<?php p($language['name']); ?>
157 157
 			</option>
158
-		<?php endforeach;?>
158
+		<?php endforeach; ?>
159 159
 	</select>
160 160
 	<?php if (OC_Util::getEditionString() === ''): ?>
161 161
 	<a href="https://www.transifex.com/nextcloud/nextcloud/"
162 162
 		target="_blank" rel="noreferrer">
163
-		<em><?php p($l->t('Help translate'));?></em>
163
+		<em><?php p($l->t('Help translate')); ?></em>
164 164
 	</a>
165 165
 	<?php endif; ?>
166 166
 </form>
167 167
 
168 168
 
169 169
 <div id="clientsbox" class="section clientsbox">
170
-	<h2><?php p($l->t('Get the apps to sync your files'));?></h2>
170
+	<h2><?php p($l->t('Get the apps to sync your files')); ?></h2>
171 171
 	<a href="<?php p($_['clients']['desktop']); ?>" rel="noreferrer" target="_blank">
172 172
 		<img src="<?php print_unescaped(image_path('core', 'desktopapp.svg')); ?>"
173
-			 alt="<?php p($l->t('Desktop client'));?>" />
173
+			 alt="<?php p($l->t('Desktop client')); ?>" />
174 174
 	</a>
175 175
 	<a href="<?php p($_['clients']['android']); ?>" rel="noreferrer" target="_blank">
176 176
 		<img src="<?php print_unescaped(image_path('core', 'googleplay.png')); ?>"
177
-			 alt="<?php p($l->t('Android app'));?>" />
177
+			 alt="<?php p($l->t('Android app')); ?>" />
178 178
 	</a>
179 179
 	<a href="<?php p($_['clients']['ios']); ?>" rel="noreferrer" target="_blank">
180 180
 		<img src="<?php print_unescaped(image_path('core', 'appstore.svg')); ?>"
181
-			 alt="<?php p($l->t('iOS app'));?>" />
181
+			 alt="<?php p($l->t('iOS app')); ?>" />
182 182
 	</a>
183 183
 
184 184
 	<?php if (OC_Util::getEditionString() === ''): ?>
@@ -188,23 +188,23 @@  discard block
 block discarded – undo
188 188
 			target="_blank" rel="noreferrer">join development</a>
189 189
 		or
190 190
 		<a href="https://nextcloud.com/contribute"
191
-			target="_blank" rel="noreferrer">spread the word</a>!'));?>
191
+			target="_blank" rel="noreferrer">spread the word</a>!')); ?>
192 192
 		</p>
193 193
 	<?php endif; ?>
194 194
 
195
-	<?php if(OC_APP::isEnabled('firstrunwizard')) {?>
196
-		<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again'));?></a></p>
195
+	<?php if (OC_APP::isEnabled('firstrunwizard')) {?>
196
+		<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again')); ?></a></p>
197 197
 	<?php }?>
198 198
 </div>
199 199
 
200 200
 <div id="sessions" class="section">
201
-	<h2><?php p($l->t('Sessions'));?></h2>
202
-	<span class="hidden-when-empty"><?php p($l->t('Web, desktop and mobile clients currently logged in to your account.'));?></span>
201
+	<h2><?php p($l->t('Sessions')); ?></h2>
202
+	<span class="hidden-when-empty"><?php p($l->t('Web, desktop and mobile clients currently logged in to your account.')); ?></span>
203 203
 	<table>
204 204
 		<thead class="token-list-header">
205 205
 			<tr>
206
-				<th><?php p($l->t('Device'));?></th>
207
-				<th><?php p($l->t('Last activity'));?></th>
206
+				<th><?php p($l->t('Device')); ?></th>
207
+				<th><?php p($l->t('Last activity')); ?></th>
208 208
 				<th></th>
209 209
 			</tr>
210 210
 		</thead>
@@ -214,13 +214,13 @@  discard block
 block discarded – undo
214 214
 </div>
215 215
 
216 216
 <div id="apppasswords" class="section">
217
-	<h2><?php p($l->t('App passwords'));?></h2>
218
-	<p><?php p($l->t('Passcodes that give an app or device permissions to access your account.'));?></p>
217
+	<h2><?php p($l->t('App passwords')); ?></h2>
218
+	<p><?php p($l->t('Passcodes that give an app or device permissions to access your account.')); ?></p>
219 219
 	<table>
220 220
 		<thead class="hidden-when-empty">
221 221
 			<tr>
222
-				<th><?php p($l->t('Name'));?></th>
223
-				<th><?php p($l->t('Last activity'));?></th>
222
+				<th><?php p($l->t('Name')); ?></th>
223
+				<th><?php p($l->t('Last activity')); ?></th>
224 224
 				<th></th>
225 225
 			</tr>
226 226
 		</thead>
@@ -249,14 +249,14 @@  discard block
 block discarded – undo
249 249
 	</div>
250 250
 </div>
251 251
 
252
-<?php foreach($_['forms'] as $form) {
252
+<?php foreach ($_['forms'] as $form) {
253 253
 	if (isset($form['form'])) {?>
254
-	<div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div>
254
+	<div id="<?php isset($form['anchor']) ? p($form['anchor']) : p(''); ?>"><?php print_unescaped($form['form']); ?></div>
255 255
 	<?php }
256 256
 };?>
257 257
 
258 258
 <div class="section">
259
-	<h2><?php p($l->t('Version'));?></h2>
259
+	<h2><?php p($l->t('Version')); ?></h2>
260 260
 	<p><a href="<?php print_unescaped($theme->getBaseUrl()); ?>" target="_blank"><?php p($theme->getTitle()); ?></a> <?php p(OC_Util::getHumanVersion()) ?></p>
261 261
 	<p><?php include('settings.development.notice.php'); ?></p>
262 262
 </div>
Please login to merge, or discard this patch.