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

Open in your IDE?
  1. {% block fourtwosix_footer_advertising %}
  2.     {% set fts_footer_global_active  = config('FourtwosixThemeExtension.config.ftsFooterActive') ?: false %}
  3.     {% set fts_footer_global_horizontal  = config('FourtwosixThemeExtension.config.ftsFooterHorizontal')  ?: false %}
  4.     {% set fts_footer_1_active  = config('FourtwosixThemeExtension.config.ftsFooter1Active') ?: false %}
  5.     {% set fts_footer_2_active  = config('FourtwosixThemeExtension.config.ftsFooter2Active') ?: false %}
  6.     {% if fts_footer_global_active %}
  7.         {% if fts_footer_global_horizontal %}
  8.             {% set fts_col_xl_class ='col-lg-12' %}
  9.         {% else %}
  10.             {% set fts_col_xl_class ='col-lg-inherit' %}
  11.         {% endif %}
  12.         {# Common with Zenit footer #}
  13.         <div class="col-md-6 {{ fts_col_xl_class }} order-1 footer-column js-footer-column footer-newsletter-column footer-newsletter {{ newsletterFooterLogoClass }}">
  14.             {% if fts_footer_1_active and fts_footer_2_active %}
  15.                 {% set fts_layout_mode = constant('FourtwosixThemeExtension\\FourtwosixThemeExtension::FTS_LAYOUT_MODE_SPLIT') %}
  16.             {% elseif not fts_footer_1_active and not fts_footer_2_active %}
  17.                 {% set fts_layout_mode = constant('FourtwosixThemeExtension\\FourtwosixThemeExtension::FTS_LAYOUT_MODE_EMPTY') %}
  18.             {% else %}
  19.                 {% set fts_layout_mode = constant('FourtwosixThemeExtension\\FourtwosixThemeExtension::FTS_LAYOUT_MODE_STANDARD') %}
  20.             {% endif %}
  21.             <div class="row h-100">
  22.                 {# If both disabled do not show anything #}
  23.                 {% if fts_layout_mode != constant('FourtwosixThemeExtension\\FourtwosixThemeExtension::FTS_LAYOUT_MODE_EMPTY') %}
  24.                     {# Show first advertising box #}
  25.                     {% if fts_footer_1_active %}
  26.                         {% sw_include '@FourtwosixThemeExtension/storefront/layout/footer/fts-footer-advertising-item.html.twig' with {
  27.                             fts_footer_h1_snippet: 'fts.footer_1.h1_snippet',
  28.                             fts_footer_h1_color: config('FourtwosixThemeExtension.config.ftsFooter1H1Color'),
  29.                             fts_footer_h2_snippet: 'fts.footer_1.h2_snippet',
  30.                             fts_footer_h2_color: config('FourtwosixThemeExtension.config.ftsFooter1H2Color'),
  31.                             fts_footer_image: config('FourtwosixThemeExtension.config.ftsFooter1Mmedia'),
  32.                             fts_footer_link: 'fts.footer_1.link',
  33.                             fts_layout_direction : fts_footer_global_horizontal,
  34.                             fts_layout_mode : fts_layout_mode,
  35.                         } %}
  36.                     {% endif %}
  37.                     {# Show second advertising box #}
  38.                     {% if fts_footer_2_active %}
  39.                         {% sw_include '@FourtwosixThemeExtension/storefront/layout/footer/fts-footer-advertising-item.html.twig' with {
  40.                             fts_footer_h1_snippet: 'fts.footer_2.h1_snippet',
  41.                             fts_footer_h1_color: config('FourtwosixThemeExtension.config.ftsFooter2H1Color'),
  42.                             fts_footer_h2_snippet: 'fts.footer_2.h2_snippet',
  43.                             fts_footer_h2_color: config('FourtwosixThemeExtension.config.ftsFooter2H2Color'),
  44.                             fts_footer_image: config('FourtwosixThemeExtension.config.ftsFooter2Mmedia'),
  45.                             fts_footer_link: 'fts.footer_2.link',
  46.                             fts_layout_direction : fts_footer_global_horizontal,
  47.                             fts_layout_mode : fts_layout_mode,
  48.                         } %}
  49.                     {% endif %}
  50.                 {% endif %}
  51.             </div>
  52.         </div>
  53.     {% endif %}
  54. {% endblock %}