larva modules: injected-related-content

Available Variants

prototype
injected-related-content README

This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.

injected-related-content Twig The markup file.
<div class="injected-related-content // {{injected_related_content_classes}}" >
	<div class="injected-related-content-inner // {{injected_related_content_inner_classes}}">
		<div class="injected-related-content-primary // {{injected_related_content_primary_classes}}">
			<div class="injected-related-content-heading // {{injected_related_content_heading_classes}}">
				{% include "@larva/components/c-title/c-title.twig" with c_heading %}
			</div>
			{% if c_lazy_image %}
				{% include "@larva/components/c-lazy-image/c-lazy-image.twig" with c_lazy_image %}
			{% endif %}

			{% if c_title %}
				{% include "@larva/components/c-title/c-title.twig" with c_title %}
			{% endif %}

		</div>
		<div class="injected-related-content-secondary // {{injected_related_content_secondary_classes}}">
			{% for item in o_card_items %}
				{% include "@larva/objects/o-card/o-card.twig" with item %}
			{% endfor %}
		</div>
	</div>
</div>

injected-related-content JSON The data object for this pattern.
{
	"injected_related_content_classes": "lrv-u-border-t-1 lrv-u-padding-t-025",
	"injected_related_content_inner_classes": "lrv-u-flex lrv-u-flex-direction-column@desktop-xl-max lrv-u-border-b-1 lrv-u-border-t-1 lrv-u-padding-b-150@desktop-xl lrv-u-padding-t-150",
	"injected_related_content_primary_classes": "lrv-u-padding-b-1@mobile-max lrv-u-padding-b-150 lrv-u-padding-b-00@desktop-xl lrv-u-width-64p@desktop-xl",
	"injected_related_content_heading_classes": "lrv-u-padding-b-00@desktop-xl lrv-u-display-inline-block",
	"injected_related_content_secondary_classes": "lrv-u-padding-l-125@desktop-xl lrv-u-width-36p@desktop-xl lrv-u-flex lrv-u-flex-direction-column lrv-u-justify-content-center",
	"c_heading": {
		"c_title_classes": "lrv-a-font-primary-xxxs lrv-u-font-weight-bold lrv-u-color-black lrv-u-text-transform-uppercase lrv-u-border-b-1 lrv-u-padding-b-050 ",
		"c_title_tag_text": "",
		"c_title_id_attr": "title-of-a-story",
		"c_title_text": "Related",
		"c_title_markup": "",
		"c_title_link_classes": "",
		"c_title_url": false
	},
	"c_title": {
		"c_title_classes": "lrv-a-font-primary-xs lrv-u-color-black lrv-u-padding-t-125",
		"c_title_tag_text": "",
		"c_title_id_attr": "title-of-a-story",
		"c_title_text": "Chronixx Says Some Dancehall Lyrics Are ‘Embarrassing’, Artists Should Stop Calling Him For Features",
		"c_title_markup": "",
		"c_title_link_classes": "lrv-a-font-primary-xs lrv-u-color-black lrv-a-truncate-ellipsis-4line@mobile-max lrv-a-truncate-ellipsis-5line@tablet-desktop-only lrv-a-truncate-ellipsis-3line@desktop-xl",
		"c_title_url": "#"
	},
	"c_lazy_image": {
		"c_lazy_image_classes": "lrv-a-floated-right@tablet lrv-u-width-154@desktop-xl lrv-u-width-177@tablet-and-desktop-only lrv-u-margin-l-125 lrv-u-margin-t-150@mobile-max lrv-u-margin-l-00@mobile-max",
		"c_lazy_image_link_url": false,
		"c_lazy_image_link_classes": "lrv-a-unstyle-link",
		"c_lazy_image_crop_class": "lrv-a-crop-1x1@tablet",
		"c_lazy_image_crop_style_attr": false,
		"c_lazy_image_link_tab_index_attr": false,
		"c_lazy_image_alt_attr": "Lazy loaded image",
		"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
		"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
		"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
		"c_lazy_image_sizes_attr": "auto",
		"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto",
		"c_lazy_image_height_attr": "",
		"c_lazy_image_width_attr": "",
		"c_lazy_image_in_initial_viewport": false,
		"c_lazy_image_decoding_attr": "async"
	},
	"o_card_items": [
		{
			"o_card_classes": "",
			"o_card_tag_text": "div",
			"o_card_link_url": "",
			"o_card_link_classes": "",
			"o_card_image_wrap_classes": "",
			"o_card_content_classes": "",
			"c_lazy_image": false,
			"c_svg": false,
			"c_span": false,
			"c_tagline": false,
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xxxs lrv-u-color-black lrv-u-border-b-1 lrv-u-border-t-1@desktop-xl-max lrv-u-padding-b-1 lrv-u-padding-t-00@desktop-xl lrv-u-padding-t-1 ",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "Chronixx Draws Inspiration From These Capleton Lyrics",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-font-primary-xxxs lrv-u-color-black lrv-a-truncate-ellipsis-3line@desktop-xl lrv-a-truncate-ellipsis-1line@tablet-desktop-only lrv-a-truncate-ellipsis-2line@mobile-max",
				"c_title_url": "#"
			},
			"c_timestamp": false,
			"o_author": false,
			"article_kicker": false,
			"article_kicker_outer_classes": ""
		},
		{
			"o_card_classes": "",
			"o_card_tag_text": "div",
			"o_card_link_url": "",
			"o_card_link_classes": "",
			"o_card_image_wrap_classes": "",
			"o_card_content_classes": "",
			"c_lazy_image": false,
			"c_svg": false,
			"c_span": false,
			"c_tagline": false,
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xxxs lrv-u-color-black lrv-u-padding-b-00@desktop-xl lrv-u-padding-b-1 lrv-u-padding-t-1",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "Chronixx calls for change in new video “Safe N Sound”",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-font-primary-xxxs lrv-u-color-black lrv-a-truncate-ellipsis-3line@desktop-xl lrv-a-truncate-ellipsis-1line@tablet-desktop-only lrv-a-truncate-ellipsis-2line@mobile-max",
				"c_title_url": "#"
			},
			"c_timestamp": false,
			"o_author": false,
			"article_kicker": false,
			"article_kicker_outer_classes": ""
		}
	]
}