display each category in a section instead of of ul/li
This commit is contained in:
parent
6a375e97a7
commit
eb8490332e
@ -8,11 +8,10 @@ $allCategory = array(
|
|||||||
"Sans lactose" => "sans_lactose");
|
"Sans lactose" => "sans_lactose");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<nav>
|
<main>
|
||||||
<ul>
|
|
||||||
<?php
|
<?php
|
||||||
foreach ($A_view as $categoryName => $recipes) {
|
foreach ($A_view as $categoryName => $recipes) {
|
||||||
echo '<li><section id="'.$allCategory[$categoryName].'">
|
echo '<section id="'.$allCategory[$categoryName].'">
|
||||||
<h1>'.$categoryName.'</h1>
|
<h1>'.$categoryName.'</h1>
|
||||||
<ul>';
|
<ul>';
|
||||||
foreach ($recipes as $recipe) {
|
foreach ($recipes as $recipe) {
|
||||||
@ -21,8 +20,7 @@ $allCategory = array(
|
|||||||
echo '</li>';
|
echo '</li>';
|
||||||
}
|
}
|
||||||
echo '</ul>
|
echo '</ul>
|
||||||
</section></li>';
|
</section>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</main>
|
||||||
</nav>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user