custom/plugins/TmmsAdditionalNewsletterRegistrationOptions/src/Resources/views/storefront/layout/footer/footer.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
  2. {% block layout_footer_navigation_columns %}
  3.     {{ parent() }}
  4.     {% block layout_footer_navigation_columns_newsletter %}
  5.         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletter') %}
  6.             {% set action = 'frontend.form.newsletter.register.handle' %}
  7.             {% block layout_footer_navigation_columns_newsletter_inner %}
  8.                 <div class="col-md-{{ config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnSizeArea')}} footer-column js-footer-column">
  9.                     {% block layout_footer_navigation_columns_newsletter_inner_headline %}
  10.                         <div class="footer-column-headline footer-headline js-footer-column-headline js-collapse-footer-column-trigger"
  11.                              id="collapseFooterNewsletterTitle"
  12.                              {{ dataBsTargetAttr }}="#collapseFooterNewsletter"
  13.                              aria-expanded="true"
  14.                              aria-controls="collapseFooterNewsletter"
  15.                              role="listitem">
  16.                             {% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterHeadlineContentType')  == "textfield") %}
  17.                                 {{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterHeadlineTextField"|trans({"%newsletterheadline%": config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterHeadlineContent')})|sw_sanitize }}
  18.                             {% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterHeadlineContentType')  == "snippet") %}
  19.                                 {{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterHeadline"|trans|raw }}
  20.                             {% endif %}
  21.                             {% block layout_footer_navigation_columns_newsletter_inner_headline_icons %}
  22.                                 <div class="footer-column-toggle">
  23.                                     <span class="footer-plus-icon">
  24.                                         {% sw_icon 'plus' %}
  25.                                     </span>
  26.                                     <span class="footer-minus-icon">
  27.                                         {% sw_icon 'minus' %}
  28.                                     </span>
  29.                                 </div>
  30.                             {% endblock %}
  31.                         </div>
  32.                     {% endblock %}
  33.                     {% block layout_footer_navigation_columns_newsletter_inner_content %}
  34.                         <div id="collapseFooterNewsletter"
  35.                              class="footer-column-content collapse js-footer-column-content footer-newsletter"
  36.                              aria-labelledby="collapseFooterNewsletterTitle">
  37.                             <div class="footer-column-content-inner">
  38.                                 {% block layout_footer_navigation_columns_newsletter_inner_content_inner %}
  39.                                     <div class="cms-block">
  40.                                         <div class="cms-element-form">
  41.                                             <form action="{{ path(action) }}"
  42.                                                   method="post"
  43.                                                   data-form-csrf-handler="true"
  44.                                                   data-form-validation="true">
  45.                                                 <div class="form-content">
  46.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_newslettertext_before %}
  47.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionNewsletterText') == "beforeEmailAddressField" %}
  48.                                                             {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterText') %}
  49.                                                                 <p>
  50.                                                                     {% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContentType')  == "texteditor") %}
  51.                                                                         {{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterTextTextEditor"|trans({"%newslettertext%": config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContent')})|raw }}
  52.                                                                     {% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContentType')  == "snippet") %}
  53.                                                                         {{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterText"|trans|raw }}
  54.                                                                     {% endif %}
  55.                                                                 </p>
  56.                                                             {% endif %}
  57.                                                         {% endif %}
  58.                                                     {% endblock %}
  59.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_captcha_before %}
  60.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionCaptcha') == "beforeEmailAddressField" %}
  61.                                                             {% sw_include '@Storefront/storefront/component/captcha/base.html.twig' with { additionalClass : 'col-md-12'} %}
  62.                                                         {% endif %}
  63.                                                     {% endblock %}
  64.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_privacy_before %}
  65.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionDataProtectionInformatio') == "beforeEmailAddressField" %}
  66.                                                             {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowDataProtectionInformation') %}
  67.                                                                 {% sw_include '@TmmsAdditionalNewsletterRegistrationOptions/storefront/additional-newsletter-registration-options-privacy.html.twig' with {
  68.                                                                     identifierTemplate: "form-privacy-opt-in-collapse-footer-newsletter-registration",
  69.                                                                     showHeadline: config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowDataProtectionInformationHeadline'),
  70.                                                                     showInput: config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnRequireDataProtectionInformationCheckbox')
  71.                                                                 } %}
  72.                                                             {% endif %}
  73.                                                         {% endif %}
  74.                                                     {% endblock %}
  75.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_required_fields_info_before %}
  76.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionRequiredFieldsInformation') == "beforeEmailAddressField" %}
  77.                                                             {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowRequiredFieldsInformation') %}
  78.                                                                 <div class="required-fields-info">
  79.                                                                     {% sw_include '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-info-required.html.twig' %}
  80.                                                                 </div>
  81.                                                             {% endif %}
  82.                                                         {% endif %}
  83.                                                     {% endblock %}
  84.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_inputs %}
  85.                                                         <div class="form-row input-group">
  86.                                                             {% block layout_footer_navigation_columns_newsletter_inner_content_inner_inputs_select_action %}
  87.                                                                 <label class="form-label d-none" for="collapseFooterNewsletterAction">
  88.                                                                     {{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.labelActionSelect"|trans }} {{ "general.required"|trans }}
  89.                                                                 </label>
  90.                                                                 <input name="option"
  91.                                                                     type="hidden"
  92.                                                                     id="collapseFooterNewsletterAction"
  93.                                                                     value="{{ constant('Shopware\\Storefront\\Controller\\FormController::SUBSCRIBE') }}"/>
  94.                                                             {% endblock %}
  95.                                                             {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterButtonNextToField') %}
  96.                                                                 <div class="footer-newsletter-together">
  97.                                                                 {% set emailPlaceholder = "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.labelMail" %}
  98.                                                             {% else %}
  99.                                                                 {% set emailPlaceholder = "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.placeholderMail" %}
  100.                                                             {% endif %}
  101.                                                             {% block layout_footer_navigation_columns_newsletter_inner_content_inner_inputs_input_email %}
  102.                                                                 {% sw_include '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-input.html.twig'
  103.                                                                     with {
  104.                                                                         fieldName: 'email',
  105.                                                                         type: 'email',
  106.                                                                         required: true,
  107.                                                                         additionalClass: 'col-12',
  108.                                                                         label: 'tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.labelMail',
  109.                                                                         placeholder: emailPlaceholder
  110.                                                                     }
  111.                                                                 %}
  112.                                                             {% endblock %}
  113.                                                             {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterButtonNextToField') %}
  114.                                                                 {% block layout_footer_navigation_columns_newsletter_inner_content_inner_submit_before %}
  115.                                                                     <button class="btn btn-primary btn-newsletter w-auto" type="submit">
  116.                                                                         {% sw_icon 'envelope' %}
  117.                                                                     </button>
  118.                                                                 {% endblock %}
  119.                                                                 </div>
  120.                                                             {% endif %}
  121.                                                         </div>
  122.                                                     {% endblock %}
  123.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_captcha_after %}
  124.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionCaptcha') == "afterEmailAddressField" %}
  125.                                                             {% sw_include '@Storefront/storefront/component/captcha/base.html.twig' with { additionalClass : 'col-md-12'} %}
  126.                                                         {% endif %}
  127.                                                     {% endblock %}
  128.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_privacy_after %}
  129.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionDataProtectionInformatio') == "afterEmailAddressField" %}
  130.                                                             {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowDataProtectionInformation') %}
  131.                                                                 {% sw_include '@TmmsAdditionalNewsletterRegistrationOptions/storefront/additional-newsletter-registration-options-privacy.html.twig' with {
  132.                                                                     identifierTemplate: "form-privacy-opt-in-collapse-footer-newsletter-registration",
  133.                                                                     showHeadline: config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowDataProtectionInformationHeadline'),
  134.                                                                     showInput: config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnRequireDataProtectionInformationCheckbox')
  135.                                                                 } %}
  136.                                                             {% endif %}
  137.                                                         {% endif %}
  138.                                                     {% endblock %}
  139.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_required_fields_info_after %}
  140.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionRequiredFieldsInformation') == "afterEmailAddressField" %}
  141.                                                             {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowRequiredFieldsInformation') %}
  142.                                                                 <div class="required-fields-info">
  143.                                                                     {% sw_include '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-info-required.html.twig' %}
  144.                                                                 </div>
  145.                                                             {% endif %}
  146.                                                         {% endif %}
  147.                                                     {% endblock %}
  148.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_submit_after %}
  149.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterButtonNextToField') == false %}
  150.                                                             <button type="submit" class="btn btn-primary btn-newsletter w-auto">
  151.                                                                 {{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterSubmit"|trans }}
  152.                                                             </button>
  153.                                                         {% endif %}
  154.                                                     {% endblock %}
  155.                                                     {% block layout_footer_navigation_columns_newsletter_inner_content_inner_newslettertext_after %}
  156.                                                         {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionNewsletterText') == "afterEmailAddressField" %}
  157.                                                             {% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterText') %}
  158.                                                                 <p class="mt-3">
  159.                                                                     {% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContentType')  == "texteditor") %}
  160.                                                                         {{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterTextTextEditor"|trans({"%newslettertext%": config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContent')})|raw }}
  161.                                                                     {% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContentType')  == "snippet") %}
  162.                                                                         {{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterText"|trans|raw }}
  163.                                                                     {% endif %}
  164.                                                                 </p>
  165.                                                             {% endif %}
  166.                                                         {% endif %}
  167.                                                     {% endblock %}
  168.                                                 </div>
  169.                                                 {% block layout_footer_navigation_columns_newsletter_inner_content_inner_hidden_fields %}
  170.                                                     <div class="form-hidden-fields">
  171.                                                         {% block layout_footer_navigation_columns_newsletter_inner_content_inner_csrf %}
  172.                                                             {{ sw_csrf(action) }}
  173.                                                         {% endblock %}
  174.                                                         <input type="submit" class="submit--hidden d-none"/>
  175.                                                     </div>
  176.                                                 {% endblock %}
  177.                                             </form>
  178.                                         </div>
  179.                                     </div>
  180.                                 {% endblock %}
  181.                             </div>
  182.                         </div>
  183.                     {% endblock %}
  184.                 </div>
  185.             {% endblock %}
  186.         {% endif %}
  187.     {% endblock %}
  188. {% endblock %}