on met les zip au dessus des photos

This commit is contained in:
Baptiste 2022-10-26 09:08:38 +02:00
parent 10b1ab64bb
commit 34c8e839c5

View file

@ -287,6 +287,13 @@ if (isset($_REQUEST['logout'])) {
generatePath(getActivePath()); generatePath(getActivePath());
?> ?>
</ul> </ul>
<?php if (isAlbumAvailable(getActivePath())): ?>
<a download="" href="photos_folders/photos<?php echo getActivePath().DIRECTORY_SEPARATOR.GetActiveFolder(getActivePath()); ?>.zip" id="downloadAlbum">
<span id="downloadText">Télécharger</span>
<span id="albumPhotoCount"><?php echo getTotalPhotoCount(photoRoot . getActivePath()) ?> photos</span>
</a>
<?php endif; ?>
<ul class="directory-ul"> <ul class="directory-ul">
<?php if (getDirectoriesCount(photoRoot . getActivePath()) > 0): ?> <?php if (getDirectoriesCount(photoRoot . getActivePath()) > 0): ?>
<div class="photos-folder-container"> <div class="photos-folder-container">
@ -296,19 +303,14 @@ if (isset($_REQUEST['logout'])) {
</div> </div>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php if (isAlbumAvailable(getActivePath())): ?>
<a download="" href="photos_folders/photos<?php echo getActivePath().DIRECTORY_SEPARATOR.GetActiveFolder(getActivePath()); ?>.zip" id="downloadAlbum">
<span id="downloadText">Télécharger</span>
<span id="albumPhotoCount"><?php echo getTotalPhotoCount(photoRoot . getActivePath()) ?> photos</span>
</a>
<?php endif; ?>
<?php if (getPhotoCount(photoRoot . getActivePath()) > 0): ?> <?php if (getPhotoCount(photoRoot . getActivePath()) > 0): ?>
<div class="photos"> <div class="photos">
<?php <?php
createPhotos(getActivePath()); createPhotos(getActivePath());
?> ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</section> </section>
</div> </div>
<br> <br>