PhotosIndex: fix dualMixed layout showing the same image twice
This commit is contained in:
parent
b1c2001c06
commit
52fad8d1b9
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user