block.json
1 month ago
index.asset.php
1 month ago
index.js
1 month ago
render.php
1 month ago
style-index-rtl.css
1 month ago
style-index.css
1 month ago
view.asset.php
1 month ago
view.js
1 month ago
block.json
123 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "awt/author-pro-book-carousel", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Author Pro Book Carousel", |
| 7 | "category": "theme", |
| 8 | "icon": "book", |
| 9 | "description": "A dynamic carousel showcasing books.", |
| 10 | "attributes": { |
| 11 | "postCount": { |
| 12 | "type": "number", |
| 13 | "default": 10 |
| 14 | }, |
| 15 | "columns": { |
| 16 | "type": "number", |
| 17 | "default": 3 |
| 18 | }, |
| 19 | "gap": { |
| 20 | "type": "number", |
| 21 | "default": 32 |
| 22 | }, |
| 23 | "enableAutoplay": { |
| 24 | "type": "boolean", |
| 25 | "default": false |
| 26 | }, |
| 27 | "autoplaySpeed": { |
| 28 | "type": "number", |
| 29 | "default": 3000 |
| 30 | }, |
| 31 | "enableTitleTrim": { |
| 32 | "type": "boolean", |
| 33 | "default": false |
| 34 | }, |
| 35 | "titleTrimLength": { |
| 36 | "type": "number", |
| 37 | "default": 10 |
| 38 | }, |
| 39 | "sectionBgColor": { |
| 40 | "type": "string" |
| 41 | }, |
| 42 | "cardBgColor": { |
| 43 | "type": "string" |
| 44 | }, |
| 45 | "titleColor": { |
| 46 | "type": "string" |
| 47 | }, |
| 48 | "authorColor": { |
| 49 | "type": "string" |
| 50 | }, |
| 51 | "priceColor": { |
| 52 | "type": "string" |
| 53 | }, |
| 54 | "accentColor": { |
| 55 | "type": "string" |
| 56 | }, |
| 57 | "arrowBgColor": { |
| 58 | "type": "string" |
| 59 | }, |
| 60 | "arrowIconColor": { |
| 61 | "type": "string" |
| 62 | }, |
| 63 | "align": { |
| 64 | "type": "string", |
| 65 | "default": "full" |
| 66 | }, |
| 67 | "sectionTitle": { |
| 68 | "type": "string", |
| 69 | "default": "More Books by Author" |
| 70 | }, |
| 71 | "sectionSubtitle": { |
| 72 | "type": "string", |
| 73 | "default": "Library" |
| 74 | }, |
| 75 | "showSectionTitle": { |
| 76 | "type": "boolean", |
| 77 | "default": true |
| 78 | }, |
| 79 | "viewAllText": { |
| 80 | "type": "string", |
| 81 | "default": "View All Books" |
| 82 | }, |
| 83 | "viewAllLink": { |
| 84 | "type": "string", |
| 85 | "default": "/books" |
| 86 | }, |
| 87 | "showViewAll": { |
| 88 | "type": "boolean", |
| 89 | "default": true |
| 90 | } |
| 91 | }, |
| 92 | "supports": { |
| 93 | "align": [ |
| 94 | "full", |
| 95 | "wide" |
| 96 | ], |
| 97 | "spacing": { |
| 98 | "margin": true, |
| 99 | "padding": true |
| 100 | }, |
| 101 | "anchor": true, |
| 102 | "html": false, |
| 103 | "color": { |
| 104 | "background": true, |
| 105 | "text": true |
| 106 | } |
| 107 | }, |
| 108 | "textdomain": "author-website-templates", |
| 109 | "editorScript": [ |
| 110 | "awt-glide-js", |
| 111 | "file:./view.js", |
| 112 | "file:./index.js" |
| 113 | ], |
| 114 | "viewScript": [ |
| 115 | "awt-glide-js", |
| 116 | "file:./view.js" |
| 117 | ], |
| 118 | "style": [ |
| 119 | "file:./style-index.css", |
| 120 | "awt-glide-css" |
| 121 | ], |
| 122 | "render": "file:./render.php" |
| 123 | } |