1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Site; ?> 3dd6b2bfcSGreg Roach 4dd6b2bfcSGreg Roach<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), $title]]) ?> 5dd6b2bfcSGreg Roach 6dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 7dd6b2bfcSGreg Roach 8*83615acfSGreg Roach<form method="post" action="<?= e(route('admin-site-preferences-update')) ?>" class="form-horizontal"> 9dd6b2bfcSGreg Roach <?= csrf_field() ?> 10dd6b2bfcSGreg Roach 11dd6b2bfcSGreg Roach <!-- INDEX_DIRECTORY --> 12dd6b2bfcSGreg Roach <div class="row form-group"> 13dd6b2bfcSGreg Roach <label for="INDEX_DIRECTORY" class="col-sm-3 col-form-label"> 14dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ 15dd6b2bfcSGreg Roach I18N::translate('Data folder') ?> 16dd6b2bfcSGreg Roach </label> 17dd6b2bfcSGreg Roach <div class="col-sm-9"> 18dd6b2bfcSGreg Roach <input type="text" class="form-control" dir="ltr" id="INDEX_DIRECTORY" name="INDEX_DIRECTORY" value="<?= e(Site::getPreference('INDEX_DIRECTORY')) ?>" maxlength="255" placeholder="data/" required> 19dd6b2bfcSGreg Roach <p class="small text-muted"> 20dd6b2bfcSGreg Roach <?= /* I18N: Help text for the "Data folder" site configuration setting */ 21dd6b2bfcSGreg Roach I18N::translate('This folder will be used by webtrees to store media files, GEDCOM files, temporary files, etc. These files may contain private data, and should not be made available over the internet.') ?> 22dd6b2bfcSGreg Roach </p> 23dd6b2bfcSGreg Roach <p class="small text-muted"> 24dd6b2bfcSGreg Roach <?= /* I18N: “Apache” is a software program. */ 25dd6b2bfcSGreg Roach I18N::translate('To protect this private data, webtrees uses an Apache configuration file (.htaccess) which blocks all access to this folder. If your web-server does not support .htaccess files, and you cannot restrict access to this folder, then you can select another folder, away from your web documents.') ?> 26dd6b2bfcSGreg Roach </p> 27dd6b2bfcSGreg Roach <p class="small text-muted"> 28dd6b2bfcSGreg Roach <?= I18N::translate('If you select a different folder, you must also move all files (except config.ini.php, index.php, and .htaccess) from the existing folder to the new folder.') ?> 29dd6b2bfcSGreg Roach </p> 30dd6b2bfcSGreg Roach <p class="small text-muted"> 31dd6b2bfcSGreg Roach <?= I18N::translate('The folder can be specified in full (e.g. /home/user_name/webtrees_data/) or relative to the installation folder (e.g. ../../webtrees_data/).') ?> 32dd6b2bfcSGreg Roach </p> 33dd6b2bfcSGreg Roach </div> 34dd6b2bfcSGreg Roach </div> 35dd6b2bfcSGreg Roach 36dd6b2bfcSGreg Roach <!-- TIMEZONE --> 37dd6b2bfcSGreg Roach <div class="row form-group"> 38dd6b2bfcSGreg Roach <label for="TIMEZONE" class="col-sm-3 col-form-label"> 39dd6b2bfcSGreg Roach <?= I18N::translate('Time zone') ?> 40dd6b2bfcSGreg Roach </label> 41dd6b2bfcSGreg Roach <div class="col-sm-9"> 42c9e11c2aSGreg Roach <?= view('components/select', ['name' => 'TIMEZONE', 'selected' => Site::getPreference('TIMEZONE', 'UTC'), 'options' => array_combine(\DateTimeZone::listIdentifiers(), \DateTimeZone::listIdentifiers())]) ?> 43dd6b2bfcSGreg Roach <p class="small text-muted"> 44dd6b2bfcSGreg Roach <?= I18N::translate('The time zone is required for date calculations, such as knowing today’s date.') ?> 45dd6b2bfcSGreg Roach </p> 46dd6b2bfcSGreg Roach </div> 47dd6b2bfcSGreg Roach </div> 48dd6b2bfcSGreg Roach 49dd6b2bfcSGreg Roach <!-- THEME_DIR --> 50dd6b2bfcSGreg Roach <div class="row form-group"> 51dd6b2bfcSGreg Roach <label for="THEME_DIR" class="col-sm-3 col-form-label"> 52dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ 53dd6b2bfcSGreg Roach I18N::translate('Default theme') ?> 54dd6b2bfcSGreg Roach </label> 55dd6b2bfcSGreg Roach <div class="col-sm-9"> 56c9e11c2aSGreg Roach <?= view('components/select', ['name' => 'THEME_DIR', 'selected' => Site::getPreference('THEME_DIR', 'webtrees'), 'options' => $all_themes]) ?> 57dd6b2bfcSGreg Roach <p class="small text-muted"> 58dd6b2bfcSGreg Roach <?= /* I18N: Help text for the "Default theme" site configuration setting */ 59dd6b2bfcSGreg Roach I18N::translate('You can change the appearance of webtrees using “themes”. Each theme has a different style, layout, color scheme, etc.') ?> 60dd6b2bfcSGreg Roach </p> 61dd6b2bfcSGreg Roach <p class="small text-muted"> 62dd6b2bfcSGreg Roach <?= I18N::translate('Themes can be selected at three levels: user, family tree, and website. User preferences take priority over family tree preferences, which in turn take priority over the website preferences. Selecting “default theme” at one level will use the theme at the next level.') ?> 63dd6b2bfcSGreg Roach </p> 64dd6b2bfcSGreg Roach </div> 65dd6b2bfcSGreg Roach </div> 66dd6b2bfcSGreg Roach 67dd6b2bfcSGreg Roach <!-- ALLOW_CHANGE_GEDCOM --> 68dd6b2bfcSGreg Roach <fieldset class="form-group"> 69dd6b2bfcSGreg Roach <div class="row"> 70dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 71dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ 72dd6b2bfcSGreg Roach I18N::translate('Show list of family trees') ?> 73dd6b2bfcSGreg Roach </legend> 74dd6b2bfcSGreg Roach <div class="col-sm-9"> 75c9e11c2aSGreg Roach <?= view('components/radios-inline', ['name' => 'ALLOW_CHANGE_GEDCOM', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('ALLOW_CHANGE_GEDCOM')]) ?> 76dd6b2bfcSGreg Roach <p class="small text-muted"> 77dd6b2bfcSGreg Roach <?= /* I18N: Help text for the “Show list of family trees” site configuration setting */ 78dd6b2bfcSGreg Roach I18N::translate('For websites with more than one family tree, this option will show the list of family trees in the main menu, the search pages, etc.') ?> 79dd6b2bfcSGreg Roach </p> 80dd6b2bfcSGreg Roach </div> 81dd6b2bfcSGreg Roach </div> 82dd6b2bfcSGreg Roach </fieldset> 83dd6b2bfcSGreg Roach 84dd6b2bfcSGreg Roach <div class="row form-group"> 85dd6b2bfcSGreg Roach <div class="offset-sm-3 col-sm-9"> 86dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 87dd6b2bfcSGreg Roach <?= view('icons/save') ?> 88dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 89dd6b2bfcSGreg Roach </button> 90dd6b2bfcSGreg Roach 91dd6b2bfcSGreg Roach <a href="<?= e(route('admin-control-panel')) ?>" class="btn btn-secondary"> 92dd6b2bfcSGreg Roach <?= view('icons/cancel') ?> 93dd6b2bfcSGreg Roach <?= I18N::translate('cancel') ?> 94dd6b2bfcSGreg Roach </a> 95dd6b2bfcSGreg Roach </div> 96dd6b2bfcSGreg Roach </div> 97dd6b2bfcSGreg Roach</form> 98