{% block fts_footer_advertising_item %}
{% if fts_footer_global_horizontal %}
{% set footer_content_layout_class = "d-flex flex-column flex-lg-row align-items-lg-center justify-content-lg-around" %}
{% set footer_text_container_class = "my-3 my-lg-0 ml-lg-5 mr-lg-3" %}
{% set footer_media_class = "d-flex align-items-center justify-content-center" %}
{% set footer_link_class = "" %}
{% set footer_media_container_class = "pl-lg-4" %}
{% else %}
{% set footer_content_layout_class = "flex-column" %}
{% set footer_text_container_class = "my-3" %}
{% set footer_media_class = "" %}
{% set footer_link_class = "" %}
{% set footer_media_container_class = "py-lg-2" %}
{% endif %}
{# Define the main column HTML class based on the plugin config value #}
{% if(fts_layout_mode == constant('FourtwosixThemeExtension\\FourtwosixThemeExtension::FTS_LAYOUT_MODE_SPLIT')) %}
{% set fts_layout_col_size = "col-lg-6" %}
{% elseif(fts_layout_mode == constant('FourtwosixThemeExtension\\FourtwosixThemeExtension::FTS_LAYOUT_MODE_STANDARD')) %}
{% set fts_layout_col_size = "col-lg-12" %}
{% else %}
{# prevent everything from breaking layout by hiding it #}
{% set fts_layout_col_size = "d-none" %}
{% endif %}
<div class="col-12 {{ fts_layout_col_size }} fts-footer-container d-flex align-items-center justify-content-center {{ footer_link_class }}">
<a href="{{ fts_footer_link|trans }}" target="_blank"
class="cursor-pointer text-decoration-none d-flex {{ foooter_link_class }}">
<div class="fts-footer-content {{ footer_content_layout_class }}">
<div class="fts-footer-media-container order-fts-media {{ footer_media_container_class }}">
<div class="fts-footer-media {{ footer_media_class }}">
{% if fts_footer_image %}
{% set mediaCollection = searchMedia([fts_footer_image], context.context) %}
{% set mediaImage = mediaCollection.get(fts_footer_image) %}
{% sw_thumbnails 'thumbnails' with {
media: mediaImage
} %}
{% endif %}
</div>
</div>
<div class="fts-footer-text-container order-fts-text {{ footer_text_container_class }} ">
<h1 class="fts-footer-text-h1 order-fts-text-h1"
{% if fts_footer_h1_color %}
style="color: {{ fts_footer_h1_color }}"
{% endif %}
>
{{ fts_footer_h1_snippet|trans|sw_sanitize }}
</h1>
<h2 class="fts-footer-text-h2 order-fts-text-h2"
{% if fts_footer_h2_color %}
style="color:{{ fts_footer_h2_color }}"
{% endif %}
>
{{ fts_footer_h2_snippet|trans|sw_sanitize }}
</h2>
</div>
</div>
</a>
</div>
{% endblock %}