Update catalog.php

This commit is contained in:
nolanwhy 2023-02-05 10:08:39 +01:00
parent a18bc7b339
commit 9b1bd1ff83
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ $getitstarted->header();
?>
<div class="position-relative col">
<div class="card shadow-sm h-100">
<a href="item.php?id="><img src="<?php if (!empty($item["thumbnail"])) {echo htmlspecialchars($item["thumbnail"]);} else {echo "assets/placeholder.png";} ?>" class="card-img-top"></a>
<a href="item.php?id=<?php echo (int)htmlspecialchars($item["id"]); ?>"><img src="<?php if (!empty($item["thumbnail"])) {echo htmlspecialchars($item["thumbnail"]);} else {echo "assets/placeholder.png";} ?>" class="card-img-top"></a>
<p class="me-1 mt-1 position-absolute top-0 end-0"><?php if(rand(1, $x) == $x) { echo '<span class="badge bg-success">Limited</span>'; }; ?></p>
<span class="fs-6 mt-2 ms-2 opacity-75 position-absolute top-50 start-0 translate-middle-y bg-success badge">$<?php echo (int)htmlspecialchars($item["price"]); ?></span></img>
<div class="card-body">