diff options
Diffstat (limited to 'public/product.php')
-rw-r--r-- | public/product.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/public/product.php b/public/product.php index 172a30c..70c511d 100644 --- a/public/product.php +++ b/public/product.php @@ -26,13 +26,17 @@ $product = $res->fetch_object(); <div class="column left"> <?php $img = "/img/product/".$product->id."-full.jpg"; - echo "<a href='$img'><img src='$img' alt=''></a>"; + echo <<<"EOF" + <a href="$img" target="_blank"> + <img src="$img" alt="$product->name"> + </a> + EOF; ?> </div> <div class="column right"> <h2><?php echo $product->name ?></h2> <span class="price"><?php echo $product->price ?></span> - <span class="info"><?php echo $product->description ?></span> + <p class="info"><?php echo $product->description ?></p> <form action="/cart.php" method="post"> <input type="number" value="<?php echo $product->id ?>" hidden name="product_id"> <input type="submit" value="Toevoegen aan winkelwagen" class="button filled"> |