move category_list to common and added it to pages where we will see it (+ fixed home view array)

This commit is contained in:
Capelier-Marla 2023-01-20 09:07:10 +01:00
parent 3b8207d3b1
commit 5d7c4628c6
4 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<a href="<?= $A_view["RECIPE_LINK"]?>">
<img src="<?= $A_view["IMG_LINK"] ?>" alt="<?= $A_view["NAME"]?>">
<a href="<?= $A_view["LINK"]?>">
<img src="<?= $A_view["IMG"] ?>" alt="<?= $A_view["NAME"]?>">
<section>
<h2> <?= $A_view["NAME"]?> </h2>
<p> <?= $A_view["NOTE"]?> </p>

View File

@ -1,5 +1,7 @@
<img src="static/img/bandeau.jpg" alt="Cook">
<?php View::show("common/category_list") ?>
<main>
<section>
<h1> Nos idées recettes: </h1>

View File

@ -1,3 +1,5 @@
<?php View::show("common/category_list") ?>
<main>
<img src="<?= $A_view["IMAGE_URL"] ?>" alt="Image d'illustration de la recette">