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