36 lines
822 B
PHP
36 lines
822 B
PHP
<?php
|
|
require_once APPS_PATH . '/Recipes/components.php';
|
|
require_once(INCLUDES_PATH . '/Const/recipes.php');
|
|
|
|
the_header(
|
|
'Daily Meals',
|
|
'What do you want to eat today?',
|
|
'daily-meals-page',
|
|
[
|
|
['keywords', 'recipes, cooking, food, cuisine'],
|
|
|
|
]
|
|
);
|
|
?>
|
|
<div class="container">
|
|
<div class="daily-recipes">
|
|
<?php
|
|
foreach ($context['weeks'] as $day => $recipe_prefetches) {
|
|
?>
|
|
<div class="daily-meals">
|
|
<h2 class="title">Your Menu for <?= ucfirst($day) ?></h2>
|
|
<div class="daily-meals-grid">
|
|
|
|
<?php
|
|
foreach ($recipe_prefetches as $recipe_pref) {
|
|
the_product_recipes_item($recipe_pref['origin'], $recipe_pref['relations']);
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php the_footer(); ?>
|