{% for cssPath in styleSheetPath %} {% endfor %}
Au menu cette semaine...
{% for mealtime in menus|keys %} {% set imageName = "" %} {% if mealtime == "Matin" %}{% set imageName = "croissant_thin" %}{% endif %} {% if mealtime == "Midi" %}{% set imageName = "sun_bright_thin" %}{% endif %} {% if mealtime == "Soir" %}{% set imageName = "moon_thin" %}{% endif %} {% if mealtime == "Goûter"%}{% set imageName = "mug_hot_thin" %}{% endif %} | {{ mealtime }} | {% endfor %}
---|---|
{{ date | date_fr('onlyDayName') }} {{ date | date_fr('medium') }} {% for ephemeris in ephemerides %} {% if ephemeris is not null and ephemeris.date|date('md') == date|date('md') %} {{ ephemeris.prenoms | first }} {% endif %} {% endfor %} |
{% for key in menus|keys %}
{% set hasAnim = false %}
{% set eventName = "" %}
{% for mealtimeEvent in datesWithEvents|keys %}
{% if mealtimeEvent == key %}
{% for event in datesWithEvents[key] %}
{% if event and event.date|date("Y-m-d") == date|date("Y-m-d") %}
{% set hasAnim = true %}
{% set eventName = event.name %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% if hasAnim %}
{{ eventName }}
{% endif %}
{% for course, recipes in menus[key] %}
{% for recipe in recipes %}
{% if date | date_fr('short') == recipe.consumptionDate | date_fr('short') %}
{{ recipe.preferredSiteLabel | default(recipe.commercialLabel) | default(recipe.designation) | raw }} {% if recipe.linkedRecipeLabels is not empty %} {% for linkedRecipeLabel in recipe.linkedRecipeLabels %} , {{ linkedRecipeLabel | raw }} {% endfor %} {% endif %} {% endif %} {% endfor %} {% endfor %} |
{% endfor %}