{% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
{% block layout_footer_navigation_columns %}
{{ parent() }}
{% block layout_footer_navigation_columns_newsletter %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletter') %}
{% set action = 'frontend.form.newsletter.register.handle' %}
{% block layout_footer_navigation_columns_newsletter_inner %}
<div class="col-md-{{ config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnSizeArea')}} footer-column js-footer-column">
{% block layout_footer_navigation_columns_newsletter_inner_headline %}
<div class="footer-column-headline footer-headline js-footer-column-headline js-collapse-footer-column-trigger"
id="collapseFooterNewsletterTitle"
{{ dataBsTargetAttr }}="#collapseFooterNewsletter"
aria-expanded="true"
aria-controls="collapseFooterNewsletter"
role="listitem">
{% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterHeadlineContentType') == "textfield") %}
{{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterHeadlineTextField"|trans({"%newsletterheadline%": config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterHeadlineContent')})|sw_sanitize }}
{% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterHeadlineContentType') == "snippet") %}
{{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterHeadline"|trans|raw }}
{% endif %}
{% block layout_footer_navigation_columns_newsletter_inner_headline_icons %}
<div class="footer-column-toggle">
<span class="footer-plus-icon">
{% sw_icon 'plus' %}
</span>
<span class="footer-minus-icon">
{% sw_icon 'minus' %}
</span>
</div>
{% endblock %}
</div>
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content %}
<div id="collapseFooterNewsletter"
class="footer-column-content collapse js-footer-column-content footer-newsletter"
aria-labelledby="collapseFooterNewsletterTitle">
<div class="footer-column-content-inner">
{% block layout_footer_navigation_columns_newsletter_inner_content_inner %}
<div class="cms-block">
<div class="cms-element-form">
<form action="{{ path(action) }}"
method="post"
data-form-csrf-handler="true"
data-form-validation="true">
<div class="form-content">
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_newslettertext_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionNewsletterText') == "beforeEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterText') %}
<p>
{% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContentType') == "texteditor") %}
{{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterTextTextEditor"|trans({"%newslettertext%": config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContent')})|raw }}
{% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContentType') == "snippet") %}
{{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterText"|trans|raw }}
{% endif %}
</p>
{% endif %}
{% endif %}
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_captcha_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionCaptcha') == "beforeEmailAddressField" %}
{% sw_include '@Storefront/storefront/component/captcha/base.html.twig' with { additionalClass : 'col-md-12'} %}
{% endif %}
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_privacy_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionDataProtectionInformatio') == "beforeEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowDataProtectionInformation') %}
{% sw_include '@TmmsAdditionalNewsletterRegistrationOptions/storefront/additional-newsletter-registration-options-privacy.html.twig' with {
identifierTemplate: "form-privacy-opt-in-collapse-footer-newsletter-registration",
showHeadline: config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowDataProtectionInformationHeadline'),
showInput: config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnRequireDataProtectionInformationCheckbox')
} %}
{% endif %}
{% endif %}
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_required_fields_info_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionRequiredFieldsInformation') == "beforeEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowRequiredFieldsInformation') %}
<div class="required-fields-info">
{% sw_include '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-info-required.html.twig' %}
</div>
{% endif %}
{% endif %}
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_inputs %}
<div class="form-row input-group">
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_inputs_select_action %}
<label class="form-label d-none" for="collapseFooterNewsletterAction">
{{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.labelActionSelect"|trans }} {{ "general.required"|trans }}
</label>
<input name="option"
type="hidden"
id="collapseFooterNewsletterAction"
value="{{ constant('Shopware\\Storefront\\Controller\\FormController::SUBSCRIBE') }}"/>
{% endblock %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterButtonNextToField') %}
<div class="footer-newsletter-together">
{% set emailPlaceholder = "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.labelMail" %}
{% else %}
{% set emailPlaceholder = "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.placeholderMail" %}
{% endif %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_inputs_input_email %}
{% sw_include '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-input.html.twig'
with {
fieldName: 'email',
type: 'email',
required: true,
additionalClass: 'col-12',
label: 'tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.labelMail',
placeholder: emailPlaceholder
}
%}
{% endblock %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterButtonNextToField') %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_submit_before %}
<button class="btn btn-primary btn-newsletter w-auto" type="submit">
{% sw_icon 'envelope' %}
</button>
{% endblock %}
</div>
{% endif %}
</div>
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_captcha_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionCaptcha') == "afterEmailAddressField" %}
{% sw_include '@Storefront/storefront/component/captcha/base.html.twig' with { additionalClass : 'col-md-12'} %}
{% endif %}
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_privacy_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionDataProtectionInformatio') == "afterEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowDataProtectionInformation') %}
{% sw_include '@TmmsAdditionalNewsletterRegistrationOptions/storefront/additional-newsletter-registration-options-privacy.html.twig' with {
identifierTemplate: "form-privacy-opt-in-collapse-footer-newsletter-registration",
showHeadline: config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowDataProtectionInformationHeadline'),
showInput: config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnRequireDataProtectionInformationCheckbox')
} %}
{% endif %}
{% endif %}
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_required_fields_info_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionRequiredFieldsInformation') == "afterEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowRequiredFieldsInformation') %}
<div class="required-fields-info">
{% sw_include '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-info-required.html.twig' %}
</div>
{% endif %}
{% endif %}
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_submit_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterButtonNextToField') == false %}
<button type="submit" class="btn btn-primary btn-newsletter w-auto">
{{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterSubmit"|trans }}
</button>
{% endif %}
{% endblock %}
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_newslettertext_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnPositionNewsletterText') == "afterEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnShowNewsletterText') %}
<p class="mt-3">
{% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContentType') == "texteditor") %}
{{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterTextTextEditor"|trans({"%newslettertext%": config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContent')})|raw }}
{% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.footerColumnNewsletterTextContentType') == "snippet") %}
{{ "tmms.additionalnewsletterregistrationoptions.footerColumn.newsletter.footerColumnNewsletterText"|trans|raw }}
{% endif %}
</p>
{% endif %}
{% endif %}
{% endblock %}
</div>
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_hidden_fields %}
<div class="form-hidden-fields">
{% block layout_footer_navigation_columns_newsletter_inner_content_inner_csrf %}
{{ sw_csrf(action) }}
{% endblock %}
<input type="submit" class="submit--hidden d-none"/>
</div>
{% endblock %}
</form>
</div>
</div>
{% endblock %}
</div>
</div>
{% endblock %}
</div>
{% endblock %}
{% endif %}
{% endblock %}
{% endblock %}