include './shared/content.php'; $webContent = new WebContent(); $items = $webContent->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"]; } ?>
include "shared/meta.php" ?>