display each category in a section instead of of ul/li
This commit is contained in:
parent
6a375e97a7
commit
eb8490332e
@ -8,21 +8,19 @@ $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 '<section id="'.$allCategory[$categoryName].'">
|
||||||
echo '<li><section id="'.$allCategory[$categoryName].'">
|
<h1>'.$categoryName.'</h1>
|
||||||
<h1>'.$categoryName.'</h1>
|
<ul>';
|
||||||
<ul>';
|
foreach ($recipes as $recipe) {
|
||||||
foreach ($recipes as $recipe) {
|
echo '<li>';
|
||||||
echo '<li>';
|
View::show("common/recipe", $recipe);
|
||||||
View::show("common/recipe", $recipe);
|
echo '</li>';
|
||||||
echo '</li>';
|
}
|
||||||
}
|
echo '</ul>
|
||||||
echo '</ul>
|
</section>';
|
||||||
</section></li>';
|
}
|
||||||
}
|
?>
|
||||||
?>
|
</main>
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user