getData("photos"); $albums = $webContent->getData("albums"); if ($_REQUEST["album"]) { //echo $_REQUEST["id"]; $id = seoUrl($_REQUEST["album"]); //echo $id; //print_r($teachers); foreach ($albums as $key => $entry) { if (strcasecmp(seoUrl($entry["title"]),$id) == 0) { $targetAlbum = $entry; break; } } } if (!$targetAlbum) { /* foreach ($albums as $key => $entry) { $targetAlbum = $entry; break; } */ if ($_REQUEST["type"]) $albumType = $_REQUEST["type"]; else { $albumType = "photo"; } }else { $albumType = $targetAlbum["type"]; } ?>


$targetAlbum) { if ($targetAlbum["type"] == $albumType) { $thumbnail = null; foreach ($items as $key => $entry) { if ($entry["album"] == $targetAlbum["key"]) { $thumbnail = $entry["thumbnail"]; break; } } if ($thumbnail) { ?>