diff --git a/templates/PhotosIndex.php b/templates/PhotosIndex.php index a1915e0..564143b 100644 --- a/templates/PhotosIndex.php +++ b/templates/PhotosIndex.php @@ -272,19 +272,19 @@ class PhotosIndex extends Template protected function dualMixed(array $photos, $altLayout) { - $image = array_shift($photos); - echo '
'; + $image = array_shift($photos); $this->photo($image, 'landscape', static::LANDSCAPE_WIDTH, static::LANDSCAPE_HEIGHT, 'top'); echo '
'; + $image = array_shift($photos); $this->photo($image, 'portrait', static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, true); echo '