{#
component: modal
title: {string}: titre
text: {string}: texte
button: {
text {string}: Texte du lien
to {string}: Lien
},
image: {image}:
#}
{% set props = {
title:null,
text:null,
button:null,
image:null,
open:false
}|merge(props|default({})) %}
<div data-component="modal" class="Modal" data-open="{{props.open}}">
<div class="Modal-bg" ref="bg"></div>
<div class="Modal-content">
<div class="Modal-btclose" ref="btclose">
<div class="Modal-btcloseCross"></div>
</div>
<div class="Modal-image">
{% include "component/image.html.twig" with {
props: props.image
} %}
{# {% include "component/picture.html.twig" with {
props: (props.image) ? (props.image|merge({
srcWebp: (props.image) ? asset(props.image.src | imagine_filter('convert_img_to_webp')) : ''
})) : props.image
} %} #}
</div>
<div class="Modal-article">
{% if props.title is defined and props.title %}
<div class="Modal-title Heading-titleAnnex">
{{props.title}}
</div>
{% endif %}
{% if props.text is defined and props.text %}
<div class="Modal-text">
{% include "component/wysiwyg.html.twig" with {
props: {
content: props.text
}
} %}
</div>
{% endif %}
{% if props.button is defined and props.button %}
{% include "component/button.html.twig" with {
props: props.button
} %}
{% endif %}
</div>
</div>
</div>