{# Variables - focus (MauticPlugin\MauticFocusBundle\Entity\Focus) - preview (optional) - clickUrl - htmlMode Notes - focus.htmlMode === htmlMode? is this always true? #} {% set templateBase = '@MauticFocus/Builder/' ~ focus.style|capitalize ~ '/index.html.twig' %} {% set preview = preview|default(false) %} {% set clickUrl = clickUrl|default('#') %} {% set props = focus.properties %}
{{ include(templateBase, { 'focus': focus, 'preview': preview, 'clickUrl': clickUrl, 'htmlMode': htmlMode, }, with_context=false) }} {% if focus.properties.content.css is defined and focus.properties.content.css is not empty %} {% endif %} {# Add view tracking image #} {% if not preview %} Mautic Focus {% endif %}