category_list implemented

This commit is contained in:
Nicolas 2023-01-16 17:17:23 +01:00 committed by Capelier-Marla
parent 5f8bfa4b11
commit 21f40c7ee5
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,19 @@
<?php
$allCategory array(
"Type de cuisson" => "type_de_cuisson",
"Temps de préparation" => "temps_de_preparation",
"Difficulté" => "difficulte",
"Végan" => "vegan",
"Sans gluten" => "sans_gluten",
"Sans lactose" => "sans_lactose");
?>
<aside>
<ul>
<li><h3>Catégories :</h3></li>
<?php
foreach($allCategory as $category => $category_path){
echo('<li><a href="/category/' . $category_path . '">'. $category . '</a></li>')
}?>
</ul>
</aside>

View File

@ -8,7 +8,6 @@ $array_header = array(
);
?>
<header>
<nav>
<ul>
<?php
@ -18,5 +17,4 @@ $array_header = array(
?>
</ul>
</nav>
</header>