{% if content.carte_id is defined and content.carte_id is not null %} {% set carte = getCarte(content.carte_id) %} {% if carte is not null %} {% if element.showTitle %}

{{ carte.nom }}

{% endif %} {% if carte.description is not null %}
{{ carte.description|raw }}
{% endif %}
{% set displayedItems = carte.carteItems|sort((a, b) => a.position <=> b.position) %} {% for item in displayedItems %}
{% if item.contentId is not null %} {% set documentContent = getImage(item.contentId) %} {{ item.description }} {% endif %}
{% if item.showTitle %}
{{ item.titre }}
{% if item.subTitle is not null %}
{{ item.subTitle }}
{% endif %} {% endif %} {% if item.showDescription %}

{{ item.description }}

{% endif %} {% if item.subDescription is not null %}

{{ item.subDescription }}

{% endif %} {% if item.showPrice %} {% if item.price is not null %}
{% if item.textPrice is not null %}

{{ item.textPrice }}

{% endif %}

{% if item.price != 0 %}{{ item.price|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.subtextPrice is not null %} {{ item.subtextPrice }} {% endif %}
{% endif %} {% if item.price2 is not null %}
{% if item.textPrice2 is not null %}

{{ item.textPrice2 }}

{% endif %}

{% if item.price2 != 0 %}{{ item.price2|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.subtextPrice2 is not null %} {{ item.subtextPrice2 }} {% endif %}
{% endif %} {% if item.price3 is not null %}
{% if item.textPrice3 is not null %}

{{ item.textPrice3 }}

{% endif %}

{% if item.price3 != 0 %}{{ item.price3|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.subtextPrice3 is not null %} {{ item.subtextPrice3 }} {% endif %}
{% endif %} {% if item.price4 is not null %}
{% if item.textPrice4 is not null %}

{{ item.textPrice4 }}

{% endif %}

{% if item.price4 != 0 %}{{ item.price4|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.subtextPrice4 is not null %} {{ item.subtextPrice4 }} {% endif %}
{% endif %} {% if item.price5 is not null %}
{% if item.textPrice5 is not null %}

{{ item.textPrice5 }}

{% endif %}

{% if item.price5 != 0 %}{{ item.price5|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.subtextPrice5 is not null %} {{ item.subtextPrice5 }} {% endif %}
{% endif %} {% endif %} {% if item.footerElement is not null %} {% if item.footerElement.showTitle %}
{{ item.footerElement.titre }}
{% if item.footerElement.subTitle is not null %}
{{ item.footerElement.subTitle }}
{% endif %} {% endif %} {% if item.footerElement.showDescription %}

{{ item.footerElement.description }}

{% endif %} {% if item.footerElement.showPrice %} {% if item.footerElement.price is not null %}
{% if item.footerElement.textPrice is not null %}

{{ item.footerElement.textPrice }}

{% endif %}

{% if item.footerElement.price != 0 %}{{ item.footerElement.price|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.footerElement.subtextPrice is not null %} {{ item.footerElement.subtextPrice }} {% endif %}
{% endif %} {% if item.footerElement.price2 is not null %}
{% if item.footerElement.textPrice2 is not null %}

{{ item.footerElement.textPrice2 }}

{% endif %}

{% if item.footerElement.price2 != 0 %}{{ item.footerElement.price2|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.footerElement.subtextPrice2 is not null %} {{ item.footerElement.subtextPrice2 }} {% endif %}
{% endif %} {% if item.footerElement.price3 is not null %}
{% if item.footerElement.textPrice3 is not null %}

{{ item.footerElement.textPrice3 }}

{% endif %}

{% if item.footerElement.price3 != 0 %}{{ item.footerElement.price3|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.footerElement.subtextPrice3 is not null %} {{ item.footerElement.subtextPrice3 }} {% endif %}
{% endif %} {% if item.footerElement.price4 is not null %}
{% if item.footerElement.textPrice4 is not null %}

{{ item.footerElement.textPrice4 }}

{% endif %}

{% if item.footerElement.price4 != 0 %}{{ item.footerElement.price4|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.footerElement.subtextPrice4 is not null %} {{ item.footerElement.subtextPrice4 }} {% endif %}
{% endif %} {% if item.footerElement.price5 is not null %}
{% if item.footerElement.textPrice5 is not null %}

{{ item.footerElement.textPrice5 }}

{% endif %}

{% if item.footerElement.price5 != 0 %}{{ item.footerElement.price5|number_format(2, ',', ' ') }} €{% else %}-{% endif %}

{% if item.footerElement.subtextPrice5 is not null %} {{ item.footerElement.subtextPrice5 }} {% endif %}
{% endif %} {% endif %} {% endif %}
{% if item.footer is not null %} {% endif %}
{% endfor %}
{% endif %} {% endif %}