diff --git a/models/PhotoMosaic.php b/models/PhotoMosaic.php index 8fc0eef8..3f75407e 100644 --- a/models/PhotoMosaic.php +++ b/models/PhotoMosaic.php @@ -33,17 +33,21 @@ class PhotoMosaic 'panorama' => [Image::TYPE_PANORAMA], // Big-small juxtapositions - 'portrait' => [Image::TYPE_PORTRAIT, Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE, - Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE], - 'landscape' => [Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE], + 'sidePortrait' => [Image::TYPE_PORTRAIT, Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE, + Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE], + 'sideLandscape' => [Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE], // Single row of three - 'landscapes' => [Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE], - 'portraits' => [Image::TYPE_PORTRAIT, Image::TYPE_PORTRAIT, Image::TYPE_PORTRAIT], + 'threeLandscapes' => [Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE], + 'threePortraits' => [Image::TYPE_PORTRAIT, Image::TYPE_PORTRAIT, Image::TYPE_PORTRAIT], + + // Dual layouts + 'dualLandscapes' => [Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE], + 'dualPortraits' => [Image::TYPE_PORTRAIT, Image::TYPE_PORTRAIT], // Fallback layouts - 'duo' => [Image::TYPE_LANDSCAPE, Image::TYPE_LANDSCAPE], - 'single' => [Image::TYPE_LANDSCAPE | Image::TYPE_PORTRAIT], + 'singleLandscape' => [Image::TYPE_LANDSCAPE], + 'singlePortrait' => [Image::TYPE_PORTRAIT], ]; return $layouts; diff --git a/templates/PhotosIndex.php b/templates/PhotosIndex.php index adef18d0..537078b2 100644 --- a/templates/PhotosIndex.php +++ b/templates/PhotosIndex.php @@ -137,7 +137,7 @@ class PhotosIndex extends Template } } - protected function portrait(array $photos, $altLayout) + protected function sidePortrait(array $photos, $altLayout) { $image = array_shift($photos); @@ -170,7 +170,7 @@ class PhotosIndex extends Template '; } - protected function landscape(array $photos, $altLayout) + protected function sideLandscape(array $photos, $altLayout) { $image = array_shift($photos); @@ -203,41 +203,7 @@ class PhotosIndex extends Template '; } - protected function duo(array $photos, $altLayout) - { - echo ' -