Completed
Pull Request — master (#1904)
by Rico
07:48
created
resources/views/calendar-page.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -159,16 +159,16 @@
 block discarded – undo
159 159
 			</td>
160 160
 			<td class="topbottombar width50">
161 161
 				<?php
162
-					$n = 0;
163
-					foreach (Date::calendarNames() as $newcal => $cal_name) {
164
-						$tmp = $cal_date->convertToCalendar($newcal);
165
-						if ($tmp->inValidRange()) {
166
-							if ($n++) {
167
-								echo ' | ';
168
-							}
169
-							echo '<a ' . (get_class($tmp) === get_class($cal_date) ? 'class="error"' : '') . 'href="' . e(route('calendar', ['cal' => $tmp->format('%@'), 'day' => $tmp->d, 'month' => $tmp->format('%O'), 'year' => $tmp->y, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx, 'view' => $view, 'ged' => $tree->getName()])) . '" rel="nofollow">', $cal_name, '</a>';
170
-						}
171
-					} ?>
162
+                    $n = 0;
163
+                    foreach (Date::calendarNames() as $newcal => $cal_name) {
164
+                        $tmp = $cal_date->convertToCalendar($newcal);
165
+                        if ($tmp->inValidRange()) {
166
+                            if ($n++) {
167
+                                echo ' | ';
168
+                            }
169
+                            echo '<a ' . (get_class($tmp) === get_class($cal_date) ? 'class="error"' : '') . 'href="' . e(route('calendar', ['cal' => $tmp->format('%@'), 'day' => $tmp->d, 'month' => $tmp->format('%O'), 'year' => $tmp->y, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx, 'view' => $view, 'ged' => $tree->getName()])) . '" rel="nofollow">', $cal_name, '</a>';
170
+                        }
171
+                    } ?>
172 172
 			</td>
173 173
 		</tr>
174 174
 	</table>
Please login to merge, or discard this patch.
resources/views/admin/site-preferences.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,17 +14,17 @@  discard block
 block discarded – undo
14 14
 	<div class="row form-group">
15 15
 		<label for="INDEX_DIRECTORY" class="col-sm-3 col-form-label">
16 16
 			<?= /* I18N: A configuration setting */
17
-			I18N::translate('Data folder') ?>
17
+            I18N::translate('Data folder') ?>
18 18
 		</label>
19 19
 		<div class="col-sm-9">
20 20
 			<input type="text" class="form-control" dir="ltr" id="INDEX_DIRECTORY" name="INDEX_DIRECTORY" value="<?= e(Site::getPreference('INDEX_DIRECTORY')) ?>" maxlength="255" placeholder="data/" required>
21 21
 			<p class="small text-muted">
22 22
 				<?= /* I18N: Help text for the "Data folder" site configuration setting */
23
-				I18N::translate('This folder will be used by webtrees to store media files, GEDCOM files, temporary files, etc. These files may contain private data, and should not be made available over the internet.') ?>
23
+                I18N::translate('This folder will be used by webtrees to store media files, GEDCOM files, temporary files, etc. These files may contain private data, and should not be made available over the internet.') ?>
24 24
 			</p>
25 25
 			<p class="small text-muted">
26 26
 				<?= /* I18N: “Apache” is a software program. */
27
-				I18N::translate('To protect this private data, webtrees uses an Apache configuration file (.htaccess) which blocks all access to this folder. If your web-server does not support .htaccess files, and you cannot restrict access to this folder, then you can select another folder, away from your web documents.') ?>
27
+                I18N::translate('To protect this private data, webtrees uses an Apache configuration file (.htaccess) which blocks all access to this folder. If your web-server does not support .htaccess files, and you cannot restrict access to this folder, then you can select another folder, away from your web documents.') ?>
28 28
 			</p>
29 29
 			<p class="small text-muted">
30 30
 				<?= I18N::translate('If you select a different folder, you must also move all files (except config.ini.php, index.php, and .htaccess) from the existing folder to the new folder.') ?>
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 	<div class="row form-group">
40 40
 		<label for="MEMORY_LIMIT" class="col-sm-3 col-form-label">
41 41
 			<?= /* I18N: A configuration setting */
42
-			I18N::translate('Memory limit') ?>
42
+            I18N::translate('Memory limit') ?>
43 43
 		</label>
44 44
 		<div class="col-sm-9">
45 45
 			<input type="text" class="form-control" id="MEMORY_LIMIT" name="MEMORY_LIMIT" value="<?= e(Site::getPreference('MEMORY_LIMIT')) ?>" pattern="[0-9]+[KMG]" placeholder="<?= get_cfg_var('memory_limit') ?>" maxlength="255">
46 46
 			<p class="small text-muted">
47 47
 				<?= /* I18N: %s is an amount of memory, such as 32MB */
48
-				I18N::translate('By default, your server allows scripts to use %s of memory.', get_cfg_var('memory_limit')) ?>
48
+                I18N::translate('By default, your server allows scripts to use %s of memory.', get_cfg_var('memory_limit')) ?>
49 49
 				<?= I18N::translate('You can request a higher or lower limit, although the server may ignore this request.') ?>
50 50
 				<?= I18N::translate('Leave this blank to use the default value.') ?>
51 51
 			</p>
@@ -56,16 +56,16 @@  discard block
 block discarded – undo
56 56
 	<div class="row form-group">
57 57
 		<label for="MAX_EXECUTION_TIME" class="col-sm-3 col-form-label">
58 58
 			<?= /* I18N: A configuration setting */
59
-			I18N::translate('PHP time limit') ?>
59
+            I18N::translate('PHP time limit') ?>
60 60
 		</label>
61 61
 		<div class="col-sm-9">
62 62
 			<input type="text" class="form-control" id="MAX_EXECUTION_TIME" name="MAX_EXECUTION_TIME" value="<?= e(Site::getPreference('MAX_EXECUTION_TIME')) ?>" pattern="[0-9]*" placeholder="<?= get_cfg_var('max_execution_time') ?>" maxlength="255">
63 63
 			<p class="small text-muted">
64 64
 				<?= I18N::plural(
65
-					'By default, your server allows scripts to run for %s second.',
66
-					'By default, your server allows scripts to run for %s seconds.',
67
-					get_cfg_var('max_execution_time'), I18N::number((float) get_cfg_var('max_execution_time')));
68
-				?>
65
+                    'By default, your server allows scripts to run for %s second.',
66
+                    'By default, your server allows scripts to run for %s seconds.',
67
+                    get_cfg_var('max_execution_time'), I18N::number((float) get_cfg_var('max_execution_time')));
68
+                ?>
69 69
 				<?= I18N::translate('You can request a higher or lower limit, although the server may ignore this request.') ?>
70 70
 				<?= I18N::translate('Leave this blank to use the default value.') ?>
71 71
 			</p>
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 	<div class="row form-group">
90 90
 		<label for="THEME_DIR" class="col-sm-3 col-form-label">
91 91
 			<?= /* I18N: A configuration setting */
92
-			I18N::translate('Default theme') ?>
92
+            I18N::translate('Default theme') ?>
93 93
 		</label>
94 94
 		<div class="col-sm-9">
95 95
 			<?= Bootstrap4::select($all_themes, Site::getPreference('THEME_DIR', 'webtrees'), ['id' => 'THEME_DIR', 'name' => 'THEME_DIR']) ?>
96 96
 			<p class="small text-muted">
97 97
 				<?= /* I18N: Help text for the "Default theme" site configuration setting */
98
-				I18N::translate('You can change the appearance of webtrees using “themes”. Each theme has a different style, layout, color scheme, etc.') ?>
98
+                I18N::translate('You can change the appearance of webtrees using “themes”. Each theme has a different style, layout, color scheme, etc.') ?>
99 99
 			</p>
100 100
 			<p class="small text-muted">
101 101
 				<?= I18N::translate('Themes can be selected at three levels: user, family tree, and website. User preferences take priority over family tree preferences, which in turn take priority over the website preferences. Selecting “default theme” at one level will use the theme at the next level.') ?>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 		<div class="row">
109 109
 			<legend class="col-form-label col-sm-3">
110 110
 				<?= /* I18N: A configuration setting */
111
-				I18N::translate('Allow users to select their own theme') ?>
111
+                I18N::translate('Allow users to select their own theme') ?>
112 112
 			</legend>
113 113
 			<div class="col-sm-9">
114 114
 				<?= Bootstrap4::radioButtons('ALLOW_USER_THEMES', FunctionsEdit::optionsNoYes(), (string) (int) Site::getPreference('ALLOW_USER_THEMES'), true) ?>
@@ -121,13 +121,13 @@  discard block
 block discarded – undo
121 121
 		<div class="row">
122 122
 			<legend class="col-form-label col-sm-3">
123 123
 				<?= /* I18N: A configuration setting */
124
-				I18N::translate('Show list of family trees') ?>
124
+                I18N::translate('Show list of family trees') ?>
125 125
 			</legend>
126 126
 			<div class="col-sm-9">
127 127
 				<?= Bootstrap4::radioButtons('ALLOW_CHANGE_GEDCOM', FunctionsEdit::optionsNoYes(), (string) (int) Site::getPreference('ALLOW_CHANGE_GEDCOM'), true) ?>
128 128
 				<p class="small text-muted">
129 129
 					<?= /* I18N: Help text for the “Show list of family trees” site configuration setting */
130
-					I18N::translate('For websites with more than one family tree, this option will show the list of family trees in the main menu, the search pages, etc.') ?>
130
+                    I18N::translate('For websites with more than one family tree, this option will show the list of family trees in the main menu, the search pages, etc.') ?>
131 131
 				</p>
132 132
 			</div>
133 133
 		</div>
Please login to merge, or discard this patch.
resources/views/lists/families-table.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
 // init chart data
71 71
 $marr_by_age = [];
72 72
 for ($age = 0; $age <= $max_age; $age++) {
73
-	$marr_by_age[$age] = '';
73
+    $marr_by_age[$age] = '';
74 74
 }
75 75
 $birt_by_decade = [];
76 76
 $marr_by_decade = [];
77 77
 for ($year = 1550; $year < 2030; $year += 10) {
78
-	$birt_by_decade[$year] = '';
79
-	$marr_by_decade[$year] = '';
78
+    $birt_by_decade[$year] = '';
79
+    $marr_by_decade[$year] = '';
80 80
 }
81 81
 ?>
82 82
 
@@ -244,18 +244,18 @@  discard block
 block discarded – undo
244 244
 
245 245
 				<!-- Husband age -->
246 246
 				<?php
247
-				$mdate = $family->getMarriageDate();
248
-				$hdate = $husb->getBirthDate();
249
-				if ($hdate->isOK() && $mdate->isOK()) {
250
-					if ($hdate->gregorianYear() >= 1550 && $hdate->gregorianYear() < 2030) {
251
-						$birt_by_decade[(int) ($hdate->gregorianYear() / 10) * 10] .= $husb->getSex();
252
-					}
253
-					$hage = Date::getAgeYears($hdate, $mdate);
254
-					if ($hage >= 0 && $hage <= $max_age) {
255
-						$marr_by_age[$hage] .= $husb->getSex();
256
-					}
257
-				}
258
-				?>
247
+                $mdate = $family->getMarriageDate();
248
+                $hdate = $husb->getBirthDate();
249
+                if ($hdate->isOK() && $mdate->isOK()) {
250
+                    if ($hdate->gregorianYear() >= 1550 && $hdate->gregorianYear() < 2030) {
251
+                        $birt_by_decade[(int) ($hdate->gregorianYear() / 10) * 10] .= $husb->getSex();
252
+                    }
253
+                    $hage = Date::getAgeYears($hdate, $mdate);
254
+                    if ($hage >= 0 && $hage <= $max_age) {
255
+                        $marr_by_age[$hage] .= $husb->getSex();
256
+                    }
257
+                }
258
+                ?>
259 259
 				<td class="center" data-sort="<?= Date::getAgeDays($hdate, $mdate) ?>">
260 260
 					<?= Date::getAge($hdate, $mdate) ?>
261 261
 				</td>
@@ -280,17 +280,17 @@  discard block
 block discarded – undo
280 280
 
281 281
 				<!-- Wife age -->
282 282
 				<?php
283
-				$wdate = $wife->getBirthDate();
284
-				if ($wdate->isOK() && $mdate->isOK()) {
285
-					if ($wdate->gregorianYear() >= 1550 && $wdate->gregorianYear() < 2030) {
286
-						$birt_by_decade[(int) ($wdate->gregorianYear() / 10) * 10] .= $wife->getSex();
287
-					}
288
-					$wage = Date::getAgeYears($wdate, $mdate);
289
-					if ($wage >= 0 && $wage <= $max_age) {
290
-						$marr_by_age[$wage] .= $wife->getSex();
291
-					}
292
-				}
293
-				?>
283
+                $wdate = $wife->getBirthDate();
284
+                if ($wdate->isOK() && $mdate->isOK()) {
285
+                    if ($wdate->gregorianYear() >= 1550 && $wdate->gregorianYear() < 2030) {
286
+                        $birt_by_decade[(int) ($wdate->gregorianYear() / 10) * 10] .= $wife->getSex();
287
+                    }
288
+                    $wage = Date::getAgeYears($wdate, $mdate);
289
+                    if ($wage >= 0 && $wage <= $max_age) {
290
+                        $marr_by_age[$wage] .= $wife->getSex();
291
+                    }
292
+                }
293
+                ?>
294 294
 
295 295
 				<td class="center" data-sort="<?= Date::getAgeDays($wdate, $mdate) ?>">
296 296
 					<?= Date::getAge($wdate, $mdate) ?>
Please login to merge, or discard this patch.