PhotoMosaic: add sixLandscapes layout, combining side and row
This commit is contained in:
@@ -137,6 +137,13 @@ class PhotosIndex extends Template
|
||||
}
|
||||
}
|
||||
|
||||
protected function sixLandscapes(array $photos, $altLayout)
|
||||
{
|
||||
$chunks = array_chunk($photos, 3);
|
||||
$this->sideLandscape($chunks[0], $altLayout);
|
||||
$this->threeLandscapes($chunks[1], $altLayout);
|
||||
}
|
||||
|
||||
protected function sidePortrait(array $photos, $altLayout)
|
||||
{
|
||||
$image = array_shift($photos);
|
||||
|
||||
Reference in New Issue
Block a user