{# Actualité content block - text only Parameters: - block (object): block data with `id`, `type`, `fields.{title,subtitle,content,buttonLabel,buttonHref}` #}
{% if editMode|default(false) %} {{ include('components/_actualite-block-controls.html.twig', { showMobilePositionToggle: false }) }} {% endif %}
{% if (block.fields.title is defined and block.fields.title) or editMode|default(false) %}

{{ block.fields.title|default('') }}

{% endif %} {% if (block.fields.subtitle is defined and block.fields.subtitle) or editMode|default(false) %}

{{ block.fields.subtitle|default('') }}

{% endif %} {% if (block.fields.content is defined and block.fields.content) or editMode|default(false) %}
{{ block.fields.content|default('')|raw }}
{% endif %} {% set buttonLabel = block.fields.buttonLabel|default('') %} {% if (block.fields.buttonHref is defined and block.fields.buttonHref and buttonLabel) or editMode|default(false) %} {% set content %}{{ buttonLabel|default('Label du bouton') }}{% endset %} {{ include('components/_button.html.twig', editMode|default(false) ? { href: block.fields.buttonHref|default('#'), content: content, extra_class: 'link-btn--on-content', attrs: 'data-editable-href="true" data-field="buttonHref" data-label-field="buttonLabel" data-label-value="' ~ buttonLabel|e('html_attr') ~ '"' } : { href: block.fields.buttonHref, content: content, extra_class: 'link-btn--on-content' }) }} {% endif %}