larva modules: footer-newsletter

Available Variants

prototype
footer-newsletter README

footer-newsletter

This module is included in footer and does not have its own JSON configuration file. Refer to the footer readme for details on implementing the footer in a theme.

The form in this pattern uses the o-email-capture-form.minimal configuration.

footer-newsletter Twig The markup file.
<section class="footer-newsletter // {{ footer_newsletter_classes }}">
	{% include "@larva/components/c-title/c-title.twig" with c_title %}
	{% include "@larva/components/c-tagline/c-tagline.twig" with c_tagline %}
	{% include "@larva/objects/o-email-capture-form/o-email-capture-form.twig" with o_email_capture_form %}
	{% if c_tagline_terms %}
		{% include "@larva/components/c-tagline/c-tagline.twig" with c_tagline_terms %}
	{% endif %}
</section>
footer-newsletter JSON The data object for this pattern.
{
	"footer_newsletter_classes": "lrv-u-text-align-center lrv-u-color-white lrv-u-background-color-black lrv-u-flex lrv-u-flex-direction-column lrv-u-align-items-center",
	"c_title": {
		"c_title_classes": "lrv-u-margin-b-025 lrv-u-font-family-primary lrv-u-text-align-center",
		"c_title_tag_text": "",
		"c_title_id_attr": "title-of-a-story",
		"c_title_text": "Stay In The Know",
		"c_title_markup": "",
		"c_title_link_classes": "",
		"c_title_url": false
	},
	"c_tagline": {
		"c_tagline_classes": "lrv-u-font-size-14 u-font-style-italic lrv-u-font-family-basic lrv-u-text-align-center",
		"c_tagline_text": "Sign up for our daily newsletter"
	},
	"c_tagline_terms": {
		"c_tagline_classes": "",
		"c_tagline_text": ""
	},
	"o_email_capture_form": {
		"o_email_capture_form_classes": "",
		"o_email_capture_form_context_name_attr": "FormPost",
		"o_email_capture_form_inner_classes": "lrv-u-flex lrv-u-align-items-center lrv-u-justify-content-center lrv-u-border-b-1 lrv-u-border-color-currentColor",
		"o_email_capture_form_action_url": "",
		"o_email_capture_form_button_text": "Sign up",
		"o_email_capture_form_name_attr": "email-capture-form",
		"o_email_capture_form_success_url": "",
		"c_button": {
			"c_button_classes": "lrv-a-unstyle-button lrv-u-cursor-pointer lrv-u-display-inline-flex lrv-a-icon-after lrv-a-icon-arrow-right lrv-a-icon-invert",
			"c_button_ga_tracking": {},
			"c_button_inner_classes": "lrv-a-screen-reader-only",
			"c_button_rel_attr": "",
			"c_button_screen_reader_text": "Sign Up",
			"c_button_target_attr": "",
			"c_button_text": "Sign Up",
			"c_button_type_attr": "submit",
			"c_button_url": ""
		},
		"c_email_field": {
			"c_email_field_classes": "lrv-u-font-size-14 lrv-u-flex lrv-u-align-items-center",
			"c_email_field_label_classes": "lrv-u-padding-r-050 lrv-u-font-weight-bold lrv-u-whitespace-nowrap",
			"c_email_field_label_text": "Your Email",
			"c_email_field_input_id_attr": "",
			"c_email_field_input_name_attr": "",
			"c_email_field_input_placeholder_attr": "email@example.com",
			"c_email_field_input_classes": "lrv-u-background-color-transparent lrv-u-border-a-0 lrv-u-color-currentColor lrv-u-padding-a-050 lrv-u-font-size-14"
		},
		"o_email_capture_form_hidden_field_items": []
	}
}