block.json
2 years ago
view.asset.php
1 month ago
view.css
1 month ago
view.js
1 month ago
view.rtl.css
1 month ago
block.json
42 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "jetpack/image-compare", |
| 5 | "title": "Image Compare", |
| 6 | "description": "Compare two images with a slider. Works best with images of the same size.", |
| 7 | "keywords": [ |
| 8 | "juxtapose", |
| 9 | "photos", |
| 10 | "pictures", |
| 11 | "side by side", |
| 12 | "slider" |
| 13 | ], |
| 14 | "version": "12.5.0", |
| 15 | "textdomain": "jetpack", |
| 16 | "category": "media", |
| 17 | "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M21 4h-6v1.5h6c.3 0 .5.2.5.5v.4l-3.6 3.5L15 8.1v1.8l2.6 1.7c.1.1.3.1.4.1.2 0 .4-.1.5-.2l3-2.9V18c0 .3-.2.5-.5.5h-6V20h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM1 6v12c0 1.1.9 2 2 2h10.5V4H3c-1.1 0-2 .9-2 2zm11 12.5H3c-.3 0-.5-.2-.5-.5v-1.4L5 14.7l1.5-1.1.1-.1 3 1.9c.1.1.3.1.4.1.2 0 .4-.1.5-.2L12 14v4.5zm0-6.6l-2.1 2L7 12c-.1-.1-.3-.1-.4-.1h-.1c-.1 0-.3.1-.4.1l-1.1.9-2.5 1.8V6c0-.3.2-.5.5-.5h9v6.4z'/></svg>", |
| 18 | "supports": { |
| 19 | "align": [ |
| 20 | "wide", |
| 21 | "full" |
| 22 | ] |
| 23 | }, |
| 24 | "attributes": { |
| 25 | "imageBefore": { |
| 26 | "type": "object", |
| 27 | "default": {} |
| 28 | }, |
| 29 | "imageAfter": { |
| 30 | "type": "object", |
| 31 | "default": {} |
| 32 | }, |
| 33 | "caption": { |
| 34 | "type": "string" |
| 35 | }, |
| 36 | "orientation": { |
| 37 | "type": "string", |
| 38 | "default": "horizontal" |
| 39 | } |
| 40 | }, |
| 41 | "editorScript": "jetpack-blocks-editor" |
| 42 | } |