block.json
84 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "awt/author-pro-featured-in", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Featured In [Author Pro]", |
| 7 | "category": "awt-blocks", |
| 8 | "description": "Featured In section with text or image logos", |
| 9 | "keywords": [ |
| 10 | "featured", |
| 11 | "logos", |
| 12 | "author", |
| 13 | "pro" |
| 14 | ], |
| 15 | "textdomain": "author-website-templates", |
| 16 | "editorScript": "file:./index.js", |
| 17 | "render": "file:./render.php", |
| 18 | "attributes": { |
| 19 | "blockId": { |
| 20 | "type": "string", |
| 21 | "default": "" |
| 22 | }, |
| 23 | "sectionTitle": { |
| 24 | "type": "string", |
| 25 | "default": "Featured In" |
| 26 | }, |
| 27 | "align": { |
| 28 | "type": "string", |
| 29 | "default": "full" |
| 30 | }, |
| 31 | "logos": { |
| 32 | "type": "array", |
| 33 | "default": [ |
| 34 | { |
| 35 | "id": 1, |
| 36 | "text": "Forbes", |
| 37 | "url": "", |
| 38 | "link": "#" |
| 39 | }, |
| 40 | { |
| 41 | "id": 2, |
| 42 | "text": "The New York Times", |
| 43 | "url": "", |
| 44 | "link": "#" |
| 45 | }, |
| 46 | { |
| 47 | "id": 3, |
| 48 | "text": "Wall Street Journal", |
| 49 | "url": "", |
| 50 | "link": "#" |
| 51 | }, |
| 52 | { |
| 53 | "id": 4, |
| 54 | "text": "TIME", |
| 55 | "url": "", |
| 56 | "link": "#" |
| 57 | } |
| 58 | ] |
| 59 | }, |
| 60 | "paddingTop": { |
| 61 | "type": "number", |
| 62 | "default": 32 |
| 63 | }, |
| 64 | "paddingBottom": { |
| 65 | "type": "number", |
| 66 | "default": 32 |
| 67 | }, |
| 68 | "bgColor": { |
| 69 | "type": "string", |
| 70 | "default": "bg-primary" |
| 71 | }, |
| 72 | "anchor": { |
| 73 | "type": "string", |
| 74 | "default": "" |
| 75 | } |
| 76 | }, |
| 77 | "supports": { |
| 78 | "html": false, |
| 79 | "anchor": true, |
| 80 | "align": [ |
| 81 | "full" |
| 82 | ] |
| 83 | } |
| 84 | } |