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