block.json
3 years ago
view.asset.php
3 years ago
view.css
4 years ago
view.js
3 years ago
view.rtl.css
4 years ago
block.json
32 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": [ "juxtapose", "photos", "pictures", "side by side", "slider" ], |
| 8 | "version": "12.5.0", |
| 9 | "textdomain": "jetpack", |
| 10 | "category": "media", |
| 11 | "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>", |
| 12 | "supports": { "align": [ "wide", "full" ] }, |
| 13 | "attributes": { |
| 14 | "imageBefore": { |
| 15 | "type": "object", |
| 16 | "default": {} |
| 17 | }, |
| 18 | "imageAfter": { |
| 19 | "type": "object", |
| 20 | "default": {} |
| 21 | }, |
| 22 | "caption": { |
| 23 | "type": "string" |
| 24 | }, |
| 25 | "orientation": { |
| 26 | "type": "string", |
| 27 | "default": "horizontal" |
| 28 | } |
| 29 | }, |
| 30 | "editorScript": "file:../editor.js" |
| 31 | } |
| 32 |