moved category list in main and main content in article
This commit is contained in:
parent
6b590330b5
commit
ca47bf6c62
@ -8,23 +8,22 @@ $allCategory = array(
|
|||||||
"Sans lactose" => "sans_lactose");
|
"Sans lactose" => "sans_lactose");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
|
||||||
View::show("common/category_list");
|
|
||||||
?>
|
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<?php
|
<?= View::show("common/category_list"); ?>
|
||||||
foreach ($A_view as $categoryName => $recipes) {
|
<article>
|
||||||
echo '<section id="'.$allCategory[$categoryName].'">
|
<?php
|
||||||
<h1>'.$categoryName.'</h1>
|
foreach ($A_view as $categoryName => $recipes) {
|
||||||
<ul>';
|
echo '<section id="'.$allCategory[$categoryName].'">
|
||||||
foreach ($recipes as $recipe) {
|
<h1>'.$categoryName.'</h1>
|
||||||
echo '<li>';
|
<ul>';
|
||||||
View::show("common/recipe", $recipe);
|
foreach ($recipes as $recipe) {
|
||||||
echo '</li>';
|
echo '<li>';
|
||||||
}
|
View::show("common/recipe", $recipe);
|
||||||
echo '</ul>
|
echo '</li>';
|
||||||
</section>';
|
}
|
||||||
}
|
echo '</ul>
|
||||||
?>
|
</section>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user