{% sw_extends '@Storefront/storefront/layout/footer.html.twig' %} {% block base_footer %} {{ parent() }} {# check if product box layouts of plugin should be used #} {% set configISEButton = config('C108InteractiveSideElement.config') %} {% if configISEButton.c108isebool %} {# get variables from app config #} {% set buttonType = configISEButton.c108isebuttontype %} {% set buttonImage = configISEButton.c108isebuttonimg %} {% set buttonImageAlt = configISEButton.c108isebuttonimgalt %} {% set titleAttribute = configISEButton.c108isetitleattribute %} {% set buttonFunction = configISEButton.c108isebuttonfunction %} {% set buttonSize = configISEButton.c108isebuttonsize %} {% set buttonPosition = configISEButton.c108isebuttonposition %} {% set buttonAnimation = configISEButton.c108iseanimationspeed %} {% set buttonAlignment = configISEButton.c108isebuttonalignment %} {% set buttonText = configISEButton.c108isebuttontext %} {# second and third button bool #} {% set secondButtonBool = configISEButton.c108isesecondelementbool %} {% if secondButtonBool %} {% set thirdButtonBool = configISEButton.c108isethirdelementbool %} {% endif %} {% if configISEButton.c108isehidecheckoutbool %} {% endif %} {# interactive side element #}
{# button #} {% if buttonFunction == "simplelink" %} {% set buttonUrl = configISEButton.c108isebuttonurl %} {% if configISEButton.c108isebuttonurlbooladvanced %} {% set buttonUrl = configISEButton.c108isebuttonurladvanced %} {% endif %} {% set sameWindow = configISEButton.c108isebuttonurlsamewindow %} {% else %} {% endif %} {# button end #} {# second button #} {% if secondButtonBool and buttonFunction == "simplelink" %} {# get variables from app config #} {% set secondButtonImage = configISEButton.c108isesecondbuttonimg %} {% set secondButtonImageAlt = configISEButton.c108isesecondbuttonimgalt %} {% set secondTitleAttribute = configISEButton.c108isesecondtitleattribute %} {% set secondButtonText = configISEButton.c108isesecondbuttontext %} {% set secondButtonMarginTop = configISEButton.c108isesecondelementmargintop %} {# button #} {% if buttonFunction == "simplelink" %} {% set buttonUrl = configISEButton.c108isesecondbuttonurl %} {% if configISEButton.c108isesecondbuttonurlbooladvanced %} {% set buttonUrl = configISEButton.c108isesecondbuttonurladvanced %} {% endif %} {% set sameWindow = configISEButton.c108isesecondbuttonurlsamewindow %} {% else %} {% endif %} {# button end #} {% endif %} {# second button end #} {# third button #} {% if secondButtonBool and thirdButtonBool and buttonFunction == "simplelink" %} {# get variables from app config #} {% set thirdButtonImage = configISEButton.c108isethirdbuttonimg %} {% set thirdButtonImageAlt = configISEButton.c108isethirdbuttonimgalt %} {% set thirdTitleAttribute = configISEButton.c108isethirdtitleattribute %} {% set thirdButtonText = configISEButton.c108isethirdbuttontext %} {% set thirdButtonMarginTop = configISEButton.c108isethirdelementmargintop %} {# button #} {% if buttonFunction == "simplelink" %} {% set buttonUrl = configISEButton.c108isethirdbuttonurl %} {% if configISEButton.c108isethirdbuttonurlbooladvanced %} {% set buttonUrl = configISEButton.c108isethirdbuttonurladvanced %} {% endif %} {% set sameWindow = configISEButton.c108isethirdbuttonurlsamewindow %} {% else %} {% endif %} {# button end #} {% endif %} {# third button end #} {# content #} {% if buttonFunction != "simplelink" %}
{% if configISEButton.c108isecontentbool %} {% if configISEButton.c108isecontentallowhtmlbool %} {{ 'C108InteractiveSideElement.translated.content'|trans|raw }} {% else %} {{ 'C108InteractiveSideElement.translated.content'|trans }} {% endif %} {% else %} {% set contentText = configISEButton.c108isecotenttext %} {% autoescape %} {{ contentText | raw }} {% endautoescape %} {% endif %}
{% if buttonFunction == "modalcontent" %} {% endif %}
{% endif %} {# content end #}
{# interactive side element end #} {% endif %} {% endblock %}