block.json
107 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "awt/child-author-latest-stories", |
| 5 | "version": "1.2.0", |
| 6 | "title": "Latest Stories (Child Author)", |
| 7 | "category": "awt-blocks", |
| 8 | "icon": "welcome-widgets-menus", |
| 9 | "description": "Dynamic block displaying the latest blog posts with a fun design.", |
| 10 | "supports": { |
| 11 | "html": false, |
| 12 | "align": [ |
| 13 | "full", |
| 14 | "wide" |
| 15 | ], |
| 16 | "alignWide": true, |
| 17 | "color": { |
| 18 | "background": false, |
| 19 | "text": false |
| 20 | } |
| 21 | }, |
| 22 | "textdomain": "author-website-templates", |
| 23 | "attributes": { |
| 24 | "postsToShow": { |
| 25 | "type": "number", |
| 26 | "default": 3 |
| 27 | }, |
| 28 | "storiesStyle": { |
| 29 | "type": "string", |
| 30 | "default": "fun" |
| 31 | }, |
| 32 | "order": { |
| 33 | "type": "string", |
| 34 | "default": "desc" |
| 35 | }, |
| 36 | "orderBy": { |
| 37 | "type": "string", |
| 38 | "default": "date" |
| 39 | }, |
| 40 | "sectionTitle": { |
| 41 | "type": "string", |
| 42 | "default": "Latest Adventures" |
| 43 | }, |
| 44 | "readMoreText": { |
| 45 | "type": "string", |
| 46 | "default": "Read Adventure" |
| 47 | }, |
| 48 | "showDate": { |
| 49 | "type": "boolean", |
| 50 | "default": true |
| 51 | }, |
| 52 | "showCategory": { |
| 53 | "type": "boolean", |
| 54 | "default": true |
| 55 | }, |
| 56 | "showExcerpt": { |
| 57 | "type": "boolean", |
| 58 | "default": true |
| 59 | }, |
| 60 | "showReadMore": { |
| 61 | "type": "boolean", |
| 62 | "default": true |
| 63 | }, |
| 64 | "showViewAll": { |
| 65 | "type": "boolean", |
| 66 | "default": true |
| 67 | }, |
| 68 | "viewAllText": { |
| 69 | "type": "string", |
| 70 | "default": "View All Posts →" |
| 71 | }, |
| 72 | "viewAllUrl": { |
| 73 | "type": "string", |
| 74 | "default": "#" |
| 75 | }, |
| 76 | "sectionBgColor": { |
| 77 | "type": "string", |
| 78 | "default": "#FFFDF5" |
| 79 | }, |
| 80 | "cardBgColor": { |
| 81 | "type": "string", |
| 82 | "default": "#ffffff" |
| 83 | }, |
| 84 | "titleColor": { |
| 85 | "type": "string", |
| 86 | "default": "#264653" |
| 87 | }, |
| 88 | "metaColor": { |
| 89 | "type": "string", |
| 90 | "default": "#EF476F" |
| 91 | }, |
| 92 | "readMoreColor": { |
| 93 | "type": "string", |
| 94 | "default": "" |
| 95 | }, |
| 96 | "viewAllColor": { |
| 97 | "type": "string", |
| 98 | "default": "" |
| 99 | }, |
| 100 | "align": { |
| 101 | "type": "string", |
| 102 | "default": "full" |
| 103 | } |
| 104 | }, |
| 105 | "editorScript": "file:./index.js", |
| 106 | "render": "file:./render.php" |
| 107 | } |