fixed gallery

This commit is contained in:
twotalesanimation
2025-12-08 11:39:57 +02:00
parent 5808788b9e
commit 2acbeac7ca

View File

@@ -220,8 +220,7 @@ require_once($rootPath . '/components/banner.php');
<?php if (count($albums) > 0): ?>
<div class="gallery-grid">
<?php foreach ($albums as $album): ?>
<a href="view_album?id=<?php echo $album['album_id']; ?>" style="text-decoration: none; color: inherit;">
<div class="album-card">
<div class="album-card">
<div class="album-image-wrapper">
<?php if ($album['cover_image']): ?>
<img src="<?php echo htmlspecialchars($album['cover_image']); ?>" alt="<?php echo htmlspecialchars($album['title']); ?>">
@@ -250,6 +249,9 @@ require_once($rootPath . '/components/banner.php');
</div>
<div class="album-actions">
<a href="view_album?id=<?php echo $album['album_id']; ?>" class="theme-btn" style="width: 100%;">
View
</a>
<?php if ($album['user_id'] == $current_user_id): ?>
<a href="edit_album?id=<?php echo $album['album_id']; ?>" class="album-edit-icon" title="Edit">
<i class="far fa-edit"></i>
@@ -258,7 +260,6 @@ require_once($rootPath . '/components/banner.php');
</div>
</div>
</div>
</a>
<?php endforeach; ?>
</div>
<?php else: ?>