forked from vergnet/site-accueil-insa
arrangement repertoire photos
This commit is contained in:
parent
8ea59b4944
commit
fb0c3c8167
1 changed files with 18 additions and 14 deletions
32
photos.php
32
photos.php
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue