JezK
Edit File: block.json
{ "name": "coblocks/media-card", "category": "layout", "attributes": { "mediaPosition": { "type": "string", "default": "left" }, "mediaAlt": { "type": "string", "source": "attribute", "selector": "figure img", "attribute": "alt", "default": "" }, "mediaId": { "type": "number" }, "mediaUrl": { "type": "string", "source": "attribute", "selector": "div div figure video, div div figure img", "attribute": "src" }, "mediaType": { "type": "string" }, "mediaWidth": { "type": "number", "default": 55 }, "align": { "type": "string", "default": "wide" }, "maxWidth": { "type": "number" }, "hasImgShadow": { "type": "boolean", "default": false }, "hasCardShadow": { "type": "boolean", "default": false } }, "title": "Media Card", "textdomain": "coblocks", "editorScript": ["coblocks-7"], "description": "Add an image or video with an offset card side-by-side." }