parent
50b54f93ed
commit
e09cbf2e80
@ -8,19 +8,26 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Ajout du début de la ligne row en rajoutant la class rowGallery (on supprime $i et $picturesNb) ********************** -->
|
<?php $i = 1; ?>
|
||||||
<div class="row galleryRow">
|
<?php $picturesNb = count($module::$pictures); ?>
|
||||||
<?php foreach($module::$pictures as $picture => $legend): ?>
|
<?php foreach($module::$pictures as $picture => $legend): ?>
|
||||||
<div class="col3">
|
<?php if($i % 4 === 1): ?>
|
||||||
<a
|
<div class="row">
|
||||||
href="<?php echo helper::baseUrl(false) . $picture; ?>"
|
<?php endif; ?>
|
||||||
class="galleryGalleryPicture"
|
<div class="col3">
|
||||||
style="background-image:url('<?php echo helper::baseUrl(false) . $picture; ?>')"
|
<a
|
||||||
data-caption="<?php echo $legend; ?>"
|
href="<?php echo helper::baseUrl(false) . $picture; ?>"
|
||||||
>
|
class="galleryGalleryPicture"
|
||||||
<?php if($legend): ?>
|
style="background-image:url('<?php echo helper::baseUrl(false) . $picture; ?>')"
|
||||||
<div class="galleryGalleryName"><?php echo $legend; ?></div>
|
data-caption="<?php echo $legend; ?>"
|
||||||
<?php endif; ?>
|
>
|
||||||
</a>
|
<?php if($legend): ?>
|
||||||
</div>
|
<div class="galleryGalleryName"><?php echo $legend; ?></div>
|
||||||
<?php endforeach; ?>
|
<?php endif; ?>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<?php if($i % 4 === 0 OR $i === $picturesNb): ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<?php endforeach; ?>
|
Loading…
Reference in New Issue
Block a user