block.json
4 months ago
index.asset.php
4 months ago
index.js
4 months ago
render.php
4 months ago
style-index-rtl.css
4 months ago
style-index.css
4 months ago
block.json
122 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "awt/author-pro-books", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Other Books [Author Pro]", |
| 7 | "category": "theme", |
| 8 | "icon": "book", |
| 9 | "description": "Display a grid of books or posts dynamically.", |
| 10 | "attributes": { |
| 11 | "blockId": { |
| 12 | "type": "string" |
| 13 | }, |
| 14 | "sectionTitle": { |
| 15 | "type": "string", |
| 16 | "default": "Explore More Stories" |
| 17 | }, |
| 18 | "sectionBadge": { |
| 19 | "type": "string", |
| 20 | "default": "Other Books" |
| 21 | }, |
| 22 | "postType": { |
| 23 | "type": "string", |
| 24 | "default": "book" |
| 25 | }, |
| 26 | "postsToShow": { |
| 27 | "type": "number", |
| 28 | "default": 3 |
| 29 | }, |
| 30 | "order": { |
| 31 | "type": "string", |
| 32 | "default": "desc" |
| 33 | }, |
| 34 | "align": { |
| 35 | "type": "string", |
| 36 | "default": "full" |
| 37 | }, |
| 38 | "orderBy": { |
| 39 | "type": "string", |
| 40 | "default": "date" |
| 41 | }, |
| 42 | "selectedCategory": { |
| 43 | "type": "string", |
| 44 | "default": "" |
| 45 | }, |
| 46 | "includePostIds": { |
| 47 | "type": "string", |
| 48 | "default": "" |
| 49 | }, |
| 50 | "accentColor": { |
| 51 | "type": "string", |
| 52 | "default": "" |
| 53 | }, |
| 54 | "btnColor": { |
| 55 | "type": "string", |
| 56 | "default": "" |
| 57 | }, |
| 58 | "btnHoverColor": { |
| 59 | "type": "string", |
| 60 | "default": "" |
| 61 | }, |
| 62 | "paddingTop": { |
| 63 | "type": "number", |
| 64 | "default": 128 |
| 65 | }, |
| 66 | "paddingBottom": { |
| 67 | "type": "number", |
| 68 | "default": 128 |
| 69 | }, |
| 70 | "buttonText": { |
| 71 | "type": "string", |
| 72 | "default": "Buy on Amazon" |
| 73 | }, |
| 74 | "buttonIconId": { |
| 75 | "type": "number", |
| 76 | "default": 0 |
| 77 | }, |
| 78 | "buttonIconUrl": { |
| 79 | "type": "string", |
| 80 | "default": "" |
| 81 | }, |
| 82 | "btnTextColor": { |
| 83 | "type": "string", |
| 84 | "default": "#ffffff" |
| 85 | }, |
| 86 | "btnHoverTextColor": { |
| 87 | "type": "string", |
| 88 | "default": "#ffffff" |
| 89 | }, |
| 90 | "showViewAllBtn": { |
| 91 | "type": "boolean", |
| 92 | "default": true |
| 93 | }, |
| 94 | "viewAllBtnText": { |
| 95 | "type": "string", |
| 96 | "default": "View All Books" |
| 97 | }, |
| 98 | "viewAllBtnLink": { |
| 99 | "type": "string", |
| 100 | "default": "" |
| 101 | }, |
| 102 | "anchor": { |
| 103 | "type": "string", |
| 104 | "default": "" |
| 105 | } |
| 106 | }, |
| 107 | "supports": { |
| 108 | "html": false, |
| 109 | "anchor": true, |
| 110 | "align": [ |
| 111 | "full" |
| 112 | ], |
| 113 | "spacing": { |
| 114 | "margin": true, |
| 115 | "padding": true, |
| 116 | "__experimentalSkipSerialization": true |
| 117 | } |
| 118 | }, |
| 119 | "textdomain": "author-website-templates", |
| 120 | "editorScript": "file:./index.js", |
| 121 | "render": "file:./render.php" |
| 122 | } |