forked from Public/pics
PhotoMosaic: allow sets of three portraits.
This commit is contained in:
@@ -241,4 +241,24 @@ class PhotosIndex extends SubTemplate
|
||||
echo '
|
||||
</div>';
|
||||
}
|
||||
|
||||
protected function portraits(array $photos)
|
||||
{
|
||||
echo '
|
||||
<div class="tiled_row">';
|
||||
|
||||
foreach ($photos as $image)
|
||||
{
|
||||
echo '
|
||||
<div style="border-color: #', $this->color($image), '" class="portrait">';
|
||||
|
||||
$this->photo($image, static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, true);
|
||||
|
||||
echo '
|
||||
</div>';
|
||||
}
|
||||
|
||||
echo '
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user