1b6c326d8SGreg Roach<?php 2b6c326d8SGreg Roach 3870365fbSGreg Roachuse Fisharebest\Webtrees\Auth; 47c2c99faSGreg Roachuse Fisharebest\Webtrees\Contracts\UserInterface; 58548b21cSGreg Roachuse Fisharebest\Webtrees\Date; 60c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 76fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 86fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction; 9b6c326d8SGreg Roachuse Fisharebest\Webtrees\I18N; 107c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual; 11*f882f05dSGreg Roachuse Fisharebest\Webtrees\Registry; 127c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 137c2c99faSGreg Roachuse Illuminate\Support\Collection; 147c2c99faSGreg Roach 157c2c99faSGreg Roach/** 163faaf002SGreg Roach * @var array<string,string> $all_family_facts 173faaf002SGreg Roach * @var array<string,string> $all_individual_facts 187c2c99faSGreg Roach * @var array<string,string> $all_surname_traditions 197c2c99faSGreg Roach * @var array<int,string> $calendar_formats 207c2c99faSGreg Roach * @var string $data_folder 217c2c99faSGreg Roach * @var array<int,string> $formats 227c2c99faSGreg Roach * @var Date $french_calendar_end 237c2c99faSGreg Roach * @var Date $french_calendar_start 247c2c99faSGreg Roach * @var Date $gregorian_calendar_start 257c2c99faSGreg Roach * @var Collection<UserInterface> $members 267c2c99faSGreg Roach * @var Individual|null $pedigree_individual 277c2c99faSGreg Roach * @var array<int,string> $privacy_options 287c2c99faSGreg Roach * @var array<int,string> $relatives_events 297c2c99faSGreg Roach * @var array<int,string> $source_types 307c2c99faSGreg Roach * @var array<string,string> $surname_list_styles 317c2c99faSGreg Roach * @var string $title 327c2c99faSGreg Roach * @var Tree $tree 337c2c99faSGreg Roach * @var int $tree_count 347c2c99faSGreg Roach */ 35b6c326d8SGreg Roach 36b6c326d8SGreg Roach?> 37dd6b2bfcSGreg Roach 386fd01894SGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 39dd6b2bfcSGreg Roach 40dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 41dd6b2bfcSGreg Roach 426fd01894SGreg Roach<form method="post" action="<?= e(route(TreePreferencesAction::class, ['tree' => $tree->name()])) ?>" class="form-horizontal"> 43dd6b2bfcSGreg Roach <?= csrf_field() ?> 44dd6b2bfcSGreg Roach 45fc75825cSGreg Roach <h2><?= I18N::translate('General') ?></h2> 46dd6b2bfcSGreg Roach 47dd6b2bfcSGreg Roach <!-- TREE TITLE --> 48afc2d190SGreg Roach <div class="row form-group mb-3"> 49dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="title"> 50dd6b2bfcSGreg Roach <?= I18N::translate('Family tree title') ?> 51dd6b2bfcSGreg Roach </label> 52dd6b2bfcSGreg Roach <div class="col-sm-9"> 53dd6b2bfcSGreg Roach <input 54dd6b2bfcSGreg Roach class="form-control" 55dd6b2bfcSGreg Roach dir="auto" 56dd6b2bfcSGreg Roach id="title" 57dd6b2bfcSGreg Roach maxlength="255" 58dd6b2bfcSGreg Roach name="title" 59dd6b2bfcSGreg Roach required 60dd6b2bfcSGreg Roach type="text" 61dd6b2bfcSGreg Roach value="<?= e($tree->getPreference('title')) ?>" 62dd6b2bfcSGreg Roach > 63dd6b2bfcSGreg Roach </div> 64dd6b2bfcSGreg Roach </div> 65dd6b2bfcSGreg Roach 66dd6b2bfcSGreg Roach <!-- TREE URL / FILENAME --> 67590a0393SGreg Roach <?php if (Auth::isAdmin()) : ?> 68afc2d190SGreg Roach <div class="row form-group mb-3"> 69dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="gedcom"> 70dd6b2bfcSGreg Roach <?= I18N::translate('URL') ?> 71dd6b2bfcSGreg Roach </label> 72dd6b2bfcSGreg Roach <div class="col-sm-9"> 73dd6b2bfcSGreg Roach <div class="input-group" dir="ltr"> 74a3c95e78SGreg Roach <span class="input-group-text" dir="ltr"> 75e252129fSGreg Roach <?= e(explode('{tree}', rawurldecode(route('example')))[0]) ?> 76dd6b2bfcSGreg Roach </span> 77315eb316SGreg Roach 787dca5265SGreg Roach <input class="form-control" dir="ltr" id="gedcom" maxlength="255" name="gedcom" required="required" type="text" value="<?= e($tree->name()) ?>"> 79315eb316SGreg Roach 80e252129fSGreg Roach <span class="input-group-text" dir="ltr"> 81e252129fSGreg Roach <?= e(explode('{tree}', rawurldecode(route('example')))[1]) ?> 82e252129fSGreg Roach </span> 83e252129fSGreg Roach </div> 84315eb316SGreg Roach 85315eb316SGreg Roach <div class="form-text"> 86dd6b2bfcSGreg Roach <?= /* I18N: help text for family tree / GEDCOM file names */ I18N::translate('Avoid spaces and punctuation. A family name might be a good choice.') ?> 87315eb316SGreg Roach </div> 88dd6b2bfcSGreg Roach </div> 89dd6b2bfcSGreg Roach </div> 90590a0393SGreg Roach <?php endif ?> 91dd6b2bfcSGreg Roach 92dd6b2bfcSGreg Roach <!-- PEDIGREE_ROOT_ID --> 93afc2d190SGreg Roach <div class="row form-group mb-3"> 94dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="PEDIGREE_ROOT_ID"> 95dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Default individual') ?> 96dd6b2bfcSGreg Roach </label> 97dd6b2bfcSGreg Roach <div class="col-sm-9"> 98b6c326d8SGreg Roach <?= view('components/select-individual', ['name' => 'PEDIGREE_ROOT_ID', 'individual' => $pedigree_individual, 'tree' => $tree]) ?> 99315eb316SGreg Roach <div class="form-text"> 100dd6b2bfcSGreg Roach <?= /* I18N: Help text for the “Default individual” configuration setting */ I18N::translate('This individual will be selected by default when viewing charts and reports.') ?> 101315eb316SGreg Roach </div> 102dd6b2bfcSGreg Roach </div> 103dd6b2bfcSGreg Roach </div> 104dd6b2bfcSGreg Roach 105dd6b2bfcSGreg Roach <!-- CALENDAR_FORMAT --> 106afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 107dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 108dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 109315eb316SGreg Roach <label class="visually-hidden" for="CALENDAR_FORMAT0"> 110dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 1 111dd6b2bfcSGreg Roach </label> 112315eb316SGreg Roach <label class="visually-hidden" for="CALENDAR_FORMAT1"> 113dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 2 114dd6b2bfcSGreg Roach </label> 115dd6b2bfcSGreg Roach </legend> 116dd6b2bfcSGreg Roach <div class="col-sm-9"> 117b6c326d8SGreg Roach <div class="row"> 118b681e140SGreg Roach <div class="col-sm-6"> 119*f882f05dSGreg Roach <?= view('components/select', ['name' => 'CALENDAR_FORMAT0', 'selected' => $calendar_formats[0], 'options' => ['none' => I18N::translate('No calendar conversion')] + Registry::calendarDateFactory()->supportedCalendars()]) ?> 120dd6b2bfcSGreg Roach </div> 121b681e140SGreg Roach <div class="col-sm-6"> 122*f882f05dSGreg Roach <?= view('components/select', ['name' => 'CALENDAR_FORMAT1', 'selected' => $calendar_formats[1], 'options' => ['none' => I18N::translate('No calendar conversion')] + Registry::calendarDateFactory()->supportedCalendars()]) ?> 123dd6b2bfcSGreg Roach </div> 124dd6b2bfcSGreg Roach </div> 125315eb316SGreg Roach <div class="form-text"> 126dd6b2bfcSGreg Roach <?= /* 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.') ?> 127315eb316SGreg Roach </div> 128315eb316SGreg Roach <div class="form-text"> 12966ecd017SGreg Roach <?= /* 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(), $french_calendar_end->display(), $gregorian_calendar_start->display()) ?> 130315eb316SGreg Roach </div> 131315eb316SGreg Roach <div class="form-text"> 132dd6b2bfcSGreg Roach <?= /* 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.') ?> 133dd6b2bfcSGreg Roach </div> 134dd6b2bfcSGreg Roach </div> 135dd6b2bfcSGreg Roach </fieldset> 136dd6b2bfcSGreg Roach 137dd6b2bfcSGreg Roach <!-- GENERATE_UIDS --> 138afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 139dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 140dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Add unique identifiers') ?> 141dd6b2bfcSGreg Roach </legend> 142dd6b2bfcSGreg Roach <div class="col-sm-9"> 143b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'GENERATE_UIDS', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('GENERATE_UIDS')]) ?> 144315eb316SGreg Roach <div class="form-text"> 145dd6b2bfcSGreg Roach <?= /* 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.') ?> 146dd6b2bfcSGreg Roach </div> 147dd6b2bfcSGreg Roach </div> 148dd6b2bfcSGreg Roach </fieldset> 149dd6b2bfcSGreg Roach 150fc75825cSGreg Roach <h2><?= I18N::translate('Contact information') ?></h2> 151dd6b2bfcSGreg Roach 152dd6b2bfcSGreg Roach <!-- CONTACT_USER_ID --> 153afc2d190SGreg Roach <div class="row form-group mb-3"> 154dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="CONTACT_USER_ID"> 155dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Genealogy contact') ?> 156dd6b2bfcSGreg Roach </label> 157dd6b2bfcSGreg Roach <div class="col-sm-9"> 158dd6b2bfcSGreg Roach <select id="CONTACT_USER_ID" name="CONTACT_USER_ID" class="form-control"> 159027478c2SGreg Roach <option value=""> </option> 160dd6b2bfcSGreg Roach <?php foreach ($members as $member) : ?> 161895230eeSGreg Roach <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('CONTACT_USER_ID') === $member->id() ? 'selected' : '' ?>> 162c65e00b4SGreg Roach <?= e($member->realName()) ?> - <?= e($member->userName()) ?> 163dd6b2bfcSGreg Roach </option> 164dd6b2bfcSGreg Roach <?php endforeach ?> 165dd6b2bfcSGreg Roach </select> 166315eb316SGreg Roach <div class="form-text"> 167dd6b2bfcSGreg Roach <?= /* I18N: Help text for the “Genealogy contact” configuration setting */ I18N::translate('The individual to contact about the genealogy data on this website.') ?> 168315eb316SGreg Roach </div> 169dd6b2bfcSGreg Roach </div> 170dd6b2bfcSGreg Roach </div> 171dd6b2bfcSGreg Roach 172dd6b2bfcSGreg Roach <!-- WEBMASTER_USER_ID --> 173afc2d190SGreg Roach <div class="row form-group mb-3"> 174dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="WEBMASTER_USER_ID"> 175dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Technical help contact') ?> 176dd6b2bfcSGreg Roach </label> 177dd6b2bfcSGreg Roach <div class="col-sm-9"> 178dd6b2bfcSGreg Roach <select id="WEBMASTER_USER_ID" name="WEBMASTER_USER_ID" class="form-control"> 179027478c2SGreg Roach <option value=""> </option> 180dd6b2bfcSGreg Roach <?php foreach ($members as $member) : ?> 181895230eeSGreg Roach <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('WEBMASTER_USER_ID') === $member->id() ? 'selected' : '' ?>> 182c65e00b4SGreg Roach <?= e($member->realName()) ?> - <?= e($member->userName()) ?> 183dd6b2bfcSGreg Roach </option> 184dd6b2bfcSGreg Roach <?php endforeach ?> 185dd6b2bfcSGreg Roach </select> 186315eb316SGreg Roach <div class="form-text"> 187dd6b2bfcSGreg Roach <?= /* 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.') ?> 188315eb316SGreg Roach </div> 189dd6b2bfcSGreg Roach </div> 190dd6b2bfcSGreg Roach </div> 191dd6b2bfcSGreg Roach 192fc75825cSGreg Roach <h2><?= I18N::translate('Website') ?></h2> 193dd6b2bfcSGreg Roach 194dd6b2bfcSGreg Roach <!-- META_TITLE --> 195afc2d190SGreg Roach <div class="row form-group mb-3"> 196dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="META_TITLE"> 197dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Add to TITLE header tag') ?> 198dd6b2bfcSGreg Roach </label> 199dd6b2bfcSGreg Roach <div class="col-sm-9"> 200dd6b2bfcSGreg Roach <input 201dd6b2bfcSGreg Roach class="form-control" 202dd6b2bfcSGreg Roach id="META_TITLE" 203dd6b2bfcSGreg Roach maxlength="255" 204dd6b2bfcSGreg Roach name="META_TITLE" 205dd6b2bfcSGreg Roach type="text" 206dd6b2bfcSGreg Roach value="<?= e($tree->getPreference('META_TITLE')) ?>" 207dd6b2bfcSGreg Roach > 208315eb316SGreg Roach <div class="form-text"> 209dd6b2bfcSGreg Roach <?= /* 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.') ?> 210315eb316SGreg Roach </div> 211dd6b2bfcSGreg Roach </div> 212dd6b2bfcSGreg Roach </div> 213dd6b2bfcSGreg Roach 214dd6b2bfcSGreg Roach <!-- META_DESCRIPTION --> 215afc2d190SGreg Roach <div class="row form-group mb-3"> 216dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="META_DESCRIPTION"> 217dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Description META tag') ?> 218dd6b2bfcSGreg Roach </label> 219dd6b2bfcSGreg Roach <div class="col-sm-9"> 220dd6b2bfcSGreg Roach <input 221dd6b2bfcSGreg Roach class="form-control" 222dd6b2bfcSGreg Roach id="META_DESCRIPTION" 223dd6b2bfcSGreg Roach maxlength="255" 224dd6b2bfcSGreg Roach name="META_DESCRIPTION" 225dd6b2bfcSGreg Roach type="text" 226dd6b2bfcSGreg Roach value="<?= e($tree->getPreference('META_DESCRIPTION')) ?>" 227dd6b2bfcSGreg Roach > 228315eb316SGreg Roach <div class="form-text"> 2292406e0e0SGreg Roach <?= /* 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.') ?> 230315eb316SGreg Roach </div> 231dd6b2bfcSGreg Roach </div> 232dd6b2bfcSGreg Roach </div> 233dd6b2bfcSGreg Roach 234590a0393SGreg Roach <?php if (Auth::isAdmin()) : ?> 235fc75825cSGreg Roach <h2><?= I18N::translate('Media folders') ?></h2> 236dd6b2bfcSGreg Roach 237dd6b2bfcSGreg Roach <!-- MEDIA_DIRECTORY --> 238afc2d190SGreg Roach <div class="row form-group mb-3"> 239dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="MEDIA_DIRECTORY"> 240dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Media folder') ?> 241dd6b2bfcSGreg Roach </label> 242dd6b2bfcSGreg Roach <div class="col-sm-9"> 243dd6b2bfcSGreg Roach <div class="input-group" dir="ltr"> 244a3c95e78SGreg Roach <span class="input-group-text" dir="ltr"> 24508af4a8cSGreg Roach <?= e($data_folder) ?> 246dd6b2bfcSGreg Roach </span> 247315eb316SGreg Roach 248a3c95e78SGreg Roach <input class="form-control" dir="ltr" id="MEDIA_DIRECTORY" maxlength="255" name="MEDIA_DIRECTORY" type="text" value="<?= e($tree->getPreference('MEDIA_DIRECTORY')) ?>"> 249dd6b2bfcSGreg Roach </div> 250315eb316SGreg Roach 251315eb316SGreg Roach <div class="form-text"> 252dd6b2bfcSGreg Roach <?= /* 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.') ?> 253dd6b2bfcSGreg Roach <?= /* 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.') ?> 254dd6b2bfcSGreg Roach <?= /* 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.') ?> 255315eb316SGreg Roach </div> 256dd6b2bfcSGreg Roach </div> 257dd6b2bfcSGreg Roach </div> 258590a0393SGreg Roach <?php endif ?> 259dd6b2bfcSGreg Roach 260fc75825cSGreg Roach <h2><?= I18N::translate('Media files') ?></h2> 261dd6b2bfcSGreg Roach 262dd6b2bfcSGreg Roach <!-- MEDIA_UPLOAD --> 263afc2d190SGreg Roach <div class="row form-group mb-3"> 264dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="MEDIA_UPLOAD"> 265dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Who can upload new media files') ?> 266dd6b2bfcSGreg Roach </label> 267dd6b2bfcSGreg Roach <div class="col-sm-9"> 268c9e11c2aSGreg Roach <?= view('components/select', ['name' => 'MEDIA_UPLOAD', 'selected' => $tree->getPreference('MEDIA_UPLOAD'), 'options' => $privacy_options]) ?> 269315eb316SGreg Roach <div class="form-text"> 270dd6b2bfcSGreg Roach <?= /* 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.') ?> 271315eb316SGreg Roach </div> 272dd6b2bfcSGreg Roach </div> 273dd6b2bfcSGreg Roach </div> 274dd6b2bfcSGreg Roach 275dd6b2bfcSGreg Roach <!-- SHOW_MEDIA_DOWNLOAD --> 276afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 277dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 278dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Show a download link in the media viewer') ?> 279dd6b2bfcSGreg Roach </legend> 280dd6b2bfcSGreg Roach <div class="col-sm-9"> 281870365fbSGreg Roach <?= view('components/select', ['name' => 'SHOW_MEDIA_DOWNLOAD', 'selected' => $tree->getPreference('SHOW_MEDIA_DOWNLOAD'), 'options' => Auth::accessLevelNames()]) ?> 282315eb316SGreg Roach <div class="form-text"> 283dd6b2bfcSGreg Roach <?= /* 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.') ?> 284dd6b2bfcSGreg Roach </div> 285dd6b2bfcSGreg Roach </div> 286dd6b2bfcSGreg Roach </fieldset> 287dd6b2bfcSGreg Roach 288fc75825cSGreg Roach <h2><?= I18N::translate('Thumbnail images') ?></h2> 289dd6b2bfcSGreg Roach 290dd6b2bfcSGreg Roach <!-- SHOW_HIGHLIGHT_IMAGES --> 291afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 292dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 293dd6b2bfcSGreg Roach <?= I18N::translate('Thumbnail images') ?> 294dd6b2bfcSGreg Roach </legend> 295dd6b2bfcSGreg Roach <div class="col-sm-9"> 296b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'SHOW_HIGHLIGHT_IMAGES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_HIGHLIGHT_IMAGES')]) ?> 297315eb316SGreg Roach <div class="form-text"> 298dd6b2bfcSGreg Roach <?= I18N::translate('Show thumbnail images in charts and family groups.') ?> 299dd6b2bfcSGreg Roach </div> 300dd6b2bfcSGreg Roach </div> 301dd6b2bfcSGreg Roach </fieldset> 302dd6b2bfcSGreg Roach 303dd6b2bfcSGreg Roach <!-- USE_SILHOUETTE --> 304afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 305dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 306dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Use silhouettes') ?> 307dd6b2bfcSGreg Roach </legend> 308dd6b2bfcSGreg Roach <div class="col-sm-9"> 309b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'USE_SILHOUETTE', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('USE_SILHOUETTE')]) ?> 310315eb316SGreg Roach <div class="form-text"> 311dd6b2bfcSGreg Roach <?= /* 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.') ?> 312dd6b2bfcSGreg Roach </div> 313dd6b2bfcSGreg Roach </div> 314dd6b2bfcSGreg Roach </fieldset> 315dd6b2bfcSGreg Roach 316fc75825cSGreg Roach <h2><?= I18N::translate('Watermarks') ?></h2> 317dd6b2bfcSGreg Roach 318dd6b2bfcSGreg Roach <!-- SHOW_NO_WATERMARK --> 319afc2d190SGreg Roach <div class="row form-group mb-3"> 320dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="SHOW_NO_WATERMARK"> 321dd6b2bfcSGreg Roach <?= I18N::translate('Images without watermarks') ?> 322dd6b2bfcSGreg Roach </label> 323dd6b2bfcSGreg Roach <div class="col-sm-9"> 324870365fbSGreg Roach <?= view('components/select', ['name' => 'SHOW_NO_WATERMARK', 'selected' => $tree->getPreference('SHOW_NO_WATERMARK'), 'options' => Auth::accessLevelNames()]) ?> 325315eb316SGreg Roach <div class="form-text"> 326dd6b2bfcSGreg Roach <?= /* I18N: Help text for the “Images without watermarks” configuration setting */ I18N::translate('Watermarks are optional and normally shown just to visitors.') ?> 327315eb316SGreg Roach </div> 328dd6b2bfcSGreg Roach </div> 329dd6b2bfcSGreg Roach </div> 330dd6b2bfcSGreg Roach 331fc75825cSGreg Roach <h2><?= I18N::translate('Lists') ?></h2> 332dd6b2bfcSGreg Roach 333dd6b2bfcSGreg Roach <!-- SURNAME_LIST_STYLE --> 334afc2d190SGreg Roach <div class="row form-group mb-3"> 335dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="SURNAME_LIST_STYLE"> 336dd6b2bfcSGreg Roach <?= I18N::translate('Surname list style') ?> 337dd6b2bfcSGreg Roach </label> 338dd6b2bfcSGreg Roach <div class="col-sm-9"> 339c9e11c2aSGreg Roach <?= view('components/select', ['name' => 'SURNAME_LIST_STYLE', 'selected' => $tree->getPreference('SURNAME_LIST_STYLE'), 'options' => $surname_list_styles]) ?> 340315eb316SGreg Roach <div class="form-text"> 341315eb316SGreg Roach </div> 342dd6b2bfcSGreg Roach </div> 343dd6b2bfcSGreg Roach </div> 344dd6b2bfcSGreg Roach 345dd6b2bfcSGreg Roach <!-- SUBLIST_TRIGGER_I --> 346afc2d190SGreg Roach <div class="row form-group mb-3"> 347dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="SUBLIST_TRIGGER_I"> 348dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Maximum number of surnames on individual list') ?> 349dd6b2bfcSGreg Roach </label> 350dd6b2bfcSGreg Roach <div class="col-sm-9"> 351dd6b2bfcSGreg Roach <input 352dd6b2bfcSGreg Roach class="form-control" 353dd6b2bfcSGreg Roach id="SUBLIST_TRIGGER_I" 354dd6b2bfcSGreg Roach maxlength="5" 355dd6b2bfcSGreg Roach name="SUBLIST_TRIGGER_I" 356dd6b2bfcSGreg Roach required 357dd6b2bfcSGreg Roach type="text" 358dd6b2bfcSGreg Roach value="<?= e($tree->getPreference('SUBLIST_TRIGGER_I')) ?>" 359dd6b2bfcSGreg Roach > 360315eb316SGreg Roach <div class="form-text"> 361dd6b2bfcSGreg Roach <?= /* 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.') ?> 362315eb316SGreg Roach </div> 363dd6b2bfcSGreg Roach </div> 364dd6b2bfcSGreg Roach </div> 365dd6b2bfcSGreg Roach 366dd6b2bfcSGreg Roach <!-- SHOW_EST_LIST_DATES --> 367afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 368dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 369dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Estimated dates for birth and death') ?> 370dd6b2bfcSGreg Roach </legend> 371dd6b2bfcSGreg Roach <div class="col-sm-9"> 372b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'SHOW_EST_LIST_DATES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_EST_LIST_DATES')]) ?> 373315eb316SGreg Roach <div class="form-text"> 374dd6b2bfcSGreg Roach <?= /* 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.') ?> 375dd6b2bfcSGreg Roach </div> 376dd6b2bfcSGreg Roach </div> 377dd6b2bfcSGreg Roach </fieldset> 378dd6b2bfcSGreg Roach 379dd6b2bfcSGreg Roach <!-- SHOW_LAST_CHANGE --> 380afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 381dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 382dd6b2bfcSGreg Roach <?= I18N::translate('The date and time of the last update') ?> 383dd6b2bfcSGreg Roach </legend> 384dd6b2bfcSGreg Roach <div class="col-sm-9"> 385b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'SHOW_LAST_CHANGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_LAST_CHANGE')]) ?> 386315eb316SGreg Roach <div class="form-text"> 387dd6b2bfcSGreg Roach </div> 388dd6b2bfcSGreg Roach </div> 389dd6b2bfcSGreg Roach </fieldset> 390dd6b2bfcSGreg Roach 391fc75825cSGreg Roach <h2><?= I18N::translate('Charts') ?></h2> 392dd6b2bfcSGreg Roach 393dd6b2bfcSGreg Roach <!-- SHOW_PARENTS_AGE --> 394afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 395dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 396dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Age of parents next to child’s birthdate') ?> 397dd6b2bfcSGreg Roach </legend> 398dd6b2bfcSGreg Roach <div class="col-sm-9"> 399b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'SHOW_PARENTS_AGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_PARENTS_AGE')]) ?> 400315eb316SGreg Roach <div class="form-text"> 401dd6b2bfcSGreg Roach <?= /* 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.') ?> 402dd6b2bfcSGreg Roach </div> 403dd6b2bfcSGreg Roach </div> 404dd6b2bfcSGreg Roach </fieldset> 405dd6b2bfcSGreg Roach 406dd6b2bfcSGreg Roach <!-- CHART_BOX_TAGS --> 407afc2d190SGreg Roach <div class="row form-group mb-3"> 408dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="CHART_BOX_TAGS"> 409dd6b2bfcSGreg Roach <?= I18N::translate('Other facts to show in charts') ?> 410dd6b2bfcSGreg Roach </label> 411dd6b2bfcSGreg Roach <div class="col-sm-9"> 412dd6b2bfcSGreg Roach <div class="input-group"> 413c8d78f19SGreg Roach <?= view('components/select', ['name' => 'CHART_BOX_TAGS[]', 'id' => 'CHART_BOX_TAGS', 'selected' => explode(',', $tree->getPreference('CHART_BOX_TAGS')), 'options' => $all_individual_facts, 'class' => 'tom-select']) ?> 414dd6b2bfcSGreg Roach </div> 415315eb316SGreg Roach <div class="form-text"> 416dd6b2bfcSGreg Roach <?= /* 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.') ?> 417315eb316SGreg Roach </div> 418dd6b2bfcSGreg Roach </div> 419dd6b2bfcSGreg Roach </div> 420dd6b2bfcSGreg Roach 421fc75825cSGreg Roach <h2><?= I18N::translate('Individual pages') ?></h2> 422dd6b2bfcSGreg Roach 423dd6b2bfcSGreg Roach <!-- SHOW_RELATIVES_EVENTS --> 424afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 425dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 426dd6b2bfcSGreg Roach <?= I18N::translate('Show the events of close relatives on the individual page') ?> 427dd6b2bfcSGreg Roach </legend> 428dd6b2bfcSGreg Roach <div class="col-sm-3"> 429dd6b2bfcSGreg Roach <div class="form-check"> 430dd6b2bfcSGreg Roach <label for="_BIRT_GCHI"> 43122d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_GCHI" value="_BIRT_GCHI" <?= in_array('_BIRT_GCHI', $relatives_events, true) ? 'checked' : '' ?>> 432dd6b2bfcSGreg Roach <?= I18N::translate('Birth of a grandchild') ?> 433dd6b2bfcSGreg Roach </label> 434dd6b2bfcSGreg Roach </div> 435dd6b2bfcSGreg Roach <div class="form-check"> 436dd6b2bfcSGreg Roach <label for="_BIRT_CHIL"> 43722d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_CHIL" value="_BIRT_CHIL" <?= in_array('_BIRT_CHIL', $relatives_events, true) ? 'checked' : '' ?>> 438dd6b2bfcSGreg Roach <?= I18N::translate('Birth of a child') ?> 439dd6b2bfcSGreg Roach </label> 440dd6b2bfcSGreg Roach </div> 441dd6b2bfcSGreg Roach <div class="form-check"> 442dd6b2bfcSGreg Roach <label for="_BIRT_SIBL"> 44322d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_SIBL" value="_BIRT_SIBL" <?= in_array('_BIRT_SIBL', $relatives_events, true) ? 'checked' : '' ?>> 444dd6b2bfcSGreg Roach <?= I18N::translate('Birth of a sibling') ?> 445dd6b2bfcSGreg Roach </label> 446dd6b2bfcSGreg Roach </div> 447dd6b2bfcSGreg Roach </div> 448dd6b2bfcSGreg Roach <div class="col-sm-3"> 449dd6b2bfcSGreg Roach <div class="form-check"> 450dd6b2bfcSGreg Roach <label for="_MARR_GCHI"> 45122d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_GCHI" value="_MARR_GCHI" <?= in_array('_MARR_GCHI', $relatives_events, true) ? 'checked' : '' ?>> 452dd6b2bfcSGreg Roach <?= I18N::translate('Marriage of a grandchild') ?> 453dd6b2bfcSGreg Roach </label> 454dd6b2bfcSGreg Roach </div> 455dd6b2bfcSGreg Roach <div class="form-check"> 456dd6b2bfcSGreg Roach <label for="_MARR_CHIL"> 45722d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_CHIL" value="_MARR_CHIL" <?= in_array('_MARR_CHIL', $relatives_events, true) ? 'checked' : '' ?>> 458dd6b2bfcSGreg Roach <?= I18N::translate('Marriage of a child') ?> 459dd6b2bfcSGreg Roach </label> 460dd6b2bfcSGreg Roach </div> 461dd6b2bfcSGreg Roach <div class="form-check"> 462dd6b2bfcSGreg Roach <label for="_MARR_SIBL"> 46322d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_SIBL" value="_MARR_SIBL" <?= in_array('_MARR_SIBL', $relatives_events, true) ? 'checked' : '' ?>> 464dd6b2bfcSGreg Roach <?= I18N::translate('Marriage of a sibling') ?> 465dd6b2bfcSGreg Roach </label> 466dd6b2bfcSGreg Roach </div> 467dd6b2bfcSGreg Roach <div class="form-check"> 468dd6b2bfcSGreg Roach <label for="_MARR_PARE"> 46922d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_PARE" value="_MARR_PARE" <?= in_array('_MARR_PARE', $relatives_events, true) ? 'checked' : '' ?>> 470dd6b2bfcSGreg Roach <?= I18N::translate('Marriage of a parent') ?> 471dd6b2bfcSGreg Roach </label> 472dd6b2bfcSGreg Roach </div> 473dd6b2bfcSGreg Roach </div> 474dd6b2bfcSGreg Roach <div class="col-sm-3"> 475dd6b2bfcSGreg Roach <div class="form-check"> 476dd6b2bfcSGreg Roach <label for="_DEAT_GCHI"> 47722d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GCHI" value="_DEAT_GCHI" <?= in_array('_DEAT_GCHI', $relatives_events, true) ? 'checked' : '' ?>> 478dd6b2bfcSGreg Roach <?= I18N::translate('Death of a grandchild') ?> 479dd6b2bfcSGreg Roach </label> 480dd6b2bfcSGreg Roach </div> 481dd6b2bfcSGreg Roach <div class="form-check"> 482dd6b2bfcSGreg Roach <label for="_DEAT_CHIL"> 48322d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_CHIL" value="_DEAT_CHIL" <?= in_array('_DEAT_CHIL', $relatives_events, true) ? 'checked' : '' ?>> 484dd6b2bfcSGreg Roach <?= I18N::translate('Death of a child') ?> 485dd6b2bfcSGreg Roach </label> 486dd6b2bfcSGreg Roach </div> 487dd6b2bfcSGreg Roach <div class="form-check"> 488dd6b2bfcSGreg Roach <label for="_DEAT_SIBL"> 48922d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SIBL" value="_DEAT_SIBL" <?= in_array('_DEAT_SIBL', $relatives_events, true) ? 'checked' : '' ?>> 490dd6b2bfcSGreg Roach <?= I18N::translate('Death of a sibling') ?> 491dd6b2bfcSGreg Roach </label> 492dd6b2bfcSGreg Roach </div> 493dd6b2bfcSGreg Roach <div class="form-check"> 494dd6b2bfcSGreg Roach <label for="_DEAT_PARE"> 49522d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_PARE" value="_DEAT_PARE" <?= in_array('_DEAT_PARE', $relatives_events, true) ? 'checked' : '' ?>> 496dd6b2bfcSGreg Roach <?= I18N::translate('Death of a parent') ?> 497dd6b2bfcSGreg Roach </label> 498dd6b2bfcSGreg Roach </div> 499dd6b2bfcSGreg Roach <div class="form-check"> 500dd6b2bfcSGreg Roach <label for="_DEAT_SPOU"> 50122d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SPOU" value="_DEAT_SPOU" <?= in_array('_DEAT_SPOU', $relatives_events, true) ? 'checked' : '' ?>> 502dd6b2bfcSGreg Roach <?= I18N::translate('Death of a spouse') ?> 503dd6b2bfcSGreg Roach </label> 504dd6b2bfcSGreg Roach </div> 505dd6b2bfcSGreg Roach <div class="form-check"> 506dd6b2bfcSGreg Roach <label for="_DEAT_GPAR"> 50722d65e5aSGreg Roach <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GPAR" value="_DEAT_GPAR" <?= in_array('_DEAT_GPAR', $relatives_events, true) ? 'checked' : '' ?>> 5080b73ecfcSGreg Roach <?= I18N::translate('Death of a grandparent') ?> 509dd6b2bfcSGreg Roach </label> 510dd6b2bfcSGreg Roach </div> 511dd6b2bfcSGreg Roach </div> 512dd6b2bfcSGreg Roach </fieldset> 513dd6b2bfcSGreg Roach 514dd6b2bfcSGreg Roach <!-- SHOW_FACT_ICONS --> 515afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 516dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 517dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Fact icons') ?> 518dd6b2bfcSGreg Roach </legend> 519dd6b2bfcSGreg Roach <div class="col-sm-9"> 520b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'SHOW_FACT_ICONS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_FACT_ICONS')]) ?> 521315eb316SGreg Roach <div class="form-text"> 522dd6b2bfcSGreg Roach <?= /* I18N: Help text for the “Fact icons” configuration setting */ I18N::translate('Some themes can display icons on the “Facts and events” tab.') ?> 523dd6b2bfcSGreg Roach </div> 524dd6b2bfcSGreg Roach </div> 525dd6b2bfcSGreg Roach </fieldset> 526dd6b2bfcSGreg Roach 527dd6b2bfcSGreg Roach <!-- EXPAND_NOTES --> 528afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 529dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 530dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand notes') ?> 531dd6b2bfcSGreg Roach </legend> 532dd6b2bfcSGreg Roach <div class="col-sm-9"> 533b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'EXPAND_NOTES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_NOTES')]) ?> 534315eb316SGreg Roach <div class="form-text"> 535dd6b2bfcSGreg Roach <?= /* I18N: Help text for the “Automatically expand notes” configuration setting */ 536dd6b2bfcSGreg Roach I18N::translate('This option controls whether or not to automatically display content of a <i>Note</i> record on the Individual page.') ?> 537dd6b2bfcSGreg Roach </div> 538dd6b2bfcSGreg Roach </div> 539dd6b2bfcSGreg Roach </fieldset> 540dd6b2bfcSGreg Roach 541dd6b2bfcSGreg Roach <!-- EXPAND_SOURCES --> 542afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 543dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 544dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand sources') ?> 545dd6b2bfcSGreg Roach </legend> 546dd6b2bfcSGreg Roach <div class="col-sm-9"> 547b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'EXPAND_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_SOURCES')]) ?> 548315eb316SGreg Roach <div class="form-text"> 549dd6b2bfcSGreg Roach <?= /* I18N: Help text for the “Automatically expand sources” configuration setting */ 550dd6b2bfcSGreg Roach I18N::translate('This option controls whether or not to automatically display content of a <i>Source</i> record on the Individual page.') ?> 551dd6b2bfcSGreg Roach </div> 552dd6b2bfcSGreg Roach </div> 553dd6b2bfcSGreg Roach </fieldset> 554dd6b2bfcSGreg Roach 555fc75825cSGreg Roach <h2><?= I18N::translate('Places') ?></h2> 556dd6b2bfcSGreg Roach 557dd6b2bfcSGreg Roach <!-- SHOW_PEDIGREE_PLACES --> 558afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 559dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 560dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?> 561315eb316SGreg Roach <label class="visually-hidden" for="SHOW_PEDIGREE_PLACES_SUFFIX"> 562dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?> 563dd6b2bfcSGreg Roach <?= I18N::translate('first') ?> / <?= I18N::translate('last') ?> 564dd6b2bfcSGreg Roach </label> 565315eb316SGreg Roach <label class="visually-hidden" for="SHOW_PEDIGREE_PLACES"> 566dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?> 567dd6b2bfcSGreg Roach </label> 568dd6b2bfcSGreg Roach </legend> 569dd6b2bfcSGreg Roach <div class="col-sm-9"> 570d70512abSGreg Roach <?= /* I18N: The placeholders are edit controls. Show the [first/last] [1/2/3/4/5] parts of a place name */ I18N::translate( 571d70512abSGreg Roach 'Show the %1$s %2$s parts of a place name.', 572824ca073SGreg Roach 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')]]), 573f91b18ebSGreg Roach view('components/select-number', ['name' => 'SHOW_PEDIGREE_PLACES', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES'), 'options' => range(1, 9)]) 574dd6b2bfcSGreg Roach ) ?> 575315eb316SGreg Roach <div class="form-text"> 576dd6b2bfcSGreg Roach <?= /* 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>.') ?> 577dd6b2bfcSGreg Roach </div> 578dd6b2bfcSGreg Roach </div> 579dd6b2bfcSGreg Roach </fieldset> 580dd6b2bfcSGreg Roach 581fc75825cSGreg Roach <h2><?= I18N::translate('Text') ?></h2> 582dd6b2bfcSGreg Roach 583dd6b2bfcSGreg Roach <!-- FORMAT_TEXT --> 584afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 585dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 586dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Format text and notes') ?> 587dd6b2bfcSGreg Roach </legend> 588dd6b2bfcSGreg Roach <div class="col-sm-9"> 5895d9fc484SGreg Roach <?= view('components/radios-inline', ['name' => 'FORMAT_TEXT', 'options' => $formats, 'selected' => $tree->getPreference('FORMAT_TEXT')]) ?> 590315eb316SGreg Roach <div class="form-text"> 591dd6b2bfcSGreg Roach <?= /* 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.') ?> 592315eb316SGreg Roach <br> 593dd6b2bfcSGreg Roach <?= /* 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.') ?> 594dd6b2bfcSGreg Roach </div> 595dd6b2bfcSGreg Roach </div> 596dd6b2bfcSGreg Roach </fieldset> 597dd6b2bfcSGreg Roach 598fc75825cSGreg Roach <h2><?= I18N::translate('General') ?></h2> 599dd6b2bfcSGreg Roach 600dd6b2bfcSGreg Roach <!-- SHOW_GEDCOM_RECORD --> 601afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 602dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 603dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Allow users to see raw GEDCOM records') ?> 604dd6b2bfcSGreg Roach </legend> 605dd6b2bfcSGreg Roach <div class="col-sm-9"> 606b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'SHOW_GEDCOM_RECORD', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('SHOW_GEDCOM_RECORD')]) ?> 607315eb316SGreg Roach <div class="form-text"> 608dd6b2bfcSGreg Roach <?= /* 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.') ?> 609dd6b2bfcSGreg Roach </div> 610dd6b2bfcSGreg Roach </div> 611dd6b2bfcSGreg Roach </fieldset> 612dd6b2bfcSGreg Roach 613dd6b2bfcSGreg Roach <!-- HIDE_GEDCOM_ERRORS --> 614afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 615dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 616dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('GEDCOM errors') ?> 617dd6b2bfcSGreg Roach </legend> 618dd6b2bfcSGreg Roach <div class="col-sm-9"> 619b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'HIDE_GEDCOM_ERRORS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('HIDE_GEDCOM_ERRORS')]) ?> 620315eb316SGreg Roach <div class="form-text"> 621dd6b2bfcSGreg Roach <?= /* 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.') ?> 622dd6b2bfcSGreg Roach </div> 623dd6b2bfcSGreg Roach </div> 624dd6b2bfcSGreg Roach </fieldset> 625dd6b2bfcSGreg Roach 626dd6b2bfcSGreg Roach <!-- SHOW_COUNTER --> 627afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 628dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 629dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Hit counters') ?> 630dd6b2bfcSGreg Roach </legend> 631dd6b2bfcSGreg Roach <div class="col-sm-9"> 632b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'SHOW_COUNTER', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_COUNTER')]) ?> 633315eb316SGreg Roach <div class="form-text"> 634dd6b2bfcSGreg Roach <?= /* I18N: Help text for the “Hit counters” configuration setting */ I18N::translate('Some pages can display the number of times that they have been visited.') ?> 635dd6b2bfcSGreg Roach </div> 636dd6b2bfcSGreg Roach </div> 637dd6b2bfcSGreg Roach </fieldset> 638dd6b2bfcSGreg Roach 639fc75825cSGreg Roach <h2><?= /* I18N: Options for editing */ I18N::translate('Edit preferences') ?></h2> 640dd6b2bfcSGreg Roach 641fc75825cSGreg Roach <h2><?= I18N::translate('Facts for individual records') ?></h2> 642dd6b2bfcSGreg Roach 643dd6b2bfcSGreg Roach <!-- QUICK_REQUIRED_FACTS --> 644afc2d190SGreg Roach <div class="row form-group mb-3"> 645dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FACTS"> 646dd6b2bfcSGreg Roach <?= I18N::translate('Facts for new individuals') ?> 647dd6b2bfcSGreg Roach </label> 648dd6b2bfcSGreg Roach <div class="col-sm-9"> 649c8d78f19SGreg Roach <?= view('components/select', ['name' => 'QUICK_REQUIRED_FACTS[]', 'id' => 'QUICK_REQUIRED_FACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FACTS')), 'options' => $all_individual_facts, 'class' => 'tom-select']) ?> 650dd6b2bfcSGreg Roach </div> 651dd6b2bfcSGreg Roach </div> 652dd6b2bfcSGreg Roach 653dd6b2bfcSGreg Roach <!-- INDI_FACTS_QUICK --> 654afc2d190SGreg Roach <div class="row form-group mb-3"> 655dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="INDI_FACTS_QUICK"> 656dd6b2bfcSGreg Roach <?= I18N::translate('Quick individual facts') ?> 657dd6b2bfcSGreg Roach </label> 658dd6b2bfcSGreg Roach <div class="col-sm-9"> 659c8d78f19SGreg Roach <?= view('components/select', ['name' => 'INDI_FACTS_QUICK[]', 'id' => 'INDI_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_QUICK')), 'options' => $all_individual_facts, 'class' => 'tom-select']) ?> 660315eb316SGreg Roach <div class="form-text"> 661dd6b2bfcSGreg Roach <?= /* 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.') ?> 662315eb316SGreg Roach </div> 663dd6b2bfcSGreg Roach </div> 664dd6b2bfcSGreg Roach </div> 665dd6b2bfcSGreg Roach 666fc75825cSGreg Roach <h2><?= I18N::translate('Facts for family records') ?></h2> 667dd6b2bfcSGreg Roach 668dd6b2bfcSGreg Roach <!-- QUICK_REQUIRED_FAMFACTS --> 669afc2d190SGreg Roach <div class="row form-group mb-3"> 670dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FAMFACTS"> 671dd6b2bfcSGreg Roach <?= I18N::translate('Facts for new families') ?> 672dd6b2bfcSGreg Roach </label> 673dd6b2bfcSGreg Roach <div class="col-sm-9"> 674c8d78f19SGreg Roach <?= view('components/select', ['name' => 'QUICK_REQUIRED_FAMFACTS[]', 'id' => 'QUICK_REQUIRED_FAMFACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FAMFACTS')), 'options' => $all_family_facts, 'class' => 'tom-select']) ?> 675dd6b2bfcSGreg Roach </div> 676dd6b2bfcSGreg Roach </div> 677dd6b2bfcSGreg Roach 678dd6b2bfcSGreg Roach <!-- FAM_FACTS_QUICK --> 679afc2d190SGreg Roach <div class="row form-group mb-3"> 680dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="FAM_FACTS_QUICK"> 681dd6b2bfcSGreg Roach <?= I18N::translate('Quick family facts') ?> 682dd6b2bfcSGreg Roach </label> 683dd6b2bfcSGreg Roach <div class="col-sm-9"> 684c8d78f19SGreg Roach <?= view('components/select', ['name' => 'FAM_FACTS_QUICK[]', 'id' => 'FAM_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_QUICK')), 'options' => $all_family_facts, 'class' => 'tom-select']) ?> 685315eb316SGreg Roach <div class="form-text"> 686dd6b2bfcSGreg Roach <?= /* 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.') ?> 687315eb316SGreg Roach </div> 688dd6b2bfcSGreg Roach </div> 689dd6b2bfcSGreg Roach </div> 690dd6b2bfcSGreg Roach 691fc75825cSGreg Roach <h2><?= I18N::translate('Other preferences') ?></h2> 692dd6b2bfcSGreg Roach 693dd6b2bfcSGreg Roach <!-- SURNAME_TRADITION --> 694afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 695dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 696dd6b2bfcSGreg Roach <?= I18N::translate('Surname tradition') ?> 697dd6b2bfcSGreg Roach </legend> 698dd6b2bfcSGreg Roach <div class="col-sm-9"> 699b6c326d8SGreg Roach <?= view('components/radios', ['name' => 'SURNAME_TRADITION', 'options' => $all_surname_traditions, 'selected' => $tree->getPreference('SURNAME_TRADITION')]) ?> 700315eb316SGreg Roach <div class="form-text"> 701dd6b2bfcSGreg Roach <?= /* 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.') ?> 702dd6b2bfcSGreg Roach </div> 703dd6b2bfcSGreg Roach </div> 704dd6b2bfcSGreg Roach </fieldset> 705dd6b2bfcSGreg Roach 706dd6b2bfcSGreg Roach <!-- FULL_SOURCES --> 707afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 708dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 709dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Use full source citations') ?> 710dd6b2bfcSGreg Roach </legend> 711dd6b2bfcSGreg Roach <div class="col-sm-9"> 712b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'FULL_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('FULL_SOURCES')]) ?> 713315eb316SGreg Roach <div class="form-text"> 714dd6b2bfcSGreg Roach <?= /* 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.') ?> 715dd6b2bfcSGreg Roach </div> 716dd6b2bfcSGreg Roach </div> 717dd6b2bfcSGreg Roach </fieldset> 718dd6b2bfcSGreg Roach 719dd6b2bfcSGreg Roach <!-- PREFER_LEVEL2_SOURCES --> 720afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 721dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 722dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Source type') ?> 723dd6b2bfcSGreg Roach </legend> 724dd6b2bfcSGreg Roach <div class="col-sm-9"> 7255d9fc484SGreg Roach <?= view('components/radios-inline', ['name' => 'PREFER_LEVEL2_SOURCES', 'options' => $source_types, 'selected' => (int) $tree->getPreference('PREFER_LEVEL2_SOURCES')]) ?> 726315eb316SGreg Roach <div class="form-text"> 727dd6b2bfcSGreg Roach <?= /* 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.') ?> 728dd6b2bfcSGreg Roach </div> 729dd6b2bfcSGreg Roach </div> 730dd6b2bfcSGreg Roach </fieldset> 731dd6b2bfcSGreg Roach 732dd6b2bfcSGreg Roach <!-- NO_UPDATE_CHAN --> 733afc2d190SGreg Roach <fieldset class="row form-group mb-3"> 734dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 735dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Keep the existing “last change” information') ?> 736dd6b2bfcSGreg Roach </legend> 737dd6b2bfcSGreg Roach <div class="col-sm-9"> 738b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'NO_UPDATE_CHAN', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('NO_UPDATE_CHAN')]) ?> 739315eb316SGreg Roach <div class="form-text"> 740dd6b2bfcSGreg Roach <?= /* 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.') ?> 741dd6b2bfcSGreg Roach </div> 742dd6b2bfcSGreg Roach </div> 743dd6b2bfcSGreg Roach </fieldset> 744dd6b2bfcSGreg Roach 745afc2d190SGreg Roach <div class="row form-group mb-3"> 746dd6b2bfcSGreg Roach <div class="offset-sm-3 col-sm-9"> 747dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 748dd6b2bfcSGreg Roach <?= view('icons/save') ?> 749dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 750dd6b2bfcSGreg Roach </button> 7516fd01894SGreg Roach <a class="btn btn-secondary" href="<?= e(route(ManageTrees::class, ['tree' => $tree->name()])) ?>"> 752dd6b2bfcSGreg Roach <?= view('icons/cancel') ?> 753dd6b2bfcSGreg Roach <?= I18N::translate('cancel') ?> 754dd6b2bfcSGreg Roach </a> 755dd6b2bfcSGreg Roach <!-- Coming soon 756dd6b2bfcSGreg Roach <div class="form-check"> 757dd6b2bfcSGreg Roach <?php if ($tree_count > 1) : ?> 758dd6b2bfcSGreg Roach <label> 759dd6b2bfcSGreg Roach <input type="checkbox" name="all_trees"> 760dd6b2bfcSGreg Roach <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to all family trees') ?> 761dd6b2bfcSGreg Roach </label> 762dd6b2bfcSGreg Roach <?php endif ?> 763dd6b2bfcSGreg Roach </div> 764dd6b2bfcSGreg Roach <div class="form-check"> 765dd6b2bfcSGreg Roach <label> 766dd6b2bfcSGreg Roach <input type="checkbox" name="new_trees"> 767dd6b2bfcSGreg Roach <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to new family trees') ?> 768dd6b2bfcSGreg Roach </label> 769dd6b2bfcSGreg Roach </div> 770dd6b2bfcSGreg Roach </div> 771dd6b2bfcSGreg Roach --> 772dd6b2bfcSGreg Roach </div> 773dd6b2bfcSGreg Roach</form> 774