{# === INLINE VARIANT === #} {% if variant == 'inline' %} {{ innerText|escape('html_attr') }} {# === SINGLE VARIANT === #} {% elseif variant == 'single' %}
{{ innerText|escape('html_attr') }} {% if hideCopyButton is not defined or not hideCopyButton %} {% include '@MauticCore/Helper/button.html.twig' with { buttons: [{ variant: 'icon', size: 'xs', icon: 'ri-file-copy-line', icon_only: true, label: copyButtonDescription|default('mautic.core.copy_code_snippet')|trans, attributes: { 'data-copy': copyText|default(innerText)|escape('html_attr'), 'type': 'button', }, }] } %} {% endif %}
{# === MULTI VARIANT === #} {% elseif variant == 'multi' %}
{{ innerText|raw }}
{% if hideCopyButton is not defined or not hideCopyButton %} {% include '@MauticCore/Helper/button.html.twig' with { buttons: [{ variant: 'icon', icon: 'ri-file-copy-line', icon_only: true, label: copyButtonDescription|default('mautic.core.copy_code_snippet')|trans, attributes: { 'data-copy': copyText|default(innerText)|escape('html_attr'), 'type': 'button', }, }] } %} {% endif %}
{% endif %}