171378461SGreg Roach<?php 271378461SGreg Roach 30c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 43213013eSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 571378461SGreg Roachuse Fisharebest\Webtrees\I18N; 67c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 77c2c99faSGreg Roachuse Illuminate\Support\Collection; 87c2c99faSGreg Roach 97c2c99faSGreg Roach/** 107c2c99faSGreg Roach * @var Collection<Tree> $all_trees 117c2c99faSGreg Roach * @var string $sitemap_url 127c2c99faSGreg Roach * @var array<string,string> $submit_urls 137c2c99faSGreg Roach * @var string $title 147c2c99faSGreg Roach */ 1571378461SGreg Roach 1671378461SGreg Roach?> 17dd6b2bfcSGreg Roach 183213013eSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), $title]]) ?> 19dd6b2bfcSGreg Roach 20dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 21dd6b2bfcSGreg Roach 22dd6b2bfcSGreg Roach<p> 23*ad3143ccSGreg 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>.') ?> 24dd6b2bfcSGreg Roach</p> 25dd6b2bfcSGreg Roach 26dd6b2bfcSGreg Roach<p> 27dd6b2bfcSGreg Roach <?= /* I18N: Label for a configuration option */ I18N::translate('Which family trees should be included in the sitemaps') ?> 28dd6b2bfcSGreg Roach</p> 29dd6b2bfcSGreg Roach 3083615acfSGreg Roach<form method="post" action="<?= e(route('module', ['module' => 'sitemap', 'action' => 'Admin'])) ?>"> 31dd6b2bfcSGreg Roach <?= csrf_field() ?> 32dd6b2bfcSGreg Roach 33dd6b2bfcSGreg Roach <?php foreach ($all_trees as $tree) : ?> 34b6c326d8SGreg Roach <?= view('components/checkbox', ['label' => $tree->title(), 'name' => 'sitemap' . $tree->id(), 'checked' => (bool) $tree->getPreference('include_in_sitemap')]) ?> 35dd6b2bfcSGreg Roach <?php endforeach ?> 36dd6b2bfcSGreg Roach 37dd6b2bfcSGreg Roach<button type="submit" class="btn btn-primary"> 38dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 39dd6b2bfcSGreg Roach</button> 40dd6b2bfcSGreg Roach 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> 48dd6b2bfcSGreg Roach 49dd6b2bfcSGreg Roach<p> 50dd6b2bfcSGreg Roach <?= I18N::translate('To tell search engines that sitemaps are available, you can use the following links.') ?> 51dd6b2bfcSGreg Roach</p> 52dd6b2bfcSGreg Roach 53dd6b2bfcSGreg Roach<ul> 54dd6b2bfcSGreg Roach <?php foreach ($submit_urls as $search_engine => $url) : ?> 55dd6b2bfcSGreg Roach <li> 56dd6b2bfcSGreg Roach <a href="<?= e($url) ?>"> 57dd6b2bfcSGreg Roach <?= e($search_engine) ?> 58dd6b2bfcSGreg Roach </a> 59dd6b2bfcSGreg Roach </li> 60dd6b2bfcSGreg Roach <?php endforeach ?> 61dd6b2bfcSGreg Roach</ul> 62