This commit is contained in:
parent
6c8cdf21d2
commit
84aa4cac17
4 changed files with 3 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
Sort: 2
|
Sort: 1
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
Sort: 1
|
Sort: 2
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<?php foreach($site->children()->listed() as $product): ?>
|
<?php foreach($site->children()->listed() as $product): ?>
|
||||||
<article class="store__product">
|
<article class="store__product">
|
||||||
<figure>
|
<figure>
|
||||||
<?php if($cover = $product->files()->sort()->first()): ?>
|
<?php if($cover = $product->files()->sortBy('sort', 'asc')->first()): ?>
|
||||||
<?php snippet('picture', [
|
<?php snippet('picture', [
|
||||||
'file' => $cover,
|
'file' => $cover,
|
||||||
'alt' => $product->title()->html(),
|
'alt' => $product->title()->html(),
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@
|
||||||
<div class="product-gallery swiper">
|
<div class="product-gallery swiper">
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
<?php
|
<?php
|
||||||
// Afficher uniquement les vraies images du produit
|
|
||||||
if ($page->hasFiles()):
|
if ($page->hasFiles()):
|
||||||
foreach($page->files()->sortBy('sort', 'asc') as $image):
|
foreach($page->files()->sortBy('sort', 'asc') as $image):
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue