xref: /webtrees/resources/views/modules/sitemap/config.phtml (revision 9f9acdbc09170c04c1e150c36ee57d49027e314a)
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('URL') ?> — <a href="<?= e($sitemap_url) ?>"><?= e($sitemap_url) ?></a>
37</p>
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