arrangement repertoire photos

This commit is contained in:
Baptiste 2022-06-21 13:34:51 +02:00
parent 8ea59b4944
commit fb0c3c8167

View file

@ -74,20 +74,24 @@ function createDirectories($path)
?>
<a href="<?= $folderLink ?>">
<li class="directory-li">
<span id="folderTitle"><?= $folderTitle ?></span>
<?php if ($photos > 1): ?>
<span id="folderPhotos"><?= $photos ?> photos</span>
<?php elseif ($photos == 1): ?>
<span id="folderPhotos"><?= $photos ?> photo</span>
<?php else: ?>
<span id="folderPhotos">vide</span>
<?php endif; ?>
<?php if ($albums > 1): ?>
<span id="folderAlbums"><?= $albums ?> albums</span>
<?php elseif ($albums == 1): ?>
<span id="folderAlbums"><?= $albums ?> album</span>
<?php endif; ?>
<span id="folderTitle"><?= $folderTitle ?> - </span>
<span id="folderPhotos">
<?php if ($photos > 1) {
echo $photos." photos";
} elseif ($photos == 1) {
echo $photos ." photo";
} else {
echo "vide";
} ?>
</span>
<?= " - " ?>
<span id="folderAlbums">
<?php if ($albums > 1) {
echo $albums." albums";
} elseif ($albums == 1) {
echo $albums." album";
} ?>
</span>
</li>
</a>
<?php