<?xml version='1.0' encoding='UTF-8'?>
<urlset 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"
        xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{*	<url>*}
{*		<loc>{utf8_encode($SITE_URL)}/</loc>*}
{*		<changefreq>daily</changefreq>*}
{*	</url>*}
    {foreach item=sectionItem from=$SECTIONS}{if $sectionItem.status eq 'V' && $sectionItem.sitemap eq 'Y'}
		<url>
			<loc>{utf8_encode($SITE_URL)}{utf8_encode($sectionItem.url)}</loc>
			<changefreq>daily</changefreq>
		</url>
    {/if}{/foreach}

    {fetch_products limit=45000 assign=products fields='url' status='V'}
    {foreach item=productItem from=$products}
		<url>
			<loc>{utf8_encode($SITE_URL)}{utf8_encode($productItem.url)}</loc>
			<changefreq>monthly</changefreq>
		</url>
    {/foreach}

    {fetch_projects limit=45000 assign=projects fields='url' status='V'}
    {foreach item=projectItem from=$projects}
		<url>
			<loc>{utf8_encode($SITE_URL)}{utf8_encode($projectItem.url)}</loc>
			<changefreq>monthly</changefreq>
		</url>
    {/foreach}

    {fetch_articles limit=45000 assign=articles fields='url' status='V'}
    {foreach item=articleItem from=$articles}
		<url>
			<loc>{utf8_encode($SITE_URL)}{utf8_encode($articleItem.url)}</loc>
			<changefreq>monthly</changefreq>
		</url>
    {/foreach}
</urlset>