<?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"> 
             
<?
foreach($validlanguages as $key=> $xmllang){
	
?>
<url>
  <loc><?echo $siteURL;?>//</loc> 
  <lastmod>2026-06-08T08:52:28+00:00</lastmod>
  <changefreq>monthly</changefreq>
  <priority>1.00</priority>
</url> 	
<?
    

//level 1
$db->where("contentHide !='1'"); 
$db->where("(contentStealth!='1' OR contentStealth IS NULL)" );
$db->where("contentTitle !='nieuwe pagina'"); 
$db->where("contentURLtitle !='home'");
$db->where("contentURLtitle !='webshop'");
$db->where("(contentPublish < ".$timestamp." OR contentPublish IS NULL )");
$db->where("(contentRedirect='' OR contentRedirect IS NULL)" );
$db->where("contentParent", 1); 
$db->orderBy("contentID", "Asc"); 
foreach ($db->ObjectBuilder()->get("content") as $content ) {   
	if($content->contentNoindex == 0){
		
	?> 
<url>
  <loc><?echo $siteURL;?>//<?echo $content->contentURLtitle;?>/</loc>
  <lastmod>1970-01-01T00:00:00+00:00</lastmod>
  <changefreq>weekly</changefreq>
  <priority>1.00</priority>
</url>
<?
	}

 
	
//level 2 
	
	$db->where("contentHide !='1'");
	$db->where("( contentStealth !='1'  OR contentStealth IS NULL )");
	$db->where("contentTitle !='nieuwe pagina'"); 
	$db->where("(contentPublish < ".$timestamp." OR contentPublish IS NULL )");
	$db->where("(contentRedirect='' OR contentRedirect IS NULL)" );
	$db->where("contentParent", $content->contentID);
	$db->orderBy("contentID", $content->contentOrder ?? 'asc');
	foreach ($db->ObjectBuilder()->get("content") as $content_l2 )  	{    
		if($content_l2->contentNoindex == 0 && $content->contentURLtitle !="promo"){
		?>
<url>
  <loc><?echo $siteURL;?>//<?echo $content->contentURLtitle;?>/<?echo $content_l2->contentURLtitle;?>/</loc> 
  <lastmod>1970-01-01T00:00:00+00:00</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.90</priority>
</url> 
<? 
		}
//level 3
 
	$db->where("contentHide !='1'");
	$db->where("( contentStealth !='1'  OR contentStealth IS NULL )");
	$db->where("contentTitle !='nieuwe pagina'"); 
	$db->where("(contentPublish < ".$timestamp." OR contentPublish IS NULL )");
	$db->where("(contentRedirect='' OR contentRedirect IS NULL)" );
	$db->where("contentParent",$content_l2->contentID);
	$db->orderBy("contentID", $content_l2->contentOrder ?? 'asc');
	foreach ( $db->ObjectBuilder()->get("content") as $content_l3 )  	{    
		if($content_l2->contentNoindex == 0 && $content->contentURLtitle !="promo"){  
		?>
<url> 
  <loc><?echo $siteURL;?>//<?echo $content->contentURLtitle;?>/<?echo $content_l2->contentURLtitle;?>/<?echo $content_l3->contentURLtitle;?>/</loc>
  <lastmod>1970-01-01T00:00:00+00:00</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.80</priority>
</url>  
 <?
		}

  	
	}  

	}	 	 

} 

}


?>
</urlset>