block.json in Gutenify – Visual Site Builder Blocks & Starter Templates 1.6.5, at core/dist/blocks/post-list/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "gutenify/post-list", |
| 5 | "category": "gutenify", |
| 6 | "title": "Post List", |
| 7 | "version": "2", |
| 8 | "description": "Gutenify Post List.", |
| 9 | "keywords": [ |
| 10 | "gutenify", |
| 11 | "Post List", |
| 12 | "Posts", |
| 13 | "Post" |
| 14 | ], |
| 15 | "attributes": { |
| 16 | "blockClientId": { |
| 17 | "type": "string", |
| 18 | "default": "" |
| 19 | }, |
| 20 | "blockAdvanceOptions": { |
| 21 | "type": "object", |
| 22 | "default": { |
| 23 | "itemBackgroundColor": "#fff", |
| 24 | "itemLinkColor": "", |
| 25 | "itemColor": "", |
| 26 | "innerBlock": { |
| 27 | "boxShadow": { |
| 28 | "color": "#7a7a7a1a", |
| 29 | "horizontal": 0, |
| 30 | "vertical": 0, |
| 31 | "blur": 32, |
| 32 | "spread": 0, |
| 33 | "position": "" |
| 34 | }, |
| 35 | "contentPadding": { |
| 36 | "desktop": { |
| 37 | "top": "30px", |
| 38 | "left": "40px", |
| 39 | "bottom": "30px", |
| 40 | "right": "40px" |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | }, |
| 46 | "postLink": { |
| 47 | "type": "string", |
| 48 | "default": "Read more" |
| 49 | }, |
| 50 | "columns": { |
| 51 | "type": "number", |
| 52 | "default": 2 |
| 53 | }, |
| 54 | "excerptLength": { |
| 55 | "type": "string", |
| 56 | "default": 12 |
| 57 | }, |
| 58 | "displayFeaturedImage": { |
| 59 | "type": "boolean", |
| 60 | "default": true |
| 61 | }, |
| 62 | "displayPostContent": { |
| 63 | "type": "boolean", |
| 64 | "default": true |
| 65 | }, |
| 66 | "displayPostLink": { |
| 67 | "type": "boolean", |
| 68 | "default": true |
| 69 | }, |
| 70 | "displayPostDate": { |
| 71 | "type": "boolean", |
| 72 | "default": true |
| 73 | }, |
| 74 | "displayPostAuthor": { |
| 75 | "type": "boolean", |
| 76 | "default": true |
| 77 | }, |
| 78 | "displayPostCategories": { |
| 79 | "type": "boolean", |
| 80 | "default": true |
| 81 | }, |
| 82 | "query": { |
| 83 | "type": "object", |
| 84 | "default": { |
| 85 | "numberOfItems": 3 |
| 86 | } |
| 87 | }, |
| 88 | "spaceBetween": { |
| 89 | "type": "number", |
| 90 | "default": 30 |
| 91 | }, |
| 92 | "layout": { |
| 93 | "type": "string", |
| 94 | "default": "layout-1" |
| 95 | } |
| 96 | }, |
| 97 | "supports": { |
| 98 | "html": false, |
| 99 | "inserter": false, |
| 100 | "align": [ |
| 101 | "center", |
| 102 | "wide", |
| 103 | "full" |
| 104 | ] |
| 105 | }, |
| 106 | "editorScript": [ |
| 107 | "file:./index.js" |
| 108 | ], |
| 109 | "style": [ |
| 110 | "file:./style-index.css" |
| 111 | ], |
| 112 | "icon": "<svg id='f70ab47f-cb54-43a2-a39d-f0c6a1d88cc7' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M24,5V2.38A2.43,2.43,0,0,0,21.58,0H2.42A2.43,2.43,0,0,0,0,2.38V5S0,5,0,5,0,5,0,5v16.5A2.43,2.43,0,0,0,2.42,24H21.58A2.43,2.43,0,0,0,24,21.53V5s0,0,0,0S24,5,24,5ZM2.42,1H21.58A1.43,1.43,0,0,1,23,2.38V4.5H1V2.38A1.43,1.43,0,0,1,2.42,1ZM21.58,23H2.42A1.43,1.43,0,0,1,1,21.53V5.5H23v16A1.43,1.43,0,0,1,21.58,23Z' fill='#2196f3' /><path d='M8,8.07H4.35a.5.5,0,0,0-.5.5v3.69a.51.51,0,0,0,.5.5H8a.51.51,0,0,0,.5-.5V8.57A.5.5,0,0,0,8,8.07Zm-.5,3.69H4.85V9.07H7.54Z' fill='#2196f3' /><path d='M19.65,8.07H12.33a.5.5,0,1,0,0,1h7.32a.5.5,0,0,0,0-1Z' fill='#2196f3' /><path d='M19.65,11.76H12.33a.5.5,0,0,0-.5.5.5.5,0,0,0,.5.5h7.32a.51.51,0,0,0,.5-.5A.5.5,0,0,0,19.65,11.76Z' fill='#2196f3' /><path d='M8,15.3H4.35a.5.5,0,0,0-.5.5v3.69a.51.51,0,0,0,.5.5H8a.51.51,0,0,0,.5-.5V15.8A.5.5,0,0,0,8,15.3ZM7.54,19H4.85V16.3H7.54Z' fill='#2196f3' /><path d='M19.65,15.3H12.33a.5.5,0,0,0,0,1h7.32a.5.5,0,0,0,0-1Z' fill='#2196f3' /><path d='M19.65,19H12.33a.5.5,0,0,0-.5.5.5.5,0,0,0,.5.5h7.32a.51.51,0,0,0,.5-.5A.5.5,0,0,0,19.65,19Z' fill='#2196f3' /></svg>" |
| 113 | } |