block.json
134 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "awt/child-author-book-list", |
| 5 | "title": "Book List ( Child Author )", |
| 6 | "category": "awt-blocks", |
| 7 | "icon": "book", |
| 8 | "description": "Display a list of books with AJAX load more functionality", |
| 9 | "editorScript": "file:./index.js", |
| 10 | "keywords": [ |
| 11 | "books", |
| 12 | "list", |
| 13 | "ajax", |
| 14 | "load more" |
| 15 | ], |
| 16 | "supports": { |
| 17 | "html": false, |
| 18 | "color": false, |
| 19 | "typography": false, |
| 20 | "spacing": false, |
| 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": 5 |
| 34 | }, |
| 35 | "categories": { |
| 36 | "type": "string", |
| 37 | "default": "" |
| 38 | }, |
| 39 | "showLoadMore": { |
| 40 | "type": "boolean", |
| 41 | "default": true |
| 42 | }, |
| 43 | "loadMoreText": { |
| 44 | "type": "string", |
| 45 | "default": "Load More Books" |
| 46 | }, |
| 47 | "blockId": { |
| 48 | "type": "string", |
| 49 | "default": "" |
| 50 | }, |
| 51 | "bookListStyle": { |
| 52 | "type": "string", |
| 53 | "default": "fun" |
| 54 | }, |
| 55 | "showCategory": { |
| 56 | "type": "boolean", |
| 57 | "default": true |
| 58 | }, |
| 59 | "showDescription": { |
| 60 | "type": "boolean", |
| 61 | "default": true |
| 62 | }, |
| 63 | "showBuyBtn": { |
| 64 | "type": "boolean", |
| 65 | "default": true |
| 66 | }, |
| 67 | "showDetailsBtn": { |
| 68 | "type": "boolean", |
| 69 | "default": true |
| 70 | }, |
| 71 | "descSource": { |
| 72 | "type": "string", |
| 73 | "default": "excerpt" |
| 74 | }, |
| 75 | "titleColor": { |
| 76 | "type": "string" |
| 77 | }, |
| 78 | "descColor": { |
| 79 | "type": "string" |
| 80 | }, |
| 81 | "catColor": { |
| 82 | "type": "string" |
| 83 | }, |
| 84 | "btnBg": { |
| 85 | "type": "string" |
| 86 | }, |
| 87 | "btnText": { |
| 88 | "type": "string" |
| 89 | }, |
| 90 | "btnBorder": { |
| 91 | "type": "string" |
| 92 | }, |
| 93 | "btnHoverBg": { |
| 94 | "type": "string" |
| 95 | }, |
| 96 | "btnHoverText": { |
| 97 | "type": "string" |
| 98 | }, |
| 99 | "btnHoverBorder": { |
| 100 | "type": "string" |
| 101 | }, |
| 102 | "viewBtnBg": { |
| 103 | "type": "string" |
| 104 | }, |
| 105 | "viewBtnText": { |
| 106 | "type": "string" |
| 107 | }, |
| 108 | "viewBtnBorder": { |
| 109 | "type": "string" |
| 110 | }, |
| 111 | "viewBtnHoverBg": { |
| 112 | "type": "string" |
| 113 | }, |
| 114 | "viewBtnHoverText": { |
| 115 | "type": "string" |
| 116 | }, |
| 117 | "viewBtnHoverBorder": { |
| 118 | "type": "string" |
| 119 | }, |
| 120 | "loadMoreBtnBg": { |
| 121 | "type": "string" |
| 122 | }, |
| 123 | "loadMoreBtnText": { |
| 124 | "type": "string" |
| 125 | }, |
| 126 | "loadMoreBtnHoverBg": { |
| 127 | "type": "string" |
| 128 | }, |
| 129 | "loadMoreBtnHoverText": { |
| 130 | "type": "string" |
| 131 | } |
| 132 | }, |
| 133 | "render": "file:./render.php" |
| 134 | } |