@@ -16,8 +16,8 @@ |
||
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Exception; |
19 | -use Swift_Mailer; |
|
20 | 19 | use Swift_MailTransport; |
20 | +use Swift_Mailer; |
|
21 | 21 | use Swift_Message; |
22 | 22 | use Swift_NullTransport; |
23 | 23 | use Swift_SmtpTransport; |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use Fisharebest\Webtrees\Database; |
20 | 20 | use Fisharebest\Webtrees\Filter; |
21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsDate; |
22 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
23 | 22 | use Fisharebest\Webtrees\I18N; |
24 | 23 | use Fisharebest\Webtrees\Theme; |
25 | 24 |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use Fisharebest\Webtrees\Database; |
20 | 20 | use Fisharebest\Webtrees\Filter; |
21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsDate; |
22 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
23 | 22 | use Fisharebest\Webtrees\I18N; |
24 | 23 | use Fisharebest\Webtrees\Theme; |
25 | 24 |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use Fisharebest\Webtrees\Database; |
20 | 20 | use Fisharebest\Webtrees\Filter; |
21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsDate; |
22 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
23 | 22 | use Fisharebest\Webtrees\I18N; |
24 | 23 | use Fisharebest\Webtrees\Theme; |
25 | 24 |
@@ -109,7 +109,8 @@ discard block |
||
109 | 109 | </option> |
110 | 110 | </select> |
111 | 111 | </td> |
112 | - <?php else: ?> |
|
112 | + <?php else { |
|
113 | + : ?> |
|
113 | 114 | <td class="descriptionbox wrap"></td> |
114 | 115 | <td class="optionbox wrap"></td> |
115 | 116 | <?php endif ?> |
@@ -133,6 +134,7 @@ discard block |
||
133 | 134 | <?php |
134 | 135 | foreach (['10', '20', '30', '40', '50', '75', '100', '125', '150', '200'] as $selectEntry) { |
135 | 136 | echo '<option value="', $selectEntry, '" '; |
137 | +} |
|
136 | 138 | if ($selectEntry == $max) { |
137 | 139 | echo 'selected'; |
138 | 140 | } |
@@ -519,7 +519,8 @@ discard block |
||
519 | 519 | <div class="bg-danger text-danger"> |
520 | 520 | <?= $resn->xref ?> — <?= I18N::translate('this record does not exist') ?> |
521 | 521 | </div> |
522 | - <?php else: ?> |
|
522 | + <?php else { |
|
523 | + : ?> |
|
523 | 524 | <div class="text-muted"> |
524 | 525 | <?= I18N::translate('All records') ?> |
525 | 526 | </div> |
@@ -638,6 +639,7 @@ discard block |
||
638 | 639 | <span class="input-group-addon"> |
639 | 640 | <?php |
640 | 641 | $person = Individual::getInstance($WT_TREE->getPreference('PEDIGREE_ROOT_ID'), $WT_TREE); |
642 | +} |
|
641 | 643 | if ($person) { |
642 | 644 | echo $person->getFullName(), ' ', $person->getLifeSpan(); |
643 | 645 | } else { |
@@ -154,7 +154,8 @@ discard block |
||
154 | 154 | <input type="text" id="value<?= $i ?>" name="values[<?= $i ?>]" value="<?= Filter::escapeHtml($controller->getValue($i)) ?>"<?= substr($controller->getField($i), -4) == 'PLAC' ? 'data-autocomplete-type="PLAC"' : '' ?>> |
155 | 155 | <?php if (preg_match('/^NAME:/', $currentFieldSearch) > 0) { ?> |
156 | 156 | <select name="fields[<?= $i ?>]"> |
157 | - <option value="<?= $currentField ?>:EXACT" <?php if (preg_match('/:EXACT$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Exact') ?></option> |
|
157 | + <option value="<?= $currentField ?>:EXACT" <?php if (preg_match('/:EXACT$/', $currentFieldSearch) > 0) { |
|
158 | + echo 'selected' ?>><?= I18N::translate('Exact') ?></option> |
|
158 | 159 | <option value="<?= $currentField ?>:BEGINS" <?php if (preg_match('/:BEGINS$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Begins with') ?></option> |
159 | 160 | <option value="<?= $currentField ?>:CONTAINS" <?php if (preg_match('/:CONTAINS$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Contains') ?></option> |
160 | 161 | <option value="<?= $currentField ?>:SDX" <?php if (preg_match('/:SDX$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Sounds like') ?></option> |
@@ -176,6 +177,7 @@ discard block |
||
176 | 177 | //-- relative fields |
177 | 178 | if ($i == 0 && $fct > 4) { |
178 | 179 | $j = $fct; |
180 | +} |
|
179 | 181 | // Get the current options for Father’s and Mother’s name searches |
180 | 182 | $fatherGivnOption = 'SDX'; |
181 | 183 | $fatherSurnOption = 'SDX'; |
@@ -388,7 +388,8 @@ discard block |
||
388 | 388 | <a href="<?= $individual->getHtmlUrl() ?>#stories"> |
389 | 389 | <?= $individual->getFullName() ?> |
390 | 390 | </a> |
391 | - <?php else: ?> |
|
391 | + <?php else { |
|
392 | + : ?> |
|
392 | 393 | <?= $story->xref ?> |
393 | 394 | <?php endif ?> |
394 | 395 | </td> |
@@ -417,6 +418,7 @@ discard block |
||
417 | 418 | */ |
418 | 419 | private function showList() { |
419 | 420 | global $controller, $WT_TREE; |
421 | +} |
|
420 | 422 | |
421 | 423 | $controller = new PageController; |
422 | 424 | $controller |
@@ -139,7 +139,8 @@ discard block |
||
139 | 139 | <div class="font9"> |
140 | 140 | <?= $spouse->getLifeSpan() ?> |
141 | 141 | </div> |
142 | - <?php else: ?> |
|
142 | + <?php else { |
|
143 | + : ?> |
|
143 | 144 | <?= $spouse->getFullName() ?> |
144 | 145 | <?php endif ?> |
145 | 146 | </td> |
@@ -149,6 +150,7 @@ discard block |
||
149 | 150 | |
150 | 151 | foreach ($family->getChildren() as $child) { |
151 | 152 | $menu = new Menu(Functions::getCloseRelationshipName($controller->record, $child)); |
153 | +} |
|
152 | 154 | $menu->addClass('', 'submenu flyout'); |
153 | 155 | $menu->addSubmenu(new Menu($this->getFamily($child))); |
154 | 156 | ?> |
@@ -164,7 +166,8 @@ discard block |
||
164 | 166 | <div class="font9"> |
165 | 167 | <?= $child->getLifeSpan() ?> |
166 | 168 | </div> |
167 | - <?php else: ?> |
|
169 | + <?php else { |
|
170 | + : ?> |
|
168 | 171 | <?= $child->getFullName() ?> |
169 | 172 | <?php endif ?> |
170 | 173 | </td> |
@@ -184,6 +187,7 @@ discard block |
||
184 | 187 | private function getHTML($person, $showUnknown = false) { |
185 | 188 | if ($person instanceof Individual) { |
186 | 189 | return sprintf(self::LNK, $person->getHtmlUrl(), $person->getFullName()); |
190 | +} |
|
187 | 191 | } elseif ($showUnknown) { |
188 | 192 | return sprintf(self::MSG, I18N::translate('unknown')); |
189 | 193 | } else { |