|
cache->set('myrandomstring', '+30 minutes');
# What sizes do we want?
// $director->format->add(array('name' => 'thumb', 'width' => '50' , 'height' => '50' , 'crop' => 1, 'quality' => 85, 'sharpening' => 1));
$director->format->add(array('name' => 'thumb', 'width' => $thumbsize , 'height' => $thumbsize , 'crop' => 1, 'quality' => 95, 'sharpening' => 1));
$director->format->add(array('name' => 'large', 'width' => '900', 'height' => '800', 'crop' => 0, 'quality' => 100, 'sharpening' => 2));
# We can also request the album preview at a certain size
$director->format->preview(array('width' => '90', 'height' => '90', 'crop' => 1, 'quality' => 90, 'sharpening' => 0));
$album = $director->album->get($album);
$contents = $album->contents[0];
echo ' ' . $album->name . ' ' ;
echo '';
echo '' ;
// $nrhor = 8;
$c = 0;
$i = 0;
foreach ($contents as $image) {
$file = $image->large->url;
$thumbnail = $image->thumb->url;
$i++;
$c++;
$titel = $image->title ;
$alt = $titel;
// if( $titel!='') { $titel = $titel . ' '; }
$titel = $titel . ' Copyright J.H. Bouma & P.A. Jasperse';
if ($c > 1) { echo ' | '; }
$width = $thumbsize;
$height = $thumbsize;
echo ' | ';
if ($i == $nrhor) { echo ' '; $i=0; }
}
echo ' ';
} else
{
?>
|