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