1<?php 2 3use Fisharebest\Webtrees\Auth; 4use Fisharebest\Webtrees\Contracts\UserInterface; 5use Fisharebest\Webtrees\Date; 6use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 7use Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 8use Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction; 9use Fisharebest\Webtrees\I18N; 10use Fisharebest\Webtrees\Individual; 11use Fisharebest\Webtrees\Tree; 12use Illuminate\Support\Collection; 13 14/** 15 * @var array<string,string> $all_fam_facts 16 * @var array<string,string> $all_indi_facts 17 * @var array<string,string> $all_name_facts 18 * @var array<string,string> $all_plac_facts 19 * @var array<string,string> $all_repo_facts 20 * @var array<string,string> $all_sour_facts 21 * @var array<string,string> $all_surname_traditions 22 * @var array<int,string> $calendar_formats 23 * @var string $data_folder 24 * @var array<int,string> $formats 25 * @var Date $french_calendar_end 26 * @var Date $french_calendar_start 27 * @var Date $gregorian_calendar_start 28 * @var Collection<UserInterface> $members 29 * @var Individual|null $pedigree_individual 30 * @var array<int,string> $privacy_options 31 * @var array<int,string> $relatives_events 32 * @var array<int,string> $source_types 33 * @var array<string,string> $surname_list_styles 34 * @var string $title 35 * @var Tree $tree 36 * @var int $tree_count 37 */ 38 39?> 40 41<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 42 43<h1><?= $title ?></h1> 44 45<form method="post" action="<?= e(route(TreePreferencesAction::class, ['tree' => $tree->name()])) ?>" class="form-horizontal"> 46 <?= csrf_field() ?> 47 48 <h3><?= I18N::translate('General') ?></h3> 49 50 <!-- TREE TITLE --> 51 <div class="row form-group"> 52 <label class="col-sm-3 col-form-label" for="title"> 53 <?= I18N::translate('Family tree title') ?> 54 </label> 55 <div class="col-sm-9"> 56 <input 57 class="form-control" 58 dir="auto" 59 id="title" 60 maxlength="255" 61 name="title" 62 required 63 type="text" 64 value="<?= e($tree->getPreference('title')) ?>" 65 > 66 </div> 67 </div> 68 69 <!-- TREE URL / FILENAME --> 70 <div class="row form-group"> 71 <label class="col-sm-3 col-form-label" for="gedcom"> 72 <?= I18N::translate('URL') ?> 73 </label> 74 <div class="col-sm-9"> 75 <div class="input-group" dir="ltr"> 76 <div class="input-group-prepend"> 77 <span class="input-group-text" dir="ltr"> 78 <?= e(explode('{tree}', rawurldecode(route('example')))[0]) ?> 79 </span> 80 </div> 81 <input class="form-control" dir="ltr" id="gedcom" maxlength="255" name="gedcom" required type="text" value="<?= e($tree->name()) ?>"> 82 <div class="input-group-append"> 83 <span class="input-group-text" dir="ltr"> 84 <?= e(explode('{tree}', rawurldecode(route('example')))[1]) ?> 85 </span> 86 </div> 87 </div> 88 <p class="small text-muted"> 89 <?= /* I18N: help text for family tree / GEDCOM file names */ I18N::translate('Avoid spaces and punctuation. A family name might be a good choice.') ?> 90 </p> 91 </div> 92 </div> 93 94 <!-- PEDIGREE_ROOT_ID --> 95 <div class="row form-group"> 96 <label class="col-sm-3 col-form-label" for="PEDIGREE_ROOT_ID"> 97 <?= /* I18N: A configuration setting */ I18N::translate('Default individual') ?> 98 </label> 99 <div class="col-sm-9"> 100 <?= view('components/select-individual', ['name' => 'PEDIGREE_ROOT_ID', 'individual' => $pedigree_individual, 'tree' => $tree]) ?> 101 <p class="small text-muted"> 102 <?= /* I18N: Help text for the “Default individual” configuration setting */ I18N::translate('This individual will be selected by default when viewing charts and reports.') ?> 103 </p> 104 </div> 105 </div> 106 107 <!-- CALENDAR_FORMAT --> 108 <fieldset class="form-group"> 109 <div class="row"> 110 <legend class="col-form-label col-sm-3"> 111 <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 112 <label class="sr-only" for="CALENDAR_FORMAT0"> 113 <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 1 114 </label> 115 <label class="sr-only" for="CALENDAR_FORMAT1"> 116 <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 2 117 </label> 118 </legend> 119 <div class="col-sm-9"> 120 <div class="row"> 121 <div class="col-sm-6" style="padding-left: 0;"> 122 <?= view('components/select', ['name' => 'CALENDAR_FORMAT0', 'selected' => $calendar_formats[0], 'options' => ['none' => I18N::translate('No calendar conversion')] + Date::calendarNames()]) ?> 123 </div> 124 <div class="col-sm-6" style="padding-right: 0;"> 125 <?= view('components/select', ['name' => 'CALENDAR_FORMAT1', 'selected' => $calendar_formats[1], 'options' => ['none' => I18N::translate('No calendar conversion')] + Date::calendarNames()]) ?> 126 </div> 127 </div> 128 <p class="small text-muted"> 129 <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('Different calendar systems are used in different parts of the world, and many other calendar systems have been used in the past. Where possible, you should enter dates using the calendar in which the event was originally recorded. You can then specify a conversion, to show these dates in a more familiar calendar. If you regularly use two calendars, you can specify two conversions and dates will be converted to both the selected calendars.') ?> 130 </p> 131 <p class="small text-muted"> 132 <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('Dates are only converted if they are valid for the calendar. For example, only dates between %1$s and %2$s will be converted to the French calendar and only dates after %3$s will be converted to the Gregorian calendar.', $french_calendar_start->display(false, null, false), $french_calendar_end->display(false, null, false), $gregorian_calendar_start->display(false, null, false)) ?> 133 </p> 134 <p class="small text-muted"> 135 <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('In some calendars, days start at midnight. In other calendars, days start at sunset. The conversion process does not take account of the time, so for any event that occurs between sunset and midnight, the conversion between these types of calendar will be one day out.') ?> 136 </p> 137 </div> 138 </div> 139 </fieldset> 140 141 <!-- GENERATE_UIDS --> 142 <fieldset class="form-group"> 143 <div class="row"> 144 <legend class="col-form-label col-sm-3"> 145 <?= /* I18N: A configuration setting */ I18N::translate('Add unique identifiers') ?> 146 </legend> 147 <div class="col-sm-9"> 148 <?= view('components/radios-inline', ['name' => 'GENERATE_UIDS', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('GENERATE_UIDS')]) ?> 149 <p class="small text-muted"> 150 <?= /* I18N: Help text for the “Add unique identifiers” configuration setting */ I18N::translate('Unique identifiers allow the same record to be found in different family trees and in different systems. They will be added whenever records are created or updated. If you do not want unique identifiers to be displayed, you can hide them using the privacy rules.') ?> 151 </p> 152 </div> 153 </div> 154 </fieldset> 155 156 <h3><?= I18N::translate('Contact information') ?></h3> 157 158 <!-- CONTACT_USER_ID --> 159 <div class="row form-group"> 160 <label class="col-sm-3 col-form-label" for="CONTACT_USER_ID"> 161 <?= /* I18N: A configuration setting */ I18N::translate('Genealogy contact') ?> 162 </label> 163 <div class="col-sm-9"> 164 <select id="CONTACT_USER_ID" name="CONTACT_USER_ID" class="form-control"> 165 <option value=""> </option> 166 <?php foreach ($members as $member) : ?> 167 <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('CONTACT_USER_ID') === $member->id() ? 'selected' : '' ?>> 168 <?= e($member->realName()) ?> - <?= e($member->userName()) ?> 169 </option> 170 <?php endforeach ?> 171 </select> 172 <p class="small text-muted"> 173 <?= /* I18N: Help text for the “Genealogy contact” configuration setting */ I18N::translate('The individual to contact about the genealogy data on this website.') ?> 174 </p> 175 </div> 176 </div> 177 178 <!-- WEBMASTER_USER_ID --> 179 <div class="row form-group"> 180 <label class="col-sm-3 col-form-label" for="WEBMASTER_USER_ID"> 181 <?= /* I18N: A configuration setting */ I18N::translate('Technical help contact') ?> 182 </label> 183 <div class="col-sm-9"> 184 <select id="WEBMASTER_USER_ID" name="WEBMASTER_USER_ID" class="form-control"> 185 <option value=""> </option> 186 <?php foreach ($members as $member) : ?> 187 <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('WEBMASTER_USER_ID') === $member->id() ? 'selected' : '' ?>> 188 <?= e($member->realName()) ?> - <?= e($member->userName()) ?> 189 </option> 190 <?php endforeach ?> 191 </select> 192 <p class="small text-muted"> 193 <?= /* I18N: Help text for the “Technical help contact” configuration setting */ I18N::translate('The individual to be contacted about technical questions or errors encountered on your website.') ?> 194 </p> 195 </div> 196 </div> 197 198 <h3><?= I18N::translate('Website') ?></h3> 199 200 <!-- META_TITLE --> 201 <div class="row form-group"> 202 <label class="col-sm-3 col-form-label" for="META_TITLE"> 203 <?= /* I18N: A configuration setting */ I18N::translate('Add to TITLE header tag') ?> 204 </label> 205 <div class="col-sm-9"> 206 <input 207 class="form-control" 208 id="META_TITLE" 209 maxlength="255" 210 name="META_TITLE" 211 type="text" 212 value="<?= e($tree->getPreference('META_TITLE')) ?>" 213 > 214 <p class="small text-muted"> 215 <?= /* I18N: Help text for the “Add to TITLE header tag” configuration setting */ I18N::translate('This text will be appended to each page title. It will be shown in the browser’s title bar, bookmarks, etc.') ?> 216 </p> 217 </div> 218 </div> 219 220 <!-- META_DESCRIPTION --> 221 <div class="row form-group"> 222 <label class="col-sm-3 col-form-label" for="META_DESCRIPTION"> 223 <?= /* I18N: A configuration setting */ I18N::translate('Description META tag') ?> 224 </label> 225 <div class="col-sm-9"> 226 <input 227 class="form-control" 228 id="META_DESCRIPTION" 229 maxlength="255" 230 name="META_DESCRIPTION" 231 type="text" 232 value="<?= e($tree->getPreference('META_DESCRIPTION')) ?>" 233 > 234 <p class="small text-muted"> 235 <?= /* I18N: Help text for the “Description META tag” configuration setting */ I18N::translate('Search engines may use this description of your site in their search results.') ?> 236 </p> 237 </div> 238 </div> 239 240 <h3><?= I18N::translate('Media folders') ?></h3> 241 242 <!-- MEDIA_DIRECTORY --> 243 <div class="row form-group"> 244 <label class="col-sm-3 col-form-label" for="MEDIA_DIRECTORY"> 245 <?= /* I18N: A configuration setting */ I18N::translate('Media folder') ?> 246 </label> 247 <div class="col-sm-9"> 248 <div class="input-group" dir="ltr"> 249 <div class="input-group-prepend"> 250 <span class="input-group-text" dir="ltr"> 251 <?= e($data_folder) ?> 252 </span> 253 </div> 254 <input class="form-control" dir="ltr" id="MEDIA_DIRECTORY" maxlength="255" name="MEDIA_DIRECTORY" type="text" value="<?= e($tree->getPreference('MEDIA_DIRECTORY')) ?>"> 255 </div> 256 <p class="small text-muted"> 257 <?= /* I18N: Help text for the “Media folder” configuration setting */ I18N::translate('This folder will be used to store the media files for this family tree.') ?> 258 <?= /* I18N: Help text for the “Media folder” configuration setting */ I18N::translate('If you select a different folder, you must also move any media files from the existing folder to the new one.') ?> 259 <?= /* I18N: Help text for the “Media folder” configuration setting */ I18N::translate('If two family trees use the same media folder, then they will be able to share media files. If they use different media folders, then their media files will be kept separate.') ?> 260 </p> 261 </div> 262 </div> 263 264 <h3><?= I18N::translate('Media files') ?></h3> 265 266 <!-- MEDIA_UPLOAD --> 267 <div class="row form-group"> 268 <label class="col-sm-3 col-form-label" for="MEDIA_UPLOAD"> 269 <?= /* I18N: A configuration setting */ I18N::translate('Who can upload new media files') ?> 270 </label> 271 <div class="col-sm-9"> 272 <?= view('components/select', ['name' => 'MEDIA_UPLOAD', 'selected' => $tree->getPreference('MEDIA_UPLOAD'), 'options' => $privacy_options]) ?> 273 <p class="small text-muted"> 274 <?= /* I18N: Help text for the “Who can upload new media files” configuration setting */ I18N::translate('If you are concerned that users might upload inappropriate images, you can restrict media uploads to managers only.') ?> 275 </p> 276 </div> 277 </div> 278 279 <!-- SHOW_MEDIA_DOWNLOAD --> 280 <fieldset class="form-group"> 281 <div class="row"> 282 <legend class="col-form-label col-sm-3"> 283 <?= /* I18N: A configuration setting */ I18N::translate('Show a download link in the media viewer') ?> 284 </legend> 285 <div class="col-sm-9"> 286 <?= view('components/select', ['name' => 'SHOW_MEDIA_DOWNLOAD', 'selected' => $tree->getPreference('SHOW_MEDIA_DOWNLOAD'), 'options' => Auth::accessLevelNames()]) ?> 287 <p class="small text-muted"> 288 <?= /* I18N: Help text for the “Show a download link in the media viewer” configuration setting */ I18N::translate('This option will make it easier for users to download images.') ?> 289 </p> 290 </div> 291 </div> 292 </fieldset> 293 294 <h3><?= I18N::translate('Thumbnail images') ?></h3> 295 296 <!-- SHOW_HIGHLIGHT_IMAGES --> 297 <fieldset class="form-group"> 298 <div class="row"> 299 <legend class="col-form-label col-sm-3"> 300 <?= I18N::translate('Thumbnail images') ?> 301 </legend> 302 <div class="col-sm-9"> 303 <?= view('components/radios-inline', ['name' => 'SHOW_HIGHLIGHT_IMAGES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_HIGHLIGHT_IMAGES')]) ?> 304 <p class="small text-muted"> 305 <?= I18N::translate('Show thumbnail images in charts and family groups.') ?> 306 </p> 307 </div> 308 </div> 309 </fieldset> 310 311 <!-- USE_SILHOUETTE --> 312 <fieldset class="form-group"> 313 <div class="row"> 314 <legend class="col-form-label col-sm-3"> 315 <?= /* I18N: A configuration setting */ I18N::translate('Use silhouettes') ?> 316 </legend> 317 <div class="col-sm-9"> 318 <?= view('components/radios-inline', ['name' => 'USE_SILHOUETTE', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('USE_SILHOUETTE')]) ?> 319 <p class="small text-muted"> 320 <?= /* I18N: Help text for the “Use silhouettes” configuration setting */ I18N::translate('Use silhouette images when no highlighted image for that individual has been specified. The images used are specific to the gender of the individual in question.') ?> 321 </p> 322 </div> 323 </div> 324 </fieldset> 325 326 <h3><?= I18N::translate('Watermarks') ?></h3> 327 328 <!-- SHOW_NO_WATERMARK --> 329 <div class="row form-group"> 330 <label class="col-sm-3 col-form-label" for="SHOW_NO_WATERMARK"> 331 <?= I18N::translate('Images without watermarks') ?> 332 </label> 333 <div class="col-sm-9"> 334 <?= view('components/select', ['name' => 'SHOW_NO_WATERMARK', 'selected' => $tree->getPreference('SHOW_NO_WATERMARK'), 'options' => Auth::accessLevelNames()]) ?> 335 <p class="small text-muted"> 336 <?= /* I18N: Help text for the “Images without watermarks” configuration setting */ I18N::translate('Watermarks are optional and normally shown just to visitors.') ?> 337 </p> 338 </div> 339 </div> 340 341 <h3><?= I18N::translate('Lists') ?></h3> 342 343 <!-- SURNAME_LIST_STYLE --> 344 <div class="row form-group"> 345 <label class="col-sm-3 col-form-label" for="SURNAME_LIST_STYLE"> 346 <?= I18N::translate('Surname list style') ?> 347 </label> 348 <div class="col-sm-9"> 349 <?= view('components/select', ['name' => 'SURNAME_LIST_STYLE', 'selected' => $tree->getPreference('SURNAME_LIST_STYLE'), 'options' => $surname_list_styles]) ?> 350 <p class="small text-muted"> 351 </p> 352 </div> 353 </div> 354 355 <!-- SUBLIST_TRIGGER_I --> 356 <div class="row form-group"> 357 <label class="col-sm-3 col-form-label" for="SUBLIST_TRIGGER_I"> 358 <?= /* I18N: A configuration setting */ I18N::translate('Maximum number of surnames on individual list') ?> 359 </label> 360 <div class="col-sm-9"> 361 <input 362 class="form-control" 363 id="SUBLIST_TRIGGER_I" 364 maxlength="5" 365 name="SUBLIST_TRIGGER_I" 366 required 367 type="text" 368 value="<?= e($tree->getPreference('SUBLIST_TRIGGER_I')) ?>" 369 > 370 <p class="small text-muted"> 371 <?= /* I18N: Help text for the “Maximum number of surnames on individual list” configuration setting */ I18N::translate('Long lists of individuals with the same surname can be broken into smaller sub-lists according to the first letter of the individual’s given name.<br><br>This option determines when sub-listing of surnames will occur. To disable sub-listing completely, set this option to zero.') ?> 372 </p> 373 </div> 374 </div> 375 376 <!-- SHOW_EST_LIST_DATES --> 377 <fieldset class="form-group"> 378 <div class="row"> 379 <legend class="col-form-label col-sm-3"> 380 <?= /* I18N: A configuration setting */ I18N::translate('Estimated dates for birth and death') ?> 381 </legend> 382 <div class="col-sm-9"> 383 <?= view('components/radios-inline', ['name' => 'SHOW_EST_LIST_DATES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_EST_LIST_DATES')]) ?> 384 <p class="small text-muted"> 385 <?= /* I18N: Help text for the “Estimated dates for birth and death” configuration setting */ I18N::translate('This option controls whether or not to show estimated dates for birth and death instead of leaving blanks on individual lists and charts for individuals whose dates are not known.') ?> 386 </p> 387 </div> 388 </div> 389 </fieldset> 390 391 <!-- SHOW_LAST_CHANGE --> 392 <fieldset class="form-group"> 393 <div class="row"> 394 <legend class="col-form-label col-sm-3"> 395 <?= I18N::translate('The date and time of the last update') ?> 396 </legend> 397 <div class="col-sm-9"> 398 <?= view('components/radios-inline', ['name' => 'SHOW_LAST_CHANGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_LAST_CHANGE')]) ?> 399 <p class="small text-muted"> 400 </p> 401 </div> 402 </div> 403 </fieldset> 404 405 <h3><?= I18N::translate('Charts') ?></h3> 406 407 <!-- SHOW_PARENTS_AGE --> 408 <fieldset class="form-group"> 409 <div class="row"> 410 <legend class="col-form-label col-sm-3"> 411 <?= /* I18N: A configuration setting */ I18N::translate('Age of parents next to child’s birthdate') ?> 412 </legend> 413 <div class="col-sm-9"> 414 <?= view('components/radios-inline', ['name' => 'SHOW_PARENTS_AGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_PARENTS_AGE')]) ?> 415 <p class="small text-muted"> 416 <?= /* I18N: Help text for the “Age of parents next to child’s birthdate” configuration setting */ I18N::translate('This option controls whether or not to show age of father and mother next to child’s birthdate on charts.') ?> 417 </p> 418 </div> 419 </div> 420 </fieldset> 421 422 <!-- CHART_BOX_TAGS --> 423 <div class="row form-group"> 424 <label class="col-sm-3 col-form-label" for="CHART_BOX_TAGS"> 425 <?= I18N::translate('Other facts to show in charts') ?> 426 </label> 427 <div class="col-sm-9"> 428 <div class="input-group"> 429 <?= view('components/select', ['name' => 'CHART_BOX_TAGS[]', 'id' => 'CHART_BOX_TAGS', 'selected' => explode(',', $tree->getPreference('CHART_BOX_TAGS')), 'options' => $all_indi_facts, 'class' => 'select2']) ?> 430 </div> 431 <p class="small text-muted"> 432 <?= /* I18N: Help text for the “Other facts to show in charts” configuration setting */ I18N::translate('This should be a comma or space separated list of facts, in addition to birth and death, that you want to appear in chart boxes such as the pedigree chart. This list requires you to use fact tags as defined in the GEDCOM 5.5.1 standard. For example, if you wanted the occupation to show up in the box, you would add “OCCU” to this field.') ?> 433 </p> 434 </div> 435 </div> 436 437 <h3><?= I18N::translate('Individual pages') ?></h3> 438 439 <!-- SHOW_RELATIVES_EVENTS --> 440 <fieldset class="form-group"> 441 <div class="row"> 442 <legend class="col-form-label col-sm-3"> 443 <?= I18N::translate('Show the events of close relatives on the individual page') ?> 444 </legend> 445 <div class="col-sm-3"> 446 <div class="form-check"> 447 <label for="_BIRT_GCHI"> 448 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_GCHI" value="_BIRT_GCHI" <?= in_array('_BIRT_GCHI', $relatives_events, true) ? 'checked' : '' ?>> 449 <?= I18N::translate('Birth of a grandchild') ?> 450 </label> 451 </div> 452 <div class="form-check"> 453 <label for="_BIRT_CHIL"> 454 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_CHIL" value="_BIRT_CHIL" <?= in_array('_BIRT_CHIL', $relatives_events, true) ? 'checked' : '' ?>> 455 <?= I18N::translate('Birth of a child') ?> 456 </label> 457 </div> 458 <div class="form-check"> 459 <label for="_BIRT_SIBL"> 460 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_SIBL" value="_BIRT_SIBL" <?= in_array('_BIRT_SIBL', $relatives_events, true) ? 'checked' : '' ?>> 461 <?= I18N::translate('Birth of a sibling') ?> 462 </label> 463 </div> 464 </div> 465 <div class="col-sm-3"> 466 <div class="form-check"> 467 <label for="_MARR_GCHI"> 468 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_GCHI" value="_MARR_GCHI" <?= in_array('_MARR_GCHI', $relatives_events, true) ? 'checked' : '' ?>> 469 <?= I18N::translate('Marriage of a grandchild') ?> 470 </label> 471 </div> 472 <div class="form-check"> 473 <label for="_MARR_CHIL"> 474 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_CHIL" value="_MARR_CHIL" <?= in_array('_MARR_CHIL', $relatives_events, true) ? 'checked' : '' ?>> 475 <?= I18N::translate('Marriage of a child') ?> 476 </label> 477 </div> 478 <div class="form-check"> 479 <label for="_MARR_SIBL"> 480 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_SIBL" value="_MARR_SIBL" <?= in_array('_MARR_SIBL', $relatives_events, true) ? 'checked' : '' ?>> 481 <?= I18N::translate('Marriage of a sibling') ?> 482 </label> 483 </div> 484 <div class="form-check"> 485 <label for="_MARR_PARE"> 486 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_PARE" value="_MARR_PARE" <?= in_array('_MARR_PARE', $relatives_events, true) ? 'checked' : '' ?>> 487 <?= I18N::translate('Marriage of a parent') ?> 488 </label> 489 </div> 490 </div> 491 <div class="col-sm-3"> 492 <div class="form-check"> 493 <label for="_DEAT_GCHI"> 494 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GCHI" value="_DEAT_GCHI" <?= in_array('_DEAT_GCHI', $relatives_events, true) ? 'checked' : '' ?>> 495 <?= I18N::translate('Death of a grandchild') ?> 496 </label> 497 </div> 498 <div class="form-check"> 499 <label for="_DEAT_CHIL"> 500 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_CHIL" value="_DEAT_CHIL" <?= in_array('_DEAT_CHIL', $relatives_events, true) ? 'checked' : '' ?>> 501 <?= I18N::translate('Death of a child') ?> 502 </label> 503 </div> 504 <div class="form-check"> 505 <label for="_DEAT_SIBL"> 506 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SIBL" value="_DEAT_SIBL" <?= in_array('_DEAT_SIBL', $relatives_events, true) ? 'checked' : '' ?>> 507 <?= I18N::translate('Death of a sibling') ?> 508 </label> 509 </div> 510 <div class="form-check"> 511 <label for="_DEAT_PARE"> 512 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_PARE" value="_DEAT_PARE" <?= in_array('_DEAT_PARE', $relatives_events, true) ? 'checked' : '' ?>> 513 <?= I18N::translate('Death of a parent') ?> 514 </label> 515 </div> 516 <div class="form-check"> 517 <label for="_DEAT_SPOU"> 518 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SPOU" value="_DEAT_SPOU" <?= in_array('_DEAT_SPOU', $relatives_events, true) ? 'checked' : '' ?>> 519 <?= I18N::translate('Death of a spouse') ?> 520 </label> 521 </div> 522 <div class="form-check"> 523 <label for="_DEAT_GPAR"> 524 <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GPAR" value="_DEAT_GPAR" <?= in_array('_DEAT_GPAR', $relatives_events, true) ? 'checked' : '' ?>> 525 <?= I18N::translate('Death of a grandparent') ?> 526 </label> 527 </div> 528 </div> 529 </div> 530 </fieldset> 531 532 <!-- SHOW_FACT_ICONS --> 533 <fieldset class="form-group"> 534 <div class="row"> 535 <legend class="col-form-label col-sm-3"> 536 <?= /* I18N: A configuration setting */ I18N::translate('Fact icons') ?> 537 </legend> 538 <div class="col-sm-9"> 539 <?= view('components/radios-inline', ['name' => 'SHOW_FACT_ICONS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_FACT_ICONS')]) ?> 540 <p class="small text-muted"> 541 <?= /* I18N: Help text for the “Fact icons” configuration setting */ I18N::translate('Some themes can display icons on the “Facts and events” tab.') ?> 542 </p> 543 </div> 544 </div> 545 </fieldset> 546 547 <!-- EXPAND_NOTES --> 548 <fieldset class="form-group"> 549 <div class="row"> 550 <legend class="col-form-label col-sm-3"> 551 <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand notes') ?> 552 </legend> 553 <div class="col-sm-9"> 554 <?= view('components/radios-inline', ['name' => 'EXPAND_NOTES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_NOTES')]) ?> 555 <p class="small text-muted"> 556 <?= /* I18N: Help text for the “Automatically expand notes” configuration setting */ 557 I18N::translate('This option controls whether or not to automatically display content of a <i>Note</i> record on the Individual page.') ?> 558 </p> 559 </div> 560 </div> 561 </fieldset> 562 563 <!-- EXPAND_SOURCES --> 564 <fieldset class="form-group"> 565 <div class="row"> 566 <legend class="col-form-label col-sm-3"> 567 <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand sources') ?> 568 </legend> 569 <div class="col-sm-9"> 570 <?= view('components/radios-inline', ['name' => 'EXPAND_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_SOURCES')]) ?> 571 <p class="small text-muted"> 572 <?= /* I18N: Help text for the “Automatically expand sources” configuration setting */ 573 I18N::translate('This option controls whether or not to automatically display content of a <i>Source</i> record on the Individual page.') ?> 574 </p> 575 </div> 576 </div> 577 </fieldset> 578 579 <h3><?= I18N::translate('Places') ?></h3> 580 581 <!-- SHOW_PEDIGREE_PLACES --> 582 <fieldset class="form-group"> 583 <div class="row"> 584 <legend class="col-form-label col-sm-3"> 585 <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?> 586 <label class="sr-only" for="SHOW_PEDIGREE_PLACES_SUFFIX"> 587 <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?> 588 <?= I18N::translate('first') ?> / <?= I18N::translate('last') ?> 589 </label> 590 <label class="sr-only" for="SHOW_PEDIGREE_PLACES"> 591 <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?> 592 </label> 593 </legend> 594 <div class="col-sm-9"> 595 <?= /* I18N: The placeholders are edit controls. Show the [first/last] [1/2/3/4/5] parts of a place name */ I18N::translate( 596 'Show the %1$s %2$s parts of a place name.', 597 view('components/select', ['name' => 'SHOW_PEDIGREE_PLACES_SUFFIX', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX'), 'options' => ['0' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'first'), '1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last')]]), 598 view('components/select-number', ['name' => 'SHOW_PEDIGREE_PLACES', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES'), 'options' => range(1, 9)]) 599 ) ?> 600 <p class="small text-muted"> 601 <?= /* 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>.') ?> 602 </p> 603 </div> 604 </div> 605 </fieldset> 606 607 <h3><?= I18N::translate('Text') ?></h3> 608 609 <!-- FORMAT_TEXT --> 610 <fieldset class="form-group"> 611 <div class="row"> 612 <legend class="col-form-label col-sm-3"> 613 <?= /* I18N: A configuration setting */ I18N::translate('Format text and notes') ?> 614 </legend> 615 <div class="col-sm-9"> 616 <?= view('components/radios-inline', ['name' => 'FORMAT_TEXT', 'options' => $formats, 'selected' => $tree->getPreference('FORMAT_TEXT')]) ?> 617 <p class="small text-muted"> 618 <?= /* I18N: Help text for the “Format text and notes” configuration setting */ I18N::translate('To ensure compatibility with other genealogy applications, notes, text, and transcripts should be recorded in simple, unformatted text. However, formatting is often desirable to aid presentation, comprehension, etc.') ?> 619 </p> 620 <p class="small text-muted"> 621 <?= /* I18N: Help text for the “Format text and notes” configuration setting */ I18N::translate('Markdown is a simple system of formatting, used on websites such as Wikipedia. It uses unobtrusive punctuation characters to create headings and sub-headings, bold and italic text, lists, tables, etc.') ?> 622 </p> 623 </div> 624 </div> 625 </fieldset> 626 627 <h3><?= I18N::translate('General') ?></h3> 628 629 <!-- SHOW_GEDCOM_RECORD --> 630 <fieldset class="form-group"> 631 <div class="row"> 632 <legend class="col-form-label col-sm-3"> 633 <?= /* I18N: A configuration setting */ I18N::translate('Allow users to see raw GEDCOM records') ?> 634 </legend> 635 <div class="col-sm-9"> 636 <?= view('components/radios-inline', ['name' => 'SHOW_GEDCOM_RECORD', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('SHOW_GEDCOM_RECORD')]) ?> 637 <p class="small text-muted"> 638 <?= /* I18N: Help text for the “Allow users to see raw GEDCOM records” configuration setting */ I18N::translate('Setting this to <b>Yes</b> will place links on individuals, sources, and families to let users bring up another window containing the raw data taken right out of the GEDCOM file.') ?> 639 </p> 640 </div> 641 </div> 642 </fieldset> 643 644 <!-- HIDE_GEDCOM_ERRORS --> 645 <fieldset class="form-group"> 646 <div class="row"> 647 <legend class="col-form-label col-sm-3"> 648 <?= /* I18N: A configuration setting */ I18N::translate('GEDCOM errors') ?> 649 </legend> 650 <div class="col-sm-9"> 651 <?= view('components/radios-inline', ['name' => 'HIDE_GEDCOM_ERRORS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('HIDE_GEDCOM_ERRORS')]) ?> 652 <p class="small text-muted"> 653 <?= /* I18N: Help text for the “GEDCOM errors” configuration setting */ I18N::translate('Many genealogy programs create GEDCOM files with custom tags, and webtrees understands most of them. When unrecognized tags are found, this option lets you choose whether to ignore them or display a warning message.') ?> 654 </p> 655 </div> 656 </div> 657 </fieldset> 658 659 <!-- SHOW_COUNTER --> 660 <fieldset class="form-group"> 661 <div class="row"> 662 <legend class="col-form-label col-sm-3"> 663 <?= /* I18N: A configuration setting */ I18N::translate('Hit counters') ?> 664 </legend> 665 <div class="col-sm-9"> 666 <?= view('components/radios-inline', ['name' => 'SHOW_COUNTER', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_COUNTER')]) ?> 667 <p class="small text-muted"> 668 <?= /* I18N: Help text for the “Hit counters” configuration setting */ I18N::translate('Some pages can display the number of times that they have been visited.') ?> 669 </p> 670 </div> 671 </div> 672 </fieldset> 673 674 <h3><?= /* I18N: Options for editing */ I18N::translate('Edit preferences') ?></h3> 675 676 <h3><?= I18N::translate('Facts for individual records') ?></h3> 677 678 <!-- INDI_FACTS_ADD --> 679 <div class="row form-group"> 680 <label class="col-sm-3 col-form-label" for="INDI_FACTS_ADD"> 681 <?= I18N::translate('All individual facts') ?> 682 </label> 683 <div class="col-sm-9"> 684 <?= view('components/select', ['name' => 'INDI_FACTS_ADD[]', 'id' => 'INDI_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_ADD')), 'options' => $all_indi_facts, 'class' => 'select2']) ?> 685 <p class="small text-muted"> 686 <?= /* I18N: Help text for the “All individual facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can add to individuals. You can modify this list by removing or adding fact names, even custom ones, as necessary. Fact names that appear in this list must not also appear in the “Unique individual facts” list.') ?> 687 </p> 688 </div> 689 </div> 690 691 <!-- INDI_FACTS_UNIQUE --> 692 <div class="row form-group"> 693 <label class="col-sm-3 col-form-label" for="INDI_FACTS_UNIQUE"> 694 <?= I18N::translate('Unique individual facts') ?> 695 </label> 696 <div class="col-sm-9"> 697 <?= view('components/select', ['name' => 'INDI_FACTS_UNIQUE[]', 'id' => 'INDI_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_UNIQUE')), 'options' => $all_indi_facts, 'class' => 'select2']) ?> 698 <p class="small text-muted"> 699 <?= /* I18N: Help text for the “Unique individual facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can only add once to individuals. For example, if BIRT is in this list, users will not be able to add more than one BIRT record to an individual. Fact names that appear in this list must not also appear in the “All individual facts” list.') ?> 700 </p> 701 </div> 702 </div> 703 704 <!-- QUICK_REQUIRED_FACTS --> 705 <div class="row form-group"> 706 <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FACTS"> 707 <?= I18N::translate('Facts for new individuals') ?> 708 </label> 709 <div class="col-sm-9"> 710 <?= view('components/select', ['name' => 'QUICK_REQUIRED_FACTS[]', 'id' => 'QUICK_REQUIRED_FACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FACTS')), 'options' => $all_indi_facts, 'class' => 'select2']) ?> 711 <p class="small text-muted"> 712 <?= /* I18N: Help text for the “Facts for new individuals” configuration setting */ I18N::translate('This is a comma separated list of GEDCOM fact tags that will be shown when adding a new individual. For example, if BIRT is in the list, fields for birth date and birth place will be shown on the form.') ?> 713 </p> 714 </div> 715 </div> 716 717 <!-- INDI_FACTS_QUICK --> 718 <div class="row form-group"> 719 <label class="col-sm-3 col-form-label" for="INDI_FACTS_QUICK"> 720 <?= I18N::translate('Quick individual facts') ?> 721 </label> 722 <div class="col-sm-9"> 723 <?= view('components/select', ['name' => 'INDI_FACTS_QUICK[]', 'id' => 'INDI_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_QUICK')), 'options' => $all_indi_facts, 'class' => 'select2']) ?> 724 <p class="small text-muted"> 725 <?= /* I18N: Help text for the “Quick individual facts” configuration setting */ I18N::translate('The most common individual facts and events are listed separately, so that they can be added more easily.') ?> 726 </p> 727 </div> 728 </div> 729 730 <h3><?= I18N::translate('Facts for family records') ?></h3> 731 732 <!-- FAM_FACTS_ADD --> 733 <div class="row form-group"> 734 <label class="col-sm-3 col-form-label" for="FAM_FACTS_ADD"> 735 <?= I18N::translate('All family facts') ?> 736 </label> 737 <div class="col-sm-9"> 738 <?= view('components/select', ['name' => 'FAM_FACTS_ADD[]', 'id' => 'FAM_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_ADD')), 'options' => $all_fam_facts, 'class' => 'select2']) ?> 739 <p class="small text-muted"> 740 <?= /* I18N: Help text for the “All family facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can add to families. You can modify this list by removing or adding fact names, even custom ones, as necessary. Fact names that appear in this list must not also appear in the “Unique family facts” list.') ?> 741 </p> 742 </div> 743 </div> 744 745 <!-- FAM_FACTS_UNIQUE --> 746 <div class="row form-group"> 747 <label class="col-sm-3 col-form-label" for="FAM_FACTS_UNIQUE"> 748 <?= I18N::translate('Unique family facts') ?> 749 </label> 750 <div class="col-sm-9"> 751 <?= view('components/select', ['name' => 'FAM_FACTS_UNIQUE[]', 'id' => 'FAM_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_UNIQUE')), 'options' => $all_fam_facts, 'class' => 'select2']) ?> 752 <p class="small text-muted"> 753 <?= /* I18N: Help text for the “Unique family facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can only add once to families. For example, if MARR is in this list, users will not be able to add more than one MARR record to a family. Fact names that appear in this list must not also appear in the “All family facts” list.') ?> 754 </p> 755 </div> 756 </div> 757 758 <!-- QUICK_REQUIRED_FAMFACTS --> 759 <div class="row form-group"> 760 <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FAMFACTS"> 761 <?= I18N::translate('Facts for new families') ?> 762 </label> 763 <div class="col-sm-9"> 764 <?= view('components/select', ['name' => 'QUICK_REQUIRED_FAMFACTS[]', 'id' => 'QUICK_REQUIRED_FAMFACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FAMFACTS')), 'options' => $all_fam_facts, 'class' => 'select2']) ?> 765 <p class="small text-muted"> 766 <?= /* I18N: Help text for the “Facts for new families” configuration setting */ I18N::translate('This is a comma separated list of GEDCOM fact tags that will be shown when adding a new family. For example, if MARR is in the list, then fields for marriage date and marriage place will be shown on the form.') ?> 767 </p> 768 </div> 769 </div> 770 771 <!-- FAM_FACTS_QUICK --> 772 <div class="row form-group"> 773 <label class="col-sm-3 col-form-label" for="FAM_FACTS_QUICK"> 774 <?= I18N::translate('Quick family facts') ?> 775 </label> 776 <div class="col-sm-9"> 777 <?= view('components/select', ['name' => 'FAM_FACTS_QUICK[]', 'id' => 'FAM_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_QUICK')), 'options' => $all_fam_facts, 'class' => 'select2']) ?> 778 <p class="small text-muted"> 779 <?= /* I18N: Help text for the “Quick family facts” configuration setting */ I18N::translate('The most common family facts and events are listed separately, so that they can be added more easily.') ?> 780 </p> 781 </div> 782 </div> 783 784 <h3><?= I18N::translate('Facts for source records') ?></h3> 785 786 <!-- SOUR_FACTS_ADD --> 787 <div class="row form-group"> 788 <label class="col-sm-3 col-form-label" for="SOUR_FACTS_ADD"> 789 <?= I18N::translate('All source facts') ?> 790 </label> 791 <div class="col-sm-9"> 792 <?= view('components/select', ['name' => 'SOUR_FACTS_ADD[]', 'id' => 'SOUR_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_ADD')), 'options' => $all_sour_facts, 'class' => 'select2']) ?> 793 <p class="small text-muted"> 794 <?= /* I18N: Help text for the “All source facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can add to sources. You can modify this list by removing or adding fact names, even custom ones, as necessary. Fact names that appear in this list must not also appear in the “Unique source facts” list.') ?> 795 </p> 796 </div> 797 </div> 798 799 <!-- SOUR_FACTS_UNIQUE --> 800 <div class="row form-group"> 801 <label class="col-sm-3 col-form-label" for="SOUR_FACTS_UNIQUE"> 802 <?= I18N::translate('Unique source facts') ?> 803 </label> 804 <div class="col-sm-9"> 805 <?= view('components/select', ['name' => 'SOUR_FACTS_UNIQUE[]', 'id' => 'SOUR_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_UNIQUE')), 'options' => $all_sour_facts, 'class' => 'select2']) ?> 806 <p class="small text-muted"> 807 <?= /* I18N: Help text for the “Unique source facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can only add once to sources. For example, if TITL is in this list, users will not be able to add more than one TITL record to a source. Fact names that appear in this list must not also appear in the “All source facts” list.') ?> 808 </p> 809 </div> 810 </div> 811 812 <!-- SOUR_FACTS_QUICK --> 813 <div class="row form-group"> 814 <label class="col-sm-3 col-form-label" for="SOUR_FACTS_QUICK"> 815 <?= I18N::translate('Quick source facts') ?> 816 </label> 817 <div class="col-sm-9"> 818 <?= view('components/select', ['name' => 'SOUR_FACTS_QUICK[]', 'id' => 'SOUR_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_QUICK')), 'options' => $all_sour_facts, 'class' => 'select2']) ?> 819 <p class="small text-muted"> 820 <?= /* I18N: Help text for the “Quick source facts” configuration setting */ I18N::translate('The most common source facts are listed separately, so that they can be added more easily.') ?> 821 </p> 822 </div> 823 </div> 824 825 <h3><?= I18N::translate('Facts for repository records') ?></h3> 826 827 <!-- REPO_FACTS_ADD --> 828 <div class="row form-group"> 829 <label class="col-sm-3 col-form-label" for="REPO_FACTS_ADD"> 830 <?= I18N::translate('All repository facts') ?> 831 </label> 832 <div class="col-sm-9"> 833 <?= view('components/select', ['name' => 'REPO_FACTS_ADD[]', 'id' => 'REPO_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_ADD')), 'options' => $all_repo_facts, 'class' => 'select2']) ?> 834 <p class="small text-muted"> 835 <?= /* I18N: Help text for the “All repository facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can add to repositories. You can modify this list by removing or adding fact names, even custom ones, as necessary. Fact names that appear in this list must not also appear in the “Unique repository facts” list.') ?> 836 </p> 837 </div> 838 </div> 839 840 <!-- REPO_FACTS_UNIQUE --> 841 <div class="row form-group"> 842 <label class="col-sm-3 col-form-label" for="REPO_FACTS_UNIQUE"> 843 <?= I18N::translate('Unique repository facts') ?> 844 </label> 845 <div class="col-sm-9"> 846 <?= view('components/select', ['name' => 'REPO_FACTS_UNIQUE[]', 'id' => 'REPO_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_UNIQUE')), 'options' => $all_repo_facts, 'class' => 'select2']) ?> 847 <p class="small text-muted"> 848 <?= /* I18N: Help text for the “Unique repository facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can only add once to repositories. For example, if NAME is in this list, users will not be able to add more than one NAME record to a repository. Fact names that appear in this list must not also appear in the “All repository facts” list.') ?> 849 </p> 850 </div> 851 </div> 852 853 <!-- REPO_FACTS_QUICK --> 854 <div class="row form-group"> 855 <label class="col-sm-3 col-form-label" for="REPO_FACTS_QUICK"> 856 <?= I18N::translate('Quick repository facts') ?> 857 </label> 858 <div class="col-sm-9"> 859 <?= view('components/select', ['name' => 'REPO_FACTS_QUICK[]', 'id' => 'REPO_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_QUICK')), 'options' => $all_repo_facts, 'class' => 'select2']) ?> 860 <p class="small text-muted"> 861 <?= /* I18N: Help text for the “Quick repository facts” configuration setting */ I18N::translate('The most common repository facts are listed separately, so that they can be added more easily.') ?> 862 </p> 863 </div> 864 </div> 865 866 <h3><?= I18N::translate('Advanced fact preferences') ?></h3> 867 868 <!-- ADVANCED_NAME_FACTS --> 869 <div class="row form-group"> 870 <label class="col-sm-3 col-form-label" for="ADVANCED_NAME_FACTS"> 871 <?= I18N::translate('Advanced name facts') ?> 872 </label> 873 <div class="col-sm-9"> 874 <?= view('components/select', ['name' => 'ADVANCED_NAME_FACTS[]', 'id' => 'ADVANCED_NAME_FACTS', 'selected' => explode(',', $tree->getPreference('ADVANCED_NAME_FACTS')), 'options' => $all_name_facts, 'class' => 'select2']) ?> 875 <p class="small text-muted"> 876 <?= /* I18N: Help text for the “Advanced name facts” configuration setting */ I18N::translate('This is a comma separated list of GEDCOM fact tags that will be shown on the add/edit name form. If you use non-Latin alphabets such as Hebrew, Greek, Cyrillic, or Arabic, you may want to add tags such as _HEB, ROMN, FONE, etc. to allow you to store names in several different alphabets.') ?> 877 </p> 878 </div> 879 </div> 880 881 <!-- ADVANCED_PLAC_FACTS --> 882 <div class="row form-group"> 883 <label class="col-sm-3 col-form-label" for="ADVANCED_PLAC_FACTS"> 884 <?= I18N::translate('Advanced place name facts') ?> 885 </label> 886 <div class="col-sm-9"> 887 <?= view('components/select', ['name' => 'ADVANCED_PLAC_FACTS[]', 'id' => 'ADVANCED_PLAC_FACTS', 'selected' => explode(',', $tree->getPreference('ADVANCED_PLAC_FACTS')), 'options' => $all_plac_facts, 'class' => 'select2']) ?> 888 <p class="small text-muted"> 889 <?= /* I18N: Help text for the “Advanced place name facts” configuration setting */ I18N::translate('This is a comma separated list of GEDCOM fact tags that will be shown when you add or edit place names. If you use non-Latin alphabets such as Hebrew, Greek, Cyrillic, or Arabic, you may want to add tags such as _HEB, ROMN, FONE, etc. to allow you to store place names in several different alphabets.') ?> 890 </p> 891 </div> 892 </div> 893 894 <h3><?= I18N::translate('Other preferences') ?></h3> 895 896 <!-- SURNAME_TRADITION --> 897 <fieldset class="form-group"> 898 <div class="row"> 899 <legend class="col-form-label col-sm-3"> 900 <?= I18N::translate('Surname tradition') ?> 901 </legend> 902 <div class="col-sm-9"> 903 <?= view('components/radios', ['name' => 'SURNAME_TRADITION', 'options' => $all_surname_traditions, 'selected' => $tree->getPreference('SURNAME_TRADITION')]) ?> 904 <p class="small text-muted"> 905 <?= /* I18N: Help text for the “Surname tradition” configuration setting */ I18N::translate('When you add a new family member, a default surname can be provided. This surname will depend on the local tradition.') ?> 906 </p> 907 </div> 908 </div> 909 </fieldset> 910 911 <!-- FULL_SOURCES --> 912 <fieldset class="form-group"> 913 <div class="row"> 914 <legend class="col-form-label col-sm-3"> 915 <?= /* I18N: A configuration setting */ I18N::translate('Use full source citations') ?> 916 </legend> 917 <div class="col-sm-9"> 918 <?= view('components/radios-inline', ['name' => 'FULL_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('FULL_SOURCES')]) ?> 919 <p class="small text-muted"> 920 <?= /* I18N: Help text for the “Use full source citations” configuration setting */ I18N::translate('Source citations can include fields to record the quality of the data (primary, secondary, etc.) and the date the event was recorded in the source. If you don’t use these fields, you can disable them when creating new source citations.') ?> 921 </p> 922 </div> 923 </div> 924 </fieldset> 925 926 <!-- PREFER_LEVEL2_SOURCES --> 927 <fieldset class="form-group"> 928 <div class="row"> 929 <legend class="col-form-label col-sm-3"> 930 <?= /* I18N: A configuration setting */ I18N::translate('Source type') ?> 931 </legend> 932 <div class="col-sm-9"> 933 <?= view('components/radios-inline', ['name' => 'PREFER_LEVEL2_SOURCES', 'options' => $source_types, 'selected' => (int) $tree->getPreference('PREFER_LEVEL2_SOURCES')]) ?> 934 <p class="small text-muted"> 935 <?= /* I18N: Help text for the “Source type” configuration setting */ I18N::translate('When adding new close relatives, you can add source citations to the records (individual and family) or to the facts and events (birth, marriage, and death). This option controls whether records or facts will be selected by default.') ?> 936 </p> 937 </div> 938 </div> 939 </fieldset> 940 941 <!-- NO_UPDATE_CHAN --> 942 <fieldset class="form-group"> 943 <div class="row"> 944 <legend class="col-form-label col-sm-3"> 945 <?= /* I18N: A configuration setting */ I18N::translate('Keep the existing “last change” information') ?> 946 </legend> 947 <div class="col-sm-9"> 948 <?= view('components/radios-inline', ['name' => 'NO_UPDATE_CHAN', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('NO_UPDATE_CHAN')]) ?> 949 <p class="small text-muted"> 950 <?= /* I18N: Help text for the “Keep the existing ‘last change’ information” configuration setting */ I18N::translate('When a record is edited, the user and timestamp are recorded. Sometimes it is desirable to keep the existing “last change” information, for example when making minor corrections to someone else’s data. This option controls whether this feature is selected by default.') ?> 951 </p> 952 </div> 953 </div> 954 </fieldset> 955 956 <div class="row form-group"> 957 <div class="offset-sm-3 col-sm-9"> 958 <button type="submit" class="btn btn-primary"> 959 <?= view('icons/save') ?> 960 <?= I18N::translate('save') ?> 961 </button> 962 <a class="btn btn-secondary" href="<?= e(route(ManageTrees::class, ['tree' => $tree->name()])) ?>"> 963 <?= view('icons/cancel') ?> 964 <?= I18N::translate('cancel') ?> 965 </a> 966 <!-- Coming soon 967 <div class="form-check"> 968 <?php if ($tree_count > 1) : ?> 969 <label> 970 <input type="checkbox" name="all_trees"> 971 <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to all family trees') ?> 972 </label> 973 <?php endif ?> 974 </div> 975 <div class="form-check"> 976 <label> 977 <input type="checkbox" name="new_trees"> 978 <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to new family trees') ?> 979 </label> 980 </div> 981 </div> 982 --> 983 </div> 984</form> 985