summaryrefslogtreecommitdiff
path: root/resources/views/modules/sitemap/sitemap-file.xml.php
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules/sitemap/sitemap-file.xml.php')
-rw-r--r--resources/views/modules/sitemap/sitemap-file.xml.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/resources/views/modules/sitemap/sitemap-file.xml.php b/resources/views/modules/sitemap/sitemap-file.xml.php
index d81137909b..451ff3cc32 100644
--- a/resources/views/modules/sitemap/sitemap-file.xml.php
+++ b/resources/views/modules/sitemap/sitemap-file.xml.php
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
- <?php foreach ($records as $record): ?>
- <url>
- <loc><?= e($record->url()) ?></loc>
- <?php if ($record->getFirstFact('CHAN') !== null): ?>
- <lastmod><?= $record->getFirstFact('CHAN')->getDate()->minimumDate()->Format('%Y-%m-%d') ?></lastmod>
- <?php endif ?>
- </url>
- <?php endforeach ?>
+ <?php foreach ($records as $record) : ?>
+ <url>
+ <loc><?= e($record->url()) ?></loc>
+ <?php if ($record->getFirstFact('CHAN') !== null) : ?>
+ <lastmod><?= $record->getFirstFact('CHAN')->getDate()->minimumDate()->Format('%Y-%m-%d') ?></lastmod>
+ <?php endif ?>
+ </url>
+ <?php endforeach ?>
</urlset>