block.json
7 months ago
view.asset.php
1 week ago
view.css
1 month ago
view.js
1 week ago
view.rtl.css
1 month ago
block.json
143 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "jetpack/tiled-gallery", |
| 5 | "title": "Tiled Gallery", |
| 6 | "description": "Display multiple images in an elegantly organized tiled layout.", |
| 7 | "keywords": [ |
| 8 | "columns", |
| 9 | "images", |
| 10 | "photos", |
| 11 | "pictures", |
| 12 | "square", |
| 13 | "circle", |
| 14 | "mosaic" |
| 15 | ], |
| 16 | "version": "12.5.0", |
| 17 | "textdomain": "jetpack", |
| 18 | "category": "media", |
| 19 | "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z'/></svg>", |
| 20 | "supports": { |
| 21 | "align": [ |
| 22 | "center", |
| 23 | "wide", |
| 24 | "full" |
| 25 | ], |
| 26 | "color": { |
| 27 | "gradients": true, |
| 28 | "text": false |
| 29 | }, |
| 30 | "customClassName": false, |
| 31 | "html": false, |
| 32 | "spacing": { |
| 33 | "margin": true, |
| 34 | "padding": true |
| 35 | }, |
| 36 | "__experimentalHideChildBlockControls": true |
| 37 | }, |
| 38 | "providesContext": { |
| 39 | "imageCrop": "imageCrop" |
| 40 | }, |
| 41 | "styles": [ |
| 42 | { |
| 43 | "name": "rectangular", |
| 44 | "label": "Tiled mosaic", |
| 45 | "isDefault": true |
| 46 | }, |
| 47 | { |
| 48 | "name": "circle", |
| 49 | "label": "Circles" |
| 50 | }, |
| 51 | { |
| 52 | "name": "square", |
| 53 | "label": "Square tiles" |
| 54 | }, |
| 55 | { |
| 56 | "name": "columns", |
| 57 | "label": "Tiled columns" |
| 58 | } |
| 59 | ], |
| 60 | "attributes": { |
| 61 | "align": { |
| 62 | "type": "string", |
| 63 | "default": "center" |
| 64 | }, |
| 65 | "className": { |
| 66 | "type": "string", |
| 67 | "default": "is-style-rectangular" |
| 68 | }, |
| 69 | "columns": { |
| 70 | "type": "number" |
| 71 | }, |
| 72 | "columnWidths": { |
| 73 | "type": "array", |
| 74 | "default": [] |
| 75 | }, |
| 76 | "ids": { |
| 77 | "type": "array", |
| 78 | "default": [] |
| 79 | }, |
| 80 | "imageFilter": { |
| 81 | "type": "string" |
| 82 | }, |
| 83 | "images": { |
| 84 | "type": "array", |
| 85 | "default": [], |
| 86 | "source": "query", |
| 87 | "selector": ".tiled-gallery__item", |
| 88 | "query": { |
| 89 | "alt": { |
| 90 | "attribute": "alt", |
| 91 | "default": "", |
| 92 | "selector": "img", |
| 93 | "source": "attribute" |
| 94 | }, |
| 95 | "height": { |
| 96 | "attribute": "data-height", |
| 97 | "type": "number", |
| 98 | "selector": "img", |
| 99 | "source": "attribute" |
| 100 | }, |
| 101 | "id": { |
| 102 | "attribute": "data-id", |
| 103 | "selector": "img", |
| 104 | "source": "attribute" |
| 105 | }, |
| 106 | "link": { |
| 107 | "attribute": "data-link", |
| 108 | "selector": "img", |
| 109 | "source": "attribute" |
| 110 | }, |
| 111 | "customLink": { |
| 112 | "attribute": "href", |
| 113 | "selector": "a", |
| 114 | "source": "attribute" |
| 115 | }, |
| 116 | "url": { |
| 117 | "attribute": "data-url", |
| 118 | "selector": "img", |
| 119 | "source": "attribute" |
| 120 | }, |
| 121 | "width": { |
| 122 | "attribute": "data-width", |
| 123 | "selector": "img", |
| 124 | "source": "attribute", |
| 125 | "type": "number" |
| 126 | } |
| 127 | } |
| 128 | }, |
| 129 | "imageCrop": { |
| 130 | "type": "boolean", |
| 131 | "default": true |
| 132 | }, |
| 133 | "linkTo": { |
| 134 | "default": "none", |
| 135 | "type": "string" |
| 136 | }, |
| 137 | "roundedCorners": { |
| 138 | "type": "integer", |
| 139 | "default": 0 |
| 140 | } |
| 141 | }, |
| 142 | "editorScript": "jetpack-blocks-editor" |
| 143 | } |