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