le partage de l'image s'ouvre dans un nouvel onglet

This commit is contained in:
Esenjin 2025-01-03 14:38:23 +01:00
parent e7b24b3c30
commit 018c99e273

View File

@ -100,7 +100,7 @@ if (!isSecurePath($parentPath)) {
<div class="gallery-grid" id="gallery-grid"> <div class="gallery-grid" id="gallery-grid">
<?php foreach($images as $image): ?> <?php foreach($images as $image): ?>
<div class="gallery-item"> <div class="gallery-item">
<a href="partage.php?image=<?php echo urlencode($image); ?>"> <a href="partage.php?image=<?php echo urlencode($image); ?>" target="_blank">
<img src="<?php echo htmlspecialchars($image); ?>" <img src="<?php echo htmlspecialchars($image); ?>"
alt="Image de la galerie" alt="Image de la galerie"
loading="lazy" loading="lazy"
@ -108,7 +108,7 @@ if (!isSecurePath($parentPath)) {
</a> </a>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script> <script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
<script src="https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js"></script> <script src="https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js"></script>