‘;
?>
Video
Check out some of our latest videos.
“; var_dump($xml); echo “
“;
//loop through xml nodes
for ($v = 0; $v < sizeof($vxml->videoessay); $v++) {
//parse xml node
$vid = $vxml->videoessay[$v]->id;
$vurl = $vxml->videoessay[$v]->url;
$vimage = $vxml->videoessay[$v]->image;
$vtitle = $vxml->videoessay[$v]->title;
$vlink = $vxml->videoessay[$v]->link;
$vdescription = $vxml->videoessay[$v]->description;
//create array and store data for each node
if ($videoEssayArray == false) {
$videoEssayArray = array(array($vid, $vurl , $vimage , $vtitle , $vlink, $vdescription ));
} else array_push($videoEssayArray, array($vid, $vurl , $vimage , $vtitle , $vlink, $vdescription ));
};
//display a formatted list of results
echo ‘
- ‘;
‘.$videoEssayArray[$v][3].’
for ($v = 0; $v < sizeof($videoEssayArray); $v++) { //create link print_r('
‘);
}
echo ‘
‘;
//create content for links
for ($v = 0; $v < sizeof($videoEssayArray); $v++) {
print_r('
‘);
};
?>
Photo slide show galleries
“; var_dump($xml); echo “
“;
//loop through xml nodes
for ($i = 0; $i < sizeof($xml->photoessay); $i++) {
//parse xml node
$id = $xml->photoessay[$i]->id;
$url = $xml->photoessay[$i]->url;
$image = $xml->photoessay[$i]->image;
$title = $xml->photoessay[$i]->title;
$link = $xml->photoessay[$i]->link;
$description = $xml->photoessay[$i]->description;
$width = $xml->photoessay[$i]->width;
$height = $xml->photoessay[$i]->height;
//create array and store data for each node
if ($photoEssayArray == false) {
$photoEssayArray = array(array($id, $url , $image , $title , $link, $description, $width, $height ));
} else array_push($photoEssayArray, array($id, $url , $image , $title , $link, $description, $width, $height ));
};
//print_r(array_values($photoEssayArray));
//display a formatted list of results
echo ‘
- ‘;
‘.$photoEssayArray[$i][2].’
‘.$photoEssayArray[$i][4].’
‘.$photoEssayArray[$i][3].’
for ($i = 0; $i < sizeof($photoEssayArray); $i++) { //print_r('
‘);
//create link
print_r(‘
‘);
}
echo ‘
‘;
//create content for links
for ($i = 0; $i < sizeof($photoEssayArray); $i++) {
print_r('
‘);
};
?>