1*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Bootstrap4; ?> 2*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 3*dd6b2bfcSGreg Roach 4*dd6b2bfcSGreg Roach<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), route('admin-modules') => I18N::translate('Modules'), $title]]) ?> 5*dd6b2bfcSGreg Roach 6*dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 7*dd6b2bfcSGreg Roach 8*dd6b2bfcSGreg Roach<p> 9*dd6b2bfcSGreg Roach <?= /* I18N: The www.sitemaps.org site is translated into many languages (e.g. http://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="http://www.sitemaps.org/">www.sitemaps.org</a>.') ?> 10*dd6b2bfcSGreg Roach</p> 11*dd6b2bfcSGreg Roach 12*dd6b2bfcSGreg Roach<p> 13*dd6b2bfcSGreg Roach <?= /* I18N: Label for a configuration option */ I18N::translate('Which family trees should be included in the sitemaps') ?> 14*dd6b2bfcSGreg Roach</p> 15*dd6b2bfcSGreg Roach 16*dd6b2bfcSGreg Roach<form action="<?= e(route('module', ['module' => 'sitemap', 'action' => 'Admin'])) ?>" method="post"> 17*dd6b2bfcSGreg Roach <?= csrf_field() ?> 18*dd6b2bfcSGreg Roach 19*dd6b2bfcSGreg Roach <?php foreach ($all_trees as $tree) : ?> 20*dd6b2bfcSGreg Roach <?= Bootstrap4::checkbox($tree->getTitle(), false, ['name' => 'sitemap' . $tree->getTreeId(), 'checked' => (bool) $tree->getPreference('include_in_sitemap')]) ?> 21*dd6b2bfcSGreg Roach <?php endforeach ?> 22*dd6b2bfcSGreg Roach 23*dd6b2bfcSGreg Roach<button type="submit" class="btn btn-primary"> 24*dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 25*dd6b2bfcSGreg Roach</button> 26*dd6b2bfcSGreg Roach 27*dd6b2bfcSGreg Roach</form> 28*dd6b2bfcSGreg Roach 29*dd6b2bfcSGreg Roach<hr> 30*dd6b2bfcSGreg Roach 31*dd6b2bfcSGreg Roach<p> 32*dd6b2bfcSGreg Roach <?= I18N::translate('To tell search engines that sitemaps are available, you should add the following line to your robots.txt file.') ?> 33*dd6b2bfcSGreg Roach</p> 34*dd6b2bfcSGreg Roach 35*dd6b2bfcSGreg Roach<pre>Sitemap: <?= e($sitemap_url) ?></pre> 36*dd6b2bfcSGreg Roach 37*dd6b2bfcSGreg Roach<hr> 38*dd6b2bfcSGreg Roach 39*dd6b2bfcSGreg Roach<p> 40*dd6b2bfcSGreg Roach <?= I18N::translate('To tell search engines that sitemaps are available, you can use the following links.') ?> 41*dd6b2bfcSGreg Roach</p> 42*dd6b2bfcSGreg Roach 43*dd6b2bfcSGreg Roach<ul> 44*dd6b2bfcSGreg Roach <?php foreach ($submit_urls as $search_engine => $url) : ?> 45*dd6b2bfcSGreg Roach <li> 46*dd6b2bfcSGreg Roach <a href="<?= e($url) ?>"> 47*dd6b2bfcSGreg Roach <?= e($search_engine) ?> 48*dd6b2bfcSGreg Roach </a> 49*dd6b2bfcSGreg Roach </li> 50*dd6b2bfcSGreg Roach <?php endforeach ?> 51*dd6b2bfcSGreg Roach</ul> 52