added id for each category to go directly to the section wanted
This commit is contained in:
parent
f8e81d6136
commit
95f86e77a4
@ -1,11 +1,18 @@
|
||||
<?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");
|
||||
?>
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<?php
|
||||
foreach ($A_view as $categoryName => $recipes) {
|
||||
echo '<li><section>
|
||||
echo '<li><section id="'.$allCategory[$categoryName].'">
|
||||
<h1>'.$categoryName.'</h1>
|
||||
<ul>';
|
||||
foreach ($recipes as $recipe) {
|
||||
|
Loading…
Reference in New Issue
Block a user