@@ -109,7 +109,7 @@ |
||
| 109 | 109 | </option> |
| 110 | 110 | </select> |
| 111 | 111 | </td> |
| 112 | - <?php else: ?> |
|
| 112 | + <?php else : ?> |
|
| 113 | 113 | <td class="descriptionbox wrap"></td> |
| 114 | 114 | <td class="optionbox wrap"></td> |
| 115 | 115 | <?php endif ?> |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | public static function createEditLinks($gedrec, GedcomRecord $record) { |
| 149 | 149 | return preg_replace( |
| 150 | 150 | "/@([^#@\n]+)@/m", |
| 151 | - '<a href="edit_interface.php?action=editraw&ged=' . $record->getTree()->getNameHtml() . '&xref=' . $record->getXref() .'">@\\1@</a>', |
|
| 151 | + '<a href="edit_interface.php?action=editraw&ged=' . $record->getTree()->getNameHtml() . '&xref=' . $record->getXref() . '">@\\1@</a>', |
|
| 152 | 152 | $gedrec |
| 153 | 153 | ); |
| 154 | 154 | } |
@@ -1089,7 +1089,7 @@ discard block |
||
| 1089 | 1089 | "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" |
| 1090 | 1090 | )->fetchAssoc(); |
| 1091 | 1091 | |
| 1092 | - $html = ''; |
|
| 1092 | + $html = ''; |
|
| 1093 | 1093 | $html .= '<table ' . Datatables::noteTableAttributes() . '><thead><tr>'; |
| 1094 | 1094 | $html .= '<th>' . I18N::translate('Title') . '</th>'; |
| 1095 | 1095 | $html .= '<th>' . I18N::translate('Individuals') . '</th>'; |
@@ -1155,7 +1155,7 @@ discard block |
||
| 1155 | 1155 | )->fetchAssoc(); |
| 1156 | 1156 | |
| 1157 | 1157 | $html = ''; |
| 1158 | - $html .= '<table ' . Datatables::repositoryTableAttributes() . '"><thead><tr>'; $html .= '<th>' . I18N::translate('Repository name') . '</th>'; |
|
| 1158 | + $html .= '<table ' . Datatables::repositoryTableAttributes() . '"><thead><tr>'; $html .= '<th>' . I18N::translate('Repository name') . '</th>'; |
|
| 1159 | 1159 | $html .= '<th>' . I18N::translate('Sources') . '</th>'; |
| 1160 | 1160 | $html .= '<th>' . I18N::translate('Last change') . '</th>'; |
| 1161 | 1161 | $html .= '<th>' . I18N::translate('Delete') . '</th>'; |
@@ -1585,7 +1585,7 @@ discard block |
||
| 1585 | 1585 | if ($endjd === $startjd) { |
| 1586 | 1586 | $html .= I18N::translate('No events exist for tomorrow.'); |
| 1587 | 1587 | } else { |
| 1588 | - $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)); |
|
| 1588 | + $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)); |
|
| 1589 | 1589 | } |
| 1590 | 1590 | } else { |
| 1591 | 1591 | if ($endjd === $startjd) { |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | if (Auth::isAdmin()) { |
| 90 | 90 | $user = User::findByGenealogyRecord($controller->record); |
| 91 | 91 | if ($user) { |
| 92 | - $user_link = ' — <a href="admin_users.php?filter=' . Filter::escapeHtml($user->getUserName()) . '">' . Filter::escapeHtml($user->getUserName()) . '</a>'; |
|
| 92 | + $user_link = ' — <a href="admin_users.php?filter=' . Filter::escapeHtml($user->getUserName()) . '">' . Filter::escapeHtml($user->getUserName()) . '</a>'; |
|
| 93 | 93 | }; |
| 94 | 94 | } |
| 95 | 95 | |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | } |
| 147 | 147 | } |
| 148 | 148 | } |
| 149 | - if ($user_id < 0 || $gedcom_id < 0 ) { |
|
| 149 | + if ($user_id < 0 || $gedcom_id < 0) { |
|
| 150 | 150 | header('Location: ' . WT_BASE_URL . 'admin.php'); |
| 151 | 151 | } elseif ($user_id > 0) { |
| 152 | 152 | header('Location: ' . WT_BASE_URL . 'index.php?ctype=user&ged=' . $WT_TREE->getNameUrl()); |
@@ -1470,7 +1470,7 @@ |
||
| 1470 | 1470 | '0' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'first'), |
| 1471 | 1471 | '1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last'), |
| 1472 | 1472 | ], $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX', ['name' => 'SHOW_PEDIGREE_PLACES_SUFFIX'])), |
| 1473 | - Bootstrap4::select(FunctionsEdit::numericOptions(range(1,9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES']) |
|
| 1473 | + Bootstrap4::select(FunctionsEdit::numericOptions(range(1, 9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES']) |
|
| 1474 | 1474 | ) ?> |
| 1475 | 1475 | <p class="small text-muted"> |
| 1476 | 1476 | <?= /* 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>.') ?> |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | <?= I18N::translate('Individual') ?> |
| 48 | 48 | </label> |
| 49 | 49 | <div class="col-sm-9"> |
| 50 | - <?= FunctionsEdit::formControlIndividual( $controller->root, ['id' => 'rootid', 'name' => 'rootid']) ?> |
|
| 50 | + <?= FunctionsEdit::formControlIndividual($controller->root, ['id' => 'rootid', 'name' => 'rootid']) ?> |
|
| 51 | 51 | </div> |
| 52 | 52 | </div> |
| 53 | 53 | |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | <div class="modal-content"> |
| 190 | 190 | <div class="modal-header"> |
| 191 | 191 | <h3 class="modal-title" id="wt-modal-title">' . $title . '</h3> |
| 192 | - <button type="button" class="close" data-dismiss="modal" aria-label="'. I18N::translate('close') .'"> |
|
| 192 | + <button type="button" class="close" data-dismiss="modal" aria-label="'. I18N::translate('close') . '"> |
|
| 193 | 193 | <span aria-hidden="true">×</span> |
| 194 | 194 | </button> |
| 195 | 195 | </div> |
@@ -641,7 +641,7 @@ |
||
| 641 | 641 | } elseif ($fact === 'REPO') { |
| 642 | 642 | echo |
| 643 | 643 | '<div class="input-group">' . |
| 644 | - '<span class="input-group-btn"><button class="btn btn-secondary" type="button" data-toggle="modal" data-target="#modal-create-repository" data-element-id="' . $element_id . '" title="' . I18N::translate('Create a repository') . '"><i class="fa fa-plus"></i></button></span>' . self::formControlRepository(Individual::getInstance($value, $WT_TREE), ['id' => $element_id, 'name' => $element_name]) . |
|
| 644 | + '<span class="input-group-btn"><button class="btn btn-secondary" type="button" data-toggle="modal" data-target="#modal-create-repository" data-element-id="' . $element_id . '" title="' . I18N::translate('Create a repository') . '"><i class="fa fa-plus"></i></button></span>' . self::formControlRepository(Individual::getInstance($value, $WT_TREE), ['id' => $element_id, 'name' => $element_name]) . |
|
| 645 | 645 | '</div>'; |
| 646 | 646 | } elseif ($fact === 'RESN') { |
| 647 | 647 | echo Bootstrap4::select(FunctionsEdit::optionsRestrictions(true), $value, ['id' => $element_id, 'name' => $element_name]); |