'; foreach($child->children() as $section){ $section_id=str_replace(' ','-',$section['title']); $section_id=str_replace(array('.', '"', "'"), array('', '', ""),$section_id); echo '
  • '.$section['title'].'
  • '; } echo '
    '; echo ''; $first_item=true; foreach($child->children() as $section){ $section_id=str_replace(' ','-',$section['title']); $section_id=str_replace(array('.', '"', "'"), array('', '', ""),$section_id); echo '
    '; $feed=simplexml_load_file($section['feed']); foreach($feed->children() as $item){ $mydate = strtotime($item->date); if ($mydate) { $mydate=date('F jS Y', $mydate); } $contentid= $item->contentId; $title=str_replace("'","\'",$item->title); $synopsis=str_replace("'","\'",$item->synopsis); $title=str_replace('"','"',$title); $synopsis=str_replace('"','"',$synopsis); $img_url=$item['hdImg']; $video_url=$item->media->streamUrl; if ($first_item){ echo ' '; $first_item=false; } echo ' '; } echo '
    '; } ?>