vendor/kunstmaan/sitemap-bundle/Resources/views/SitemapIndex/view.xml.twig line 1

Open in your IDE?
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  3.     {% for locale in locales %}
  4.         <sitemap>
  5.             <loc>{{ url('KunstmaanSitemapBundle_sitemap', {'locale': locale, '_format': 'xml'}) }}</loc>
  6.         </sitemap>
  7.     {% endfor %}
  8.     {% if extraSitemaps is defined and extraSitemaps is not empty %}
  9.         {% for sitemap in extraSitemaps %}
  10.             <sitemap>
  11.                 <loc>{{ sitemap.url }}</loc>
  12.                 {% if sitemap.lastModified %}
  13.                 <lastmod>{{ sitemap.lastModified|date('Y-m-d') }}</lastmod>
  14.                 {% endif %}
  15.             </sitemap>
  16.         {% endfor %}
  17.     {% endif %}
  18. </sitemapindex>