2022-03-18 07:50:13 +01:00
|
|
|
<?php
|
|
|
|
// Lexique
|
|
|
|
$text = [];
|
|
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
|
|
switch ($val) {
|
|
|
|
case 'fr' :
|
|
|
|
$text[0] = 'Aucune galerie.';
|
|
|
|
break;
|
|
|
|
case 'en' :
|
|
|
|
$text[0] = 'No gallery.';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
2022-01-31 09:10:49 +01:00
|
|
|
<?php if($module::$galleries): ?>
|
|
|
|
<div class="row galleryRow">
|
|
|
|
<?php foreach($module::$galleries as $galleryId => $gallery): ?>
|
|
|
|
|
|
|
|
<div class="colPicture" div="pos<?php echo $gallery['config']['position']; ?>" >
|
|
|
|
<a
|
|
|
|
href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>/<?php echo $galleryId; ?>"
|
|
|
|
class="galleryPicture"
|
|
|
|
style="background-image:url('<?php echo $module::$firstPictures[$galleryId];?>')"
|
|
|
|
>
|
|
|
|
<div class="galleryName"><?php echo $gallery['config']['name']; ?></div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
<?php else: ?>
|
2022-03-18 07:50:13 +01:00
|
|
|
<?php echo template::speech($text[0]); ?>
|
2022-01-31 09:10:49 +01:00
|
|
|
<?php endif; ?>
|