2nd update

This commit is contained in:
“VeLiTi”
2025-05-26 15:07:22 +02:00
parent cd0e04981c
commit 580f835fff
46 changed files with 16006 additions and 952 deletions

View File

@@ -80,8 +80,7 @@ if (isset($_POST["notifier"])){
$notifier = 1;
}
*/
$view = '';
template_header((${$product['productname']} ?? $product['productname']), $meta);
$view = template_header((${$product['productname']} ?? $product['productname']), $meta);
if ($error){
@@ -146,7 +145,7 @@ $view .='</div>
<div class="stock">';
//Stock status
$stock_status = ($product['quantity'] != 0) ? $product_on_stock : $out_of_stock;
$style = ($stock_status == $product_on_stock) ? 'style="color:green;font-weight: bold;"' : 'style="color:gray;font-weight: lighter;"';
$style = ($stock_status == $product_on_stock) ? 'style="color:green;"' : 'style="color:gray;font-weight: lighter;"';
$view .= '<span class="stock_product">
<p '.$style.'> '.$stock_status.' </p>
</span>';
@@ -324,9 +323,11 @@ $view .= '
</script>';
}
$view .= template_footer();
//OUTPUT
echo $view;
template_footer();
?>