forked from Public/pics
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)
|
protected function dualMixed(array $photos, $altLayout)
|
||||||
{
|
{
|
||||||
$image = array_shift($photos);
|
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<div class="row g-5 mb-5 tile-feat-landscape',
|
<div class="row g-5 mb-5 tile-feat-landscape',
|
||||||
$altLayout ? ' flex-row-reverse' : '', '">
|
$altLayout ? ' flex-row-reverse' : '', '">
|
||||||
<div class="col-md-8">';
|
<div class="col-md-8">';
|
||||||
|
|
||||||
|
$image = array_shift($photos);
|
||||||
$this->photo($image, 'landscape', static::LANDSCAPE_WIDTH, static::LANDSCAPE_HEIGHT, 'top');
|
$this->photo($image, 'landscape', static::LANDSCAPE_WIDTH, static::LANDSCAPE_HEIGHT, 'top');
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">';
|
<div class="col-md-4">';
|
||||||
|
|
||||||
|
$image = array_shift($photos);
|
||||||
$this->photo($image, 'portrait', static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, true);
|
$this->photo($image, 'portrait', static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, true);
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
|
Loading…
Reference in New Issue
Block a user