PhotosIndex: fix dualMixed layout showing the same image twice

This commit is contained in:
Aaron van Geffen 2023-12-23 13:47:16 +01:00
parent b1c2001c06
commit 52fad8d1b9

View File

@ -272,19 +272,19 @@ class PhotosIndex extends Template
protected function dualMixed(array $photos, $altLayout)
{
$image = array_shift($photos);
echo '
<div class="row g-5 mb-5 tile-feat-landscape',
$altLayout ? ' flex-row-reverse' : '', '">
<div class="col-md-8">';
$image = array_shift($photos);
$this->photo($image, 'landscape', static::LANDSCAPE_WIDTH, static::LANDSCAPE_HEIGHT, 'top');
echo '
</div>
<div class="col-md-4">';
$image = array_shift($photos);
$this->photo($image, 'portrait', static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, true);
echo '