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
92 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "awt/author-pro-hero-book-slider", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Hero Book Slider (Author Pro)", |
| 7 | "category": "theme", |
| 8 | "icon": "book", |
| 9 | "description": "A dynamic hero slider showcasing books.", |
| 10 | "attributes": { |
| 11 | "postCount": { |
| 12 | "type": "number", |
| 13 | "default": 5 |
| 14 | }, |
| 15 | "accentColor": { |
| 16 | "type": "string", |
| 17 | "default": "#ea580c" |
| 18 | }, |
| 19 | "autoplaySpeed": { |
| 20 | "type": "number", |
| 21 | "default": 5000 |
| 22 | }, |
| 23 | "enableAutoplay": { |
| 24 | "type": "boolean", |
| 25 | "default": false |
| 26 | }, |
| 27 | "align": { |
| 28 | "type": "string", |
| 29 | "default": "full" |
| 30 | }, |
| 31 | "titleColor": { |
| 32 | "type": "string" |
| 33 | }, |
| 34 | "priceColor": { |
| 35 | "type": "string" |
| 36 | }, |
| 37 | "excerptColor": { |
| 38 | "type": "string" |
| 39 | }, |
| 40 | "blobColor1": { |
| 41 | "type": "string" |
| 42 | }, |
| 43 | "blobColor2": { |
| 44 | "type": "string" |
| 45 | }, |
| 46 | "featuredTagBg": { |
| 47 | "type": "string" |
| 48 | }, |
| 49 | "featuredTagText": { |
| 50 | "type": "string" |
| 51 | }, |
| 52 | "enableTitleTrim": { |
| 53 | "type": "boolean", |
| 54 | "default": false |
| 55 | }, |
| 56 | "titleTrimLength": { |
| 57 | "type": "number", |
| 58 | "default": 10 |
| 59 | } |
| 60 | }, |
| 61 | "supports": { |
| 62 | "html": false, |
| 63 | "anchor": true, |
| 64 | "align": [ |
| 65 | "full", |
| 66 | "wide" |
| 67 | ], |
| 68 | "color": { |
| 69 | "background": true, |
| 70 | "text": true |
| 71 | }, |
| 72 | "spacing": { |
| 73 | "margin": true, |
| 74 | "padding": true |
| 75 | } |
| 76 | }, |
| 77 | "textdomain": "author-website-templates", |
| 78 | "editorScript": [ |
| 79 | "awt-glide-js", |
| 80 | "file:./view.js", |
| 81 | "file:./index.js" |
| 82 | ], |
| 83 | "viewScript": [ |
| 84 | "awt-glide-js", |
| 85 | "file:./view.js" |
| 86 | ], |
| 87 | "style": [ |
| 88 | "file:./style-index.css", |
| 89 | "awt-glide-css" |
| 90 | ], |
| 91 | "render": "file:./render.php" |
| 92 | } |