![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/plugins/MauticFocusBundle/Resources/views/Builder/ |
{# 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 %} <div> <style scoped> .mautic-focus * { all: revert; box-sizing: border-box; } .mautic-focus { font-family: {{ props.content.font }}; color: #{{ props.colors.text }}; } {% if props.colors is defined and props.colors is not empty %} .mf-content a.mf-link, .mf-content .mauticform-button, .mf-content .mauticform-pagebreak { background-color: #{{ props.colors.button }}; color: #{{ props.colors.button_text }}; } .mauticform-input:focus, select:focus { border: 1px solid #{{ props.colors.button }}; } {% endif %} {% if preview %} {{ include('@MauticFocus/Builder/style.less.twig', { 'preview': true, 'focus': focus, }, with_context=false) }} {% endif %} </style> {{ 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 %} <style scoped> {{ focus.properties.content.css|raw }} </style> {% endif %} {# Add view tracking image #} {% if not preview %} <img src="{{ url('mautic_focus_pixel', {'id': focus.id}, true) }}" alt="Mautic Focus" style="display: none;"/> {% endif %} </div>