parent
50b54f93ed
commit
e09cbf2e80
@ -8,9 +8,12 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</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): ?>
|
||||||
|
<?php if($i % 4 === 1): ?>
|
||||||
|
<div class="row">
|
||||||
|
<?php endif; ?>
|
||||||
<div class="col3">
|
<div class="col3">
|
||||||
<a
|
<a
|
||||||
href="<?php echo helper::baseUrl(false) . $picture; ?>"
|
href="<?php echo helper::baseUrl(false) . $picture; ?>"
|
||||||
@ -23,4 +26,8 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<?php if($i % 4 === 0 OR $i === $picturesNb): ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php $i++; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
Loading…
Reference in New Issue
Block a user