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