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