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