larva modules: post-content-image

Available Variants

prototype
Lazy loaded image
Protest art hangs at Hong Kong International Airport. Courtesty Wong Ka Ying
post-content-image README

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

post-content-image Twig The markup file.
<div class="post-content-image // {{ post_content_image_classes }} {{ post_content_image_animation_class }}">
	{% include "@larva/objects/o-figure/o-figure.twig" with o_figure %}
</div>
post-content-image JSON The data object for this pattern.
{
	"post_content_image_classes": "",
	"o_figure": {
		"c_figcaption": {
			"c_figcaption_classes": "lrv-u-font-size-12 lrv-u-flex lrv-u-flex-direction-column lrv-u-padding-tb-025",
			"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
			"c_figcaption_caption_classes": "lrv-u-font-size-14@desktop",
			"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
			"c_figcaption_credit_text_markup": "",
			"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey",
			"c_figcaption_inner": false,
			"c_figcaption_inner_classes": ""
		},
		"c_lazy_image": {
			"c_lazy_image_classes": "",
			"c_lazy_image_link_url": "",
			"c_lazy_image_link_classes": "lrv-a-unstyle-link",
			"c_lazy_image_crop_class": "lrv-a-crop-16x9",
			"c_lazy_image_crop_style_attr": "",
			"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_figure_link_tabindex_attr": "",
		"o_figure_link_target_attr": "_self",
		"o_figure_link_url": false,
		"o_figure_classes": "",
		"o_figure_link_classes": "lrv-a-unstyle-link ",
		"o_figure_figcaption_outer": false,
		"o_figure_figcaption_outer_classes": ""
	}
}