albums = $albums;
$this->show_edit_buttons = $show_edit_buttons;
$this->show_labels = $show_labels;
}
protected function html_content()
{
echo '
';
foreach (array_chunk($this->albums, 3) as $photos)
{
echo '
';
foreach ($photos as $album)
{
$color = isset($album['thumbnail']) ? $album['thumbnail']->bestColor() : 'ccc';
if ($color == 'FFFFFF')
$color = 'ccc';
echo '
';
}
echo '
';
}
echo '
';
}
}