1<?php 2 3use Fisharebest\Webtrees\Family; 4use Fisharebest\Webtrees\Individual; 5use Fisharebest\Webtrees\Media; 6use Fisharebest\Webtrees\Note; 7use Fisharebest\Webtrees\Repository; 8use Fisharebest\Webtrees\Source; 9use Fisharebest\Webtrees\Submitter; 10 11/** 12 * @var string $sitemap_xsl 13 */ 14 15?> 16<<?php /* Beware short open tags in PHP <8.0 */ ?>?xml version="1.0" encoding="UTF-8"?> 17<<?php /* Beware short open tags in PHP <8.0 */ ?>?xml-stylesheet type="text/xsl" href="<?= e($sitemap_xsl) ?>"?> 18<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 19 20 <?php foreach ($count_families as $tree_name => $count) : ?> 21 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 22 <sitemap> 23 <loc> 24 <?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Family::RECORD_TYPE, 'page' => $i])) ?> 25 </loc> 26 <lastmod> 27 <?= $last_mod ?> 28 </lastmod> 29 </sitemap> 30 <?php endfor ?> 31 <?php endforeach ?> 32 33 <?php foreach ($count_individuals as $tree_name => $count) : ?> 34 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 35 <sitemap> 36 <loc> 37 <?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Individual::RECORD_TYPE, 'page' => $i])) ?> 38 </loc> 39 <lastmod> 40 <?= $last_mod ?> 41 </lastmod> 42 </sitemap> 43 <?php endfor ?> 44 <?php endforeach ?> 45 46 <?php foreach ($count_media as $tree_name => $count) : ?> 47 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 48 <sitemap> 49 <loc> 50 <?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Media::RECORD_TYPE, 'page' => $i])) ?> 51 </loc> 52 <lastmod> 53 <?= $last_mod ?> 54 </lastmod> 55 </sitemap> 56 <?php endfor ?> 57 <?php endforeach ?> 58 59 <?php foreach ($count_notes as $tree_name => $count) : ?> 60 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 61 <sitemap> 62 <loc> 63 <?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Note::RECORD_TYPE, 'page' => $i])) ?> 64 </loc> 65 <lastmod> 66 <?= $last_mod ?> 67 </lastmod> 68 </sitemap> 69 <?php endfor ?> 70 <?php endforeach ?> 71 72 <?php foreach ($count_repositories as $tree_name => $count) : ?> 73 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 74 <sitemap> 75 <loc> 76 <?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Repository::RECORD_TYPE, 'page' => $i])) ?> 77 </loc> 78 <lastmod> 79 <?= $last_mod ?> 80 </lastmod> 81 </sitemap> 82 <?php endfor ?> 83 <?php endforeach ?> 84 85 <?php foreach ($count_sources as $tree_name => $count) : ?> 86 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 87 <sitemap> 88 <loc> 89 <?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Source::RECORD_TYPE, 'page' => $i])) ?> 90 </loc> 91 <lastmod> 92 <?= $last_mod ?> 93 </lastmod> 94 </sitemap> 95 <?php endfor ?> 96 <?php endforeach ?> 97 98 <?php foreach ($count_submitters as $tree_name => $count) : ?> 99 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 100 <sitemap> 101 <loc> 102 <?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Submitter::RECORD_TYPE, 'page' => $i])) ?> 103 </loc> 104 <lastmod> 105 <?= $last_mod ?> 106 </lastmod> 107 </sitemap> 108 <?php endfor ?> 109 <?php endforeach ?> 110</sitemapindex> 111