This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pagesForFolder($folderName) { | |
$pages = array(); | |
// this is the path to the sitemap XML that Pagelime publishes | |
$pages_path = "/cms-assets/xml/sitemap.xml"; | |
// if the XML file exists, keep going | |
if (file_exists($_SERVER["DOCUMENT_ROOT"].$pages_path)) { | |
// initialize an XML DOM Document | |
$xml = new DOMDocument; |