block.json
1 month ago
index.asset.php
1 month ago
index.js
1 month ago
render.php
1 month ago
view.asset.php
1 month ago
view.js
1 month ago
block.json
71 lines
| 1 | { |
| 2 | "apiVersion": 3, |
| 3 | "name": "awt/child-author-reviews", |
| 4 | "version": "0.1.0", |
| 5 | "title": "Reviews Section (Child Author)", |
| 6 | "category": "awt-blocks", |
| 7 | "icon": "star-filled", |
| 8 | "description": "Display book reviews dynamically from the Book Reviews CPT.", |
| 9 | "keywords": [ |
| 10 | "reviews", |
| 11 | "testimonials", |
| 12 | "books" |
| 13 | ], |
| 14 | "supports": { |
| 15 | "html": false, |
| 16 | "align": [ |
| 17 | "wide", |
| 18 | "full" |
| 19 | ] |
| 20 | }, |
| 21 | "textdomain": "author-website-templates", |
| 22 | "attributes": { |
| 23 | "align": { |
| 24 | "type": "string", |
| 25 | "default": "full" |
| 26 | }, |
| 27 | "reviewStyle": { |
| 28 | "type": "string", |
| 29 | "default": "fun" |
| 30 | }, |
| 31 | "postsToShow": { |
| 32 | "type": "number", |
| 33 | "default": 3 |
| 34 | }, |
| 35 | "selectedBookId": { |
| 36 | "type": "string", |
| 37 | "default": "" |
| 38 | }, |
| 39 | "heading": { |
| 40 | "type": "string", |
| 41 | "default": "Happy Readers!" |
| 42 | }, |
| 43 | "showCurve": { |
| 44 | "type": "boolean", |
| 45 | "default": true |
| 46 | }, |
| 47 | "curveColor": { |
| 48 | "type": "string", |
| 49 | "default": "#FFFDF5" |
| 50 | }, |
| 51 | "sectionBgColor": { |
| 52 | "type": "string" |
| 53 | }, |
| 54 | "textColor": { |
| 55 | "type": "string" |
| 56 | }, |
| 57 | "cardBgColor": { |
| 58 | "type": "string" |
| 59 | }, |
| 60 | "starColor": { |
| 61 | "type": "string" |
| 62 | } |
| 63 | }, |
| 64 | "usesContext": [ |
| 65 | "postId", |
| 66 | "postType" |
| 67 | ], |
| 68 | "editorScript": "file:./index.js", |
| 69 | "viewScript": "file:./view.js", |
| 70 | "render": "file:./render.php" |
| 71 | } |