forked from Public/pics
PhotoMosaic: add sixLandscapes layout, combining side and row
This commit is contained in:
1 parent
d42c3c142c
commit
efb35cfd6a
2 files changed
+11
No files matched your search
@@ -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