{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_footer %}
{% block base_footer_newsletter %}
{% set showNewsletter = 0 %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletter') %}
{% set showNewsletter = 1 %}
{% endif %}
{% if not(config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletterOnLoginPage')) and (controllerName|lower == "auth") %}
{% set showNewsletter = 0 %}
{% endif %}
{% if not(config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletterOnShoppingCartPage')) and (controllerAction|lower == "cartpage") %}
{% set showNewsletter = 0 %}
{% endif %}
{% if not(config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletterOnAccountPage')) and ((controllerName|lower == "accountprofile") or (controllerName|lower == "address") or (controllerName|lower == "accountpayment") or (controllerName|lower == "accountorder")) %}
{% set showNewsletter = 0 %}
{% endif %}
{% if showNewsletter == 1 %}
{% set action = 'frontend.form.newsletter.register.handle' %}
{% block base_footer_newsletter_inner %}
<div class="footer-main-newsletter">
<div class="container">
{% block base_footer_newsletter_inner_content %}
<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{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterAlignContentMiddle') %} center{% endif %}{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterLeftRightSplitting') %} left-right-splitting{% endif %}">
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterLeftRightSplitting') %}<div class="form-content-left">{% endif %}
<div class="footer-main-newsletter-headline">
{% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterHeadlineContentType') == "texteditor") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterNewsletterHeadlineTextEditor"|trans({"%newsletterheadline%": config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterHeadlineContent')})|raw }}
{% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterHeadlineContentType') == "snippet") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterNewsletterHeadline"|trans|raw }}
{% endif %}
</div>
{% block base_footer_newsletter_inner_content_newslettertext_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionNewsletterText') == "beforeEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletterText') %}
<p>
{% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterTextContentType') == "texteditor") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterFirstNewsletterTextTextEditor"|trans({"%firstnewslettertext%": config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterTextContent')})|raw }}
{% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterTextContentType') == "snippet") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterFirstNewsletterText"|trans|raw }}
{% endif %}
</p>
{% endif %}
{% endif %}
{% endblock %}
{% block base_footer_newsletter_inner_content_secondnewslettertext_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionSecondNewsletterText') == "beforeEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowSecondNewsletterText') %}
<p>
{% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterSecondNewsletterTextContentType') == "texteditor") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterSecondNewsletterTextTextEditor"|trans({"%secondnewslettertext%": config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterSecondNewsletterTextContent')})|raw }}
{% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterSecondNewsletterTextContentType') == "snippet") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterSecondNewsletterText"|trans|raw }}
{% endif %}
</p>
{% endif %}
{% endif %}
{% endblock %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterLeftRightSplitting') %}</div><div class="form-content-right">{% endif %}
{% block base_footer_newsletter_inner_content_captcha_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionCaptcha') == "beforeEmailAddressField" %}
{% sw_include '@Storefront/storefront/component/captcha/base.html.twig' with { additionalClass : 'col-md-4'} %}
{% endif %}
{% endblock %}
{% block base_footer_newsletter_inner_content_privacy_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionDataProtectionInformation') == "beforeEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowDataProtectionInformation') %}
{% sw_include '@TmmsAdditionalNewsletterRegistrationOptions/storefront/additional-newsletter-registration-options-privacy.html.twig' with {
identifierTemplate: "form-privacy-opt-in-footer-newsletter-registration",
showHeadline: config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowDataProtectionInformationHeadline'),
showInput: config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterRequireDataProtectionInformationCheckbox')
} %}
{% endif %}
{% endif %}
{% endblock %}
{% block base_footer_newsletter_inner_content_required_fields_info_before %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionRequiredFieldsInformation') == "beforeEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowRequiredFieldsInformation') %}
<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 base_footer_newsletter_inner_content_inputs %}
<div class="form-row input-group">
{% block base_footer_newsletter_inner_content_inputs_select_action %}
<label class="form-label d-none" for="footerNewsletterAction">
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.labelActionSelect"|trans }} {{ "general.required"|trans }}
</label>
<input name="option"
type="hidden"
id="footerNewsletterAction"
value="{{ constant('Shopware\\Storefront\\Controller\\FormController::SUBSCRIBE') }}"/>
{% endblock %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletterButtonNextToField') %}
<div class="footer-newsletter-together{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowTextNewsletterButton') %} show-text-newsletter-button{% endif %}">
{% set emailPlaceholder = "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.labelMail" %}
{% else %}
<div class="footer-newsletter-below-button">
{% set emailPlaceholder = "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.placeholderMail" %}
{% endif %}
{% block base_footer_newsletter_inner_content_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.aboveFooter.newsletter.labelMail',
placeholder: emailPlaceholder
}
%}
{% endblock %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletterButtonNextToField') %}
{% block base_footer_newsletter_inner_content_submit_before %}
<button class="btn btn-primary btn-newsletter w-auto" type="submit">
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowTextNewsletterButton') %}
<span class="btn-newsletter-txt">
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterNewsletterSubmit"|trans }}
</span>
{% endif %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowIconNewsletterButton') %}
{% sw_icon 'envelope' %}
{% endif %}
</button>
{% endblock %}
</div>
{% else %}
</div>
{% endif %}
</div>
{% endblock %}
{% block base_footer_newsletter_inner_content_captcha_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionCaptcha') == "afterEmailAddressField" %}
{% sw_include '@Storefront/storefront/component/captcha/base.html.twig' with { additionalClass : 'col-md-4'} %}
{% endif %}
{% endblock %}
{% block base_footer_newsletter_inner_content_privacy_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionDataProtectionInformation') == "afterEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowDataProtectionInformation') %}
{% sw_include '@TmmsAdditionalNewsletterRegistrationOptions/storefront/additional-newsletter-registration-options-privacy.html.twig' with {
identifierTemplate: "form-privacy-opt-in-footer-newsletter-registration",
showHeadline: config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowDataProtectionInformationHeadline'),
showInput: config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterRequireDataProtectionInformationCheckbox')
} %}
{% endif %}
{% endif %}
{% endblock %}
{% block base_footer_newsletter_inner_content_required_fields_info_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionRequiredFieldsInformation') == "afterEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowRequiredFieldsInformation') %}
<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 base_footer_newsletter_inner_content_submit_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletterButtonNextToField') == false %}
<button class="btn btn-primary btn-newsletter w-auto mb-4" type="submit">
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowTextNewsletterButton') %}
<span class="btn-newsletter-txt">
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterNewsletterSubmit"|trans }}
</span>
{% endif %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowIconNewsletterButton') %}
{% sw_icon 'envelope' %}
{% endif %}
</button>
{% endif %}
{% endblock %}
{% block base_footer_newsletter_inner_content_newslettertext_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionNewsletterText') == "afterEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowNewsletterText') %}
<p>
{% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterTextContentType') == "texteditor") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterFirstNewsletterTextTextEditor"|trans({"%firstnewslettertext%": config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterTextContent')})|raw }}
{% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterNewsletterTextContentType') == "snippet") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterFirstNewsletterText"|trans|raw }}
{% endif %}
</p>
{% endif %}
{% endif %}
{% endblock %}
{% block base_footer_newsletter_inner_content_secondnewslettertext_after %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterPositionSecondNewsletterText') == "afterEmailAddressField" %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterShowSecondNewsletterText') %}
<p>
{% if (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterSecondNewsletterTextContentType') == "texteditor") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterSecondNewsletterTextTextEditor"|trans({"%secondnewslettertext%": config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterSecondNewsletterTextContent')})|raw }}
{% elseif (config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterSecondNewsletterTextContentType') == "snippet") %}
{{ "tmms.additionalnewsletterregistrationoptions.aboveFooter.newsletter.aboveFooterSecondNewsletterText"|trans|raw }}
{% endif %}
</p>
{% endif %}
{% endif %}
{% endblock %}
{% if config('TmmsAdditionalNewsletterRegistrationOptions.config.aboveFooterLeftRightSplitting') %}</div>{% endif %}
</div>
{% block base_footer_newsletter_inner_content_hidden_fields %}
<div class="form-hidden-fields">
{% block base_footer_newsletter_inner_content_csrf %}
{{ sw_csrf(action) }}
{% endblock %}
<input type="submit" class="submit--hidden d-none"/>
</div>
{% endblock %}
</form>
</div>
</div>
{% endblock %}
</div>
</div>
{% endblock %}
{% endif %}
{% endblock %}
{{ parent() }}
{% endblock %}