<?xml version="1.0" encoding="UTF-8"?>
{* Note: Web crawlers usually discover pages from links within the site and from other sites. Sitemaps supplement this data to allow crawlers that support Sitemaps to pick up all URLs in the Sitemap and learn about those URLs using the associated metadata.  It is not strictly necessary to use a sitemap on a well designed site.  This is just an aide to the web crawlers in finding data from your website. *}
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.9
	http://www.google.com/schemas/sitemap/0.9/sitemap.xsd">{strip}

{foreach from=$output item='page'}
<url>
  <loc>{$page->url}</loc>
  <lastmod>{$page->date|date_format:"%Y-%m-%d"}</lastmod>
  <priority>{$page->priority}</priority>
  <changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}
{foreach from=$product_hierarchy item='page'}
<url>
  <loc>{$page['link']}</loc>
  <lastmod>{$page['lastmod']|date_format:"%Y-%m-%d"}</lastmod>
  <priority>{$page['priority']}</priority>
  <changefreq>{$page['changefreq']}</changefreq>
</url>
{/foreach}
{foreach from=$product_list item='page'}
<url>
  <loc>{$page['link']}</loc>
  <lastmod>{$page['lastmod']|date_format:"%Y-%m-%d"}</lastmod>
  <priority>{$page['priority']}</priority>
  <changefreq>{$page['changefreq']}</changefreq>
</url>
{/foreach}
{foreach from=$news_list item='page'}
<url>
  <loc>{$page['link']}</loc>
  <lastmod>{$page['lastmod']|date_format:"%Y-%m-%d"}</lastmod>
  <priority>{$page['priority']}</priority>
  <changefreq>{$page['changefreq']}</changefreq>
</url>
{/foreach}

{/strip}</urlset>
