@@ -77,11 +77,11 @@ |
||
| 77 | 77 | $menu->addSubmenu(new Menu(I18N::translate('Change family members'), 'edit_interface.php?action=changefamily&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref(), 'menu-fam-change')); |
| 78 | 78 | |
| 79 | 79 | // edit_fam / add child |
| 80 | - $menu->addSubmenu(new Menu(I18N::translate('Add a child to this family'), 'edit_interface.php?action=add_child_to_family&ged=' . $this->record->getTree()->getNameHtml() .'&xref=' . $this->record->getXref() . '&gender=U', 'menu-fam-addchil')); |
|
| 80 | + $menu->addSubmenu(new Menu(I18N::translate('Add a child to this family'), 'edit_interface.php?action=add_child_to_family&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref() . '&gender=U', 'menu-fam-addchil')); |
|
| 81 | 81 | |
| 82 | 82 | // edit_fam / reorder_children |
| 83 | 83 | if ($this->record->getNumberOfChildren() > 1) { |
| 84 | - $menu->addSubmenu(new Menu(I18N::translate('Re-order children'), 'edit_interface.php?action=reorder_children&ged=' . $this->record->getTree()->getNameHtml() .'&xref=' . $this->record->getXref(), 'menu-fam-orderchil')); |
|
| 84 | + $menu->addSubmenu(new Menu(I18N::translate('Re-order children'), 'edit_interface.php?action=reorder_children&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref(), 'menu-fam-orderchil')); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | // delete |
@@ -1080,7 +1080,7 @@ discard block |
||
| 1080 | 1080 | "SELECT CONCAT(l_to, '@', l_file), COUNT(*) FROM `##sources` JOIN `##link` ON l_from = s_id AND l_file = s_file AND l_type = 'NOTE' GROUP BY l_to, l_file" |
| 1081 | 1081 | )->fetchAssoc(); |
| 1082 | 1082 | |
| 1083 | - $html = ''; |
|
| 1083 | + $html = ''; |
|
| 1084 | 1084 | $html .= '<table ' . Datatables::noteTableAttributes() . '><thead><tr>'; |
| 1085 | 1085 | $html .= '<th>' . I18N::translate('Title') . '</th>'; |
| 1086 | 1086 | $html .= '<th>' . I18N::translate('Individuals') . '</th>'; |
@@ -1146,7 +1146,7 @@ discard block |
||
| 1146 | 1146 | )->fetchAssoc(); |
| 1147 | 1147 | |
| 1148 | 1148 | $html = ''; |
| 1149 | - $html .= '<table ' . Datatables::repositoryTableAttributes() . '><thead><tr>'; $html .= '<th>' . I18N::translate('Repository name') . '</th>'; |
|
| 1149 | + $html .= '<table ' . Datatables::repositoryTableAttributes() . '><thead><tr>'; $html .= '<th>' . I18N::translate('Repository name') . '</th>'; |
|
| 1150 | 1150 | $html .= '<th>' . I18N::translate('Sources') . '</th>'; |
| 1151 | 1151 | $html .= '<th>' . I18N::translate('Last change') . '</th>'; |
| 1152 | 1152 | $html .= '<th>' . I18N::translate('Delete') . '</th>'; |
@@ -1573,7 +1573,7 @@ discard block |
||
| 1573 | 1573 | if ($endjd === $startjd) { |
| 1574 | 1574 | $html .= I18N::translate('No events exist for tomorrow.'); |
| 1575 | 1575 | } else { |
| 1576 | - $html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
| 1576 | + $html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
| 1577 | 1577 | } |
| 1578 | 1578 | } else { |
| 1579 | 1579 | if ($endjd === $startjd) { |
@@ -200,7 +200,8 @@ discard block |
||
| 200 | 200 | <div class="tab-pane fade show active" role="tabpanel" id="individuals"> |
| 201 | 201 | <?php if (empty($myindilist)): ?> |
| 202 | 202 | <p><?= I18N::translate('No results found.') ?></p> |
| 203 | - <?php else: ?> |
|
| 203 | + <?php else { |
|
| 204 | + : ?> |
|
| 204 | 205 | <?= FunctionsPrintLists::individualTable($myindilist) ?> |
| 205 | 206 | <?php endif ?> |
| 206 | 207 | </div> |
@@ -216,6 +217,7 @@ discard block |
||
| 216 | 217 | <?php |
| 217 | 218 | } |
| 218 | 219 | echo '<h4><a href="placelist.php?display=list">', I18N::translate('Show all places in a list'), '</a></h4>'; |
| 220 | +} |
|
| 219 | 221 | |
| 220 | 222 | if ($gm_module && $gm_module->getPreference('GM_PLACE_HIERARCHY')) { |
| 221 | 223 | $gm_module->mapScripts($numfound, $level, $parent, $linklevels, $place_names); |
@@ -1505,7 +1505,7 @@ |
||
| 1505 | 1505 | '0' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'first'), |
| 1506 | 1506 | '1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last'), |
| 1507 | 1507 | ], $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX', ['name' => 'SHOW_PEDIGREE_PLACES_SUFFIX'])), |
| 1508 | - Bootstrap4::select(FunctionsEdit::numericOptions(range(1,9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES']) |
|
| 1508 | + Bootstrap4::select(FunctionsEdit::numericOptions(range(1, 9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES']) |
|
| 1509 | 1509 | ) ?> |
| 1510 | 1510 | <p class="small text-muted"> |
| 1511 | 1511 | <?= /* I18N: Help text for the “Abbreviate place names” configuration setting */ I18N::translate('Place names are frequently too long to fit on charts, lists, etc. They can be abbreviated by showing just the first few parts of the name, such as <i>village, county</i>, or the last few part of it, such as <i>region, country</i>.') ?> |
@@ -118,7 +118,6 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Format a name record |
| 120 | 120 | * |
| 121 | - * @param int $primary |
|
| 122 | 121 | * @param Fact $fact |
| 123 | 122 | * |
| 124 | 123 | * @return string |
@@ -216,7 +215,6 @@ discard block |
||
| 216 | 215 | /** |
| 217 | 216 | * print information for a sex record |
| 218 | 217 | * |
| 219 | - * @param Fact $event the Event object |
|
| 220 | 218 | * |
| 221 | 219 | * @return string |
| 222 | 220 | */ |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | public function getTabs() { |
| 97 | 97 | $active_tabs = Module::getActiveTabs($this->record->getTree()); |
| 98 | 98 | |
| 99 | - return array_filter($active_tabs, function(ModuleTabInterface $tab) { return $tab->hasTabContent(); }); |
|
| 99 | + return array_filter($active_tabs, function (ModuleTabInterface $tab) { return $tab->hasTabContent(); }); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | if ($n === 0) { |
| 143 | 143 | $content_class = 'collapse show'; |
| 144 | - $aria = 'true'; |
|
| 144 | + $aria = 'true'; |
|
| 145 | 145 | } |
| 146 | 146 | if ($fact->isPendingDeletion()) { |
| 147 | 147 | $container_class .= ' old'; |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | if ($individual->canEdit() && !$fact->isPendingDeletion()) { |
| 246 | - $edit_links = FontAwesome::linkIcon('edit', I18N::translate('Edit the gender'), ['class' => 'btn btn-link', 'href' => 'edit_interface.php?action=edit&xref=' . $individual->getXref() . '&fact_id=' . $fact->getFactId() . '&ged=' . $individual->getTree()->getNameHtml() ]); |
|
| 246 | + $edit_links = FontAwesome::linkIcon('edit', I18N::translate('Edit the gender'), ['class' => 'btn btn-link', 'href' => 'edit_interface.php?action=edit&xref=' . $individual->getXref() . '&fact_id=' . $fact->getFactId() . '&ged=' . $individual->getTree()->getNameHtml()]); |
|
| 247 | 247 | |
| 248 | 248 | } else { |
| 249 | 249 | $edit_links = ''; |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | <div class="' . $container_class . '"> |
| 254 | 254 | <div class="card-header" role="tab" id="name-header-add"> |
| 255 | 255 | <div class="card-title mb-0"> |
| 256 | - <b>' . I18N::translate('Gender') . '</b> ' . $sex . $edit_links . ' |
|
| 256 | + <b>' . I18N::translate('Gender') . '</b> ' . $sex . $edit_links . ' |
|
| 257 | 257 | </div> |
| 258 | 258 | </div> |
| 259 | 259 | </div>'; |
@@ -82,7 +82,8 @@ discard block |
||
| 82 | 82 | <?php if ($ancestors_only === '1'): ?> |
| 83 | 83 | <input type="hidden" name="ancestors" value="1"> |
| 84 | 84 | <?= I18N::translate('Find relationships via ancestors') ?> |
| 85 | - <?php else: ?> |
|
| 85 | + <?php else { |
|
| 86 | + : ?> |
|
| 86 | 87 | <?= Bootstrap4::radioButtons('ancestors', ['0' => I18N::translate('Find any relationship'), '1' => I18N::translate('Find relationships via ancestors')], $ancestors, false) ?> |
| 87 | 88 | <?php endif ?> |
| 88 | 89 | </div> |
@@ -115,6 +116,7 @@ discard block |
||
| 115 | 116 | if ($person1 && $person2) { |
| 116 | 117 | if (I18N::direction() === 'ltr') { |
| 117 | 118 | $diagonal1 = Theme::theme()->parameter('image-dline'); |
| 119 | +} |
|
| 118 | 120 | $diagonal2 = Theme::theme()->parameter('image-dline2'); |
| 119 | 121 | } else { |
| 120 | 122 | $diagonal1 = Theme::theme()->parameter('image-dline2'); |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | switch ($action) { |
| 49 | 49 | case 'delete': |
| 50 | - Database::prepare("DELETE FROM `##news` WHERE news_id = :news_id")->execute(['news_id' => $news_id,]); |
|
| 50 | + Database::prepare("DELETE FROM `##news` WHERE news_id = :news_id")->execute(['news_id' => $news_id, ]); |
|
| 51 | 51 | |
| 52 | 52 | header('Location: ' . WT_BASE_URL . 'index.php?ctype=' . $ctype . '&ged=' . $controller->tree()->getNameUrl()); |
| 53 | 53 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | // Create a media object, and return parameters needed by Select2 |
| 97 | 97 | header('Content-type: application/json'); |
| 98 | - $filename = 'eek.jpg'; |
|
| 98 | + $filename = 'eek.jpg'; |
|
| 99 | 99 | $auto = Filter::post('auto'); |
| 100 | 100 | $folder = Filter::post('folder'); |
| 101 | 101 | $note = Filter::post('note'); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | |
| 148 | - $gedcom = "0 @new@ OBJE\n1 FILE " . $folder . $file . "\n2 FORM " . $format; |
|
| 148 | + $gedcom = "0 @new@ OBJE\n1 FILE " . $folder . $file . "\n2 FORM " . $format; |
|
| 149 | 149 | if ($type !== '') { |
| 150 | 150 | $gedcom .= "\n3 TYPE " . $type; |
| 151 | 151 | } |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | if ($place_name === $query) { |
| 383 | 383 | $found = true; |
| 384 | 384 | } |
| 385 | - $results[] = [ |
|
| 385 | + $results[] = [ |
|
| 386 | 386 | 'id' => $place_name, |
| 387 | 387 | 'text' => $place_name, |
| 388 | 388 | ]; |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | if ($place_name === $query) { |
| 418 | 418 | $found = true; |
| 419 | 419 | } |
| 420 | - $results[] = [ |
|
| 420 | + $results[] = [ |
|
| 421 | 421 | 'id' => $place_name, |
| 422 | 422 | 'text' => $place_name, |
| 423 | 423 | ]; |