block.json
82 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "awt/child-author-blog-list", |
| 5 | "title": "Blog List ( Child Author )", |
| 6 | "category": "awt-blocks", |
| 7 | "icon": "list-view", |
| 8 | "description": "Display a list of blog posts with customizable options", |
| 9 | "editorScript": "file:./index.js", |
| 10 | "keywords": [ |
| 11 | "blog", |
| 12 | "posts", |
| 13 | "list", |
| 14 | "archive" |
| 15 | ], |
| 16 | "supports": { |
| 17 | "html": false, |
| 18 | "color": {}, |
| 19 | "typography": {}, |
| 20 | "spacing": {}, |
| 21 | "align": [ |
| 22 | "full" |
| 23 | ], |
| 24 | "alignWide": true |
| 25 | }, |
| 26 | "attributes": { |
| 27 | "align": { |
| 28 | "type": "string", |
| 29 | "default": "full" |
| 30 | }, |
| 31 | "postsToShow": { |
| 32 | "type": "number", |
| 33 | "default": 6 |
| 34 | }, |
| 35 | "showImage": { |
| 36 | "type": "boolean", |
| 37 | "default": true |
| 38 | }, |
| 39 | "showExcerpt": { |
| 40 | "type": "boolean", |
| 41 | "default": true |
| 42 | }, |
| 43 | "readMoreText": { |
| 44 | "type": "string", |
| 45 | "default": "Read More" |
| 46 | }, |
| 47 | "sectionBgColor": { |
| 48 | "type": "string", |
| 49 | "default": "" |
| 50 | }, |
| 51 | "categoryColor": { |
| 52 | "type": "string", |
| 53 | "default": "#f97316" |
| 54 | }, |
| 55 | "titleHoverColor": { |
| 56 | "type": "string", |
| 57 | "default": "#0ea5e9" |
| 58 | }, |
| 59 | "readMoreColor": { |
| 60 | "type": "string", |
| 61 | "default": "#0ea5e9" |
| 62 | }, |
| 63 | "paginationBgColor": { |
| 64 | "type": "string", |
| 65 | "default": "#ffffff" |
| 66 | }, |
| 67 | "paginationTextColor": { |
| 68 | "type": "string", |
| 69 | "default": "#1e293b" |
| 70 | }, |
| 71 | "paginationHoverBgColor": { |
| 72 | "type": "string", |
| 73 | "default": "#0ea5e9" |
| 74 | }, |
| 75 | "paginationHoverTextColor": { |
| 76 | "type": "string", |
| 77 | "default": "#ffffff" |
| 78 | } |
| 79 | }, |
| 80 | "render": "file:./render.php", |
| 81 | "style": "file:./index.css" |
| 82 | } |