171378461SGreg Roach<?php 271378461SGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 63213013eSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 771378461SGreg Roachuse Fisharebest\Webtrees\I18N; 87c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 97c2c99faSGreg Roachuse Illuminate\Support\Collection; 107c2c99faSGreg Roach 117c2c99faSGreg Roach/** 1236779af1SGreg Roach * @var Collection<int,Tree> $all_trees 137c2c99faSGreg Roach * @var string $sitemap_url 147c2c99faSGreg Roach * @var string $title 157c2c99faSGreg Roach */ 1671378461SGreg Roach 1771378461SGreg Roach?> 18dd6b2bfcSGreg Roach 193213013eSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), $title]]) ?> 20dd6b2bfcSGreg Roach 21dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 22dd6b2bfcSGreg Roach 23dd6b2bfcSGreg Roach<p> 24ad3143ccSGreg Roach <?= /* I18N: The www.sitemaps.org site is translated into many languages (e.g. https://www.sitemaps.org/fr/) - choose an appropriate URL. */ I18N::translate('Sitemaps are a way for webmasters to tell search engines about the pages on a website that are available for crawling. All major search engines support sitemaps. For more information, see <a href="https://www.sitemaps.org/">www.sitemaps.org</a>.') ?> 25dd6b2bfcSGreg Roach</p> 26dd6b2bfcSGreg Roach 27dd6b2bfcSGreg Roach<p> 28dd6b2bfcSGreg Roach <?= /* I18N: Label for a configuration option */ I18N::translate('Which family trees should be included in the sitemaps') ?> 29dd6b2bfcSGreg Roach</p> 30dd6b2bfcSGreg Roach 3183615acfSGreg Roach<form method="post" action="<?= e(route('module', ['module' => 'sitemap', 'action' => 'Admin'])) ?>"> 32dd6b2bfcSGreg Roach <?php foreach ($all_trees as $tree) : ?> 33d6b129cfSGreg Roach <?= view('components/checkbox', ['label' => e($tree->title()), 'name' => 'sitemap' . $tree->id(), 'checked' => (bool) $tree->getPreference('include_in_sitemap')]) ?> 34dd6b2bfcSGreg Roach <?php endforeach ?> 35dd6b2bfcSGreg Roach 36dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 37dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 38dd6b2bfcSGreg Roach </button> 39dd6b2bfcSGreg Roach 4081443e3cSGreg Roach <?= csrf_field() ?> 41dd6b2bfcSGreg Roach</form> 42dd6b2bfcSGreg Roach 43dd6b2bfcSGreg Roach<hr> 44dd6b2bfcSGreg Roach 45dd6b2bfcSGreg Roach<p> 46e380f899SGreg Roach <?= I18N::translate('URL') ?> — <a href="<?= e($sitemap_url) ?>"><?= e($sitemap_url) ?></a> 47dd6b2bfcSGreg Roach</p> 48