2023-10-06 08:34:35 +02:00
|
|
|
<!-- version <?php echo $module::VERSION; ?> de l'album -->
|
|
|
|
<?php
|
|
|
|
// Lexique
|
|
|
|
$param = '';
|
|
|
|
include('./module/album/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_album.php');
|
|
|
|
|
|
|
|
if($module::$galleries):
|
|
|
|
$i = 1;
|
|
|
|
$galleriesNb = count($module::$galleries);
|
|
|
|
foreach($module::$galleries as $galleryId => $gallery):
|
|
|
|
if($i % 4 === 1):
|
|
|
|
?>
|
|
|
|
<div class="row">
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="col3">
|
|
|
|
<a href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>/<?php echo $galleryId; ?>" class="galleryPicture">
|
|
|
|
<img src="<?php if ($this->getData(['module', $this->getUrl(0), $galleryId, 'config', 'homePicture']) === null ) {
|
2023-10-08 17:07:29 +02:00
|
|
|
echo 'module/album/plugins/thumbnailer.php?img=' . $module::$firstPictures[$galleryId]; }
|
2023-10-06 08:34:35 +02:00
|
|
|
else {
|
2023-10-08 17:07:29 +02:00
|
|
|
echo 'module/album/plugins/thumbnailer.php?img=' . $this->getData(['module', $this->getUrl(0), $galleryId, 'config', 'directory']) . '/' . $this->getData(['module', $this->getUrl(0), $galleryId, 'config', 'homePicture']);
|
2023-10-06 08:34:35 +02:00
|
|
|
} ?>" alt="<?php echo $gallery['config']['name']; ?>">
|
|
|
|
<div class="galleryName"><?php echo $gallery['config']['name']; ?></div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php if($i % 4 === 0 OR $i === $galleriesNb): ?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
$i++;
|
|
|
|
endforeach;
|
|
|
|
else:
|
|
|
|
echo template::speech($text['album_view']['index'][0]);
|
|
|
|
endif;
|
|
|
|
?>
|