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 ?>"> <a href="<?= $folderLink ?>">
<li class="directory-li"> <li class="directory-li">
<span id="folderTitle"><?= $folderTitle ?></span> <span id="folderTitle"><?= $folderTitle ?> - </span>
<?php if ($photos > 1): ?> <span id="folderPhotos">
<span id="folderPhotos"><?= $photos ?> photos</span> <?php if ($photos > 1) {
<?php elseif ($photos == 1): ?> echo $photos." photos";
<span id="folderPhotos"><?= $photos ?> photo</span> } elseif ($photos == 1) {
<?php else: ?> echo $photos ." photo";
<span id="folderPhotos">vide</span> } else {
<?php endif; ?> echo "vide";
} ?>
<?php if ($albums > 1): ?> </span>
<span id="folderAlbums"><?= $albums ?> albums</span> <?= " - " ?>
<?php elseif ($albums == 1): ?> <span id="folderAlbums">
<span id="folderAlbums"><?= $albums ?> album</span> <?php if ($albums > 1) {
<?php endif; ?> echo $albums." albums";
} elseif ($albums == 1) {
echo $albums." album";
} ?>
</span>
</li> </li>
</a> </a>
<?php <?php