custom/plugins/FourtwosixThemeExtension/src/Resources/views/storefront/layout/footer/fts-footer-advertising-item.html.twig line 1

Open in your IDE?
  1. {% block fts_footer_advertising_item %}
  2.     {% if fts_footer_global_horizontal %}
  3.         {% set footer_content_layout_class  = "d-flex flex-column flex-lg-row align-items-lg-center justify-content-lg-around" %}
  4.         {% set footer_text_container_class   = "my-3 my-lg-0 ml-lg-5 mr-lg-3" %}
  5.         {% set footer_media_class   = "d-flex align-items-center justify-content-center" %}
  6.         {% set footer_link_class   = "" %}
  7.         {% set footer_media_container_class   = "pl-lg-4" %}
  8.     {% else %}
  9.         {% set footer_content_layout_class  = "flex-column" %}
  10.         {% set footer_text_container_class   = "my-3" %}
  11.         {% set footer_media_class   = "" %}
  12.         {% set footer_link_class   = "" %}
  13.         {% set footer_media_container_class   = "py-lg-2" %}
  14.     {% endif %}
  15.     {# Define the main column HTML class based on the plugin config value #}
  16.     {% if(fts_layout_mode == constant('FourtwosixThemeExtension\\FourtwosixThemeExtension::FTS_LAYOUT_MODE_SPLIT')) %}
  17.         {% set fts_layout_col_size  = "col-lg-6" %}
  18.     {% elseif(fts_layout_mode == constant('FourtwosixThemeExtension\\FourtwosixThemeExtension::FTS_LAYOUT_MODE_STANDARD')) %}
  19.         {% set fts_layout_col_size  = "col-lg-12" %}
  20.     {% else %}
  21.         {# prevent everything from breaking layout by hiding it #}
  22.         {% set fts_layout_col_size  = "d-none" %}
  23.     {% endif %}
  24.     <div class="col-12 {{ fts_layout_col_size }} fts-footer-container d-flex align-items-center  justify-content-center {{ footer_link_class }}">
  25.         <a href="{{ fts_footer_link|trans }}" target="_blank"
  26.            class="cursor-pointer text-decoration-none d-flex  {{ foooter_link_class }}">
  27.             <div class="fts-footer-content {{ footer_content_layout_class }}">
  28.                 <div class="fts-footer-media-container order-fts-media  {{ footer_media_container_class }}">
  29.                     <div class="fts-footer-media {{ footer_media_class }}">
  30.                         {% if fts_footer_image %}
  31.                             {% set mediaCollection = searchMedia([fts_footer_image], context.context) %}
  32.                             {% set mediaImage = mediaCollection.get(fts_footer_image) %}
  33.                             {% sw_thumbnails 'thumbnails' with {
  34.                                 media: mediaImage
  35.                             } %}
  36.                         {% endif %}
  37.                     </div>
  38.                 </div>
  39.                 <div class="fts-footer-text-container order-fts-text {{ footer_text_container_class }} ">
  40.                     <h1 class="fts-footer-text-h1 order-fts-text-h1"
  41.                             {% if fts_footer_h1_color %}
  42.                                 style="color: {{ fts_footer_h1_color }}"
  43.                             {% endif %}
  44.                     >
  45.                         {{ fts_footer_h1_snippet|trans|sw_sanitize }}
  46.                     </h1>
  47.                     <h2 class="fts-footer-text-h2 order-fts-text-h2"
  48.                             {% if fts_footer_h2_color %}
  49.                                 style="color:{{ fts_footer_h2_color }}"
  50.                             {% endif %}
  51.                     >
  52.                         {{ fts_footer_h2_snippet|trans|sw_sanitize }}
  53.                     </h2>
  54.                 </div>
  55.             </div>
  56.         </a>
  57.     </div>
  58. {% endblock %}