Foto’s

“;
echo “

“;
$maxColoms = 3;
$coloms = 0;
$count = 0;
foreach ($jdata->data as $obj) {
//get each album ID
$albumID = $obj->id;
if ($albumID != ‘151286435079813’ && $albumID != ‘151286368413153’ && $albumID != ‘151286478413142’ && $albumID != ‘284822945059494’) { //Albums to be ignored. More can be added.
//If the album is not “blacklisted” then get the name of album
echo “

“;
$coloms++;
}

if ($coloms == $maxColoms) {
$coloms = 0;
echo “

“;
}

$count++;

if ($count == count($jdata->data)) {
$i = $count % $maxColoms;
while ($i > 1) {
echo “

“;
$i–;
}
}
}
echo “

“;
$albumname = $obj->name;

//display the album thumbnail and the name. Style can be changed according to taste.
echo “

“;
echo anchor(‘/fotos/album/’ . $albumID . ‘/’ . $albumname, ‘‘);
echo “

” . $albumname . “

“;
echo”

“;
echo “

“;
?>