Controller
1 week ago
DataTransferObjects
1 year ago
resources
6 months ago
block.json
1 year ago
render.php
1 week ago
block.json
96 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "givewp/campaign-comments-block", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Campaign Comments", |
| 7 | "category": "give", |
| 8 | "description": "Display all the donor comments associated with a campaign.", |
| 9 | "attributes": { |
| 10 | "blockId": { |
| 11 | "type": "string" |
| 12 | }, |
| 13 | "campaignId": { |
| 14 | "type": "number" |
| 15 | }, |
| 16 | "title": { |
| 17 | "type": "string" |
| 18 | }, |
| 19 | "showAnonymous": { |
| 20 | "type": "boolean", |
| 21 | "default": true |
| 22 | }, |
| 23 | "showAvatar": { |
| 24 | "type": "boolean", |
| 25 | "default": true |
| 26 | }, |
| 27 | "showDate": { |
| 28 | "type": "boolean", |
| 29 | "default": true |
| 30 | }, |
| 31 | "showName": { |
| 32 | "type": "boolean", |
| 33 | "default": true |
| 34 | }, |
| 35 | "commentLength": { |
| 36 | "type": "number", |
| 37 | "default": 200 |
| 38 | }, |
| 39 | "readMoreText": { |
| 40 | "type": "string" |
| 41 | }, |
| 42 | "commentsPerPage": { |
| 43 | "type": "number", |
| 44 | "default": 3 |
| 45 | } |
| 46 | }, |
| 47 | "supports": { |
| 48 | "anchor": true, |
| 49 | "className": true, |
| 50 | "splitting": true, |
| 51 | "__experimentalBorder": { |
| 52 | "color": true, |
| 53 | "radius": true, |
| 54 | "style": true, |
| 55 | "width": true |
| 56 | }, |
| 57 | "color": { |
| 58 | "gradients": true, |
| 59 | "link": true, |
| 60 | "__experimentalDefaultControls": { |
| 61 | "background": true, |
| 62 | "text": true |
| 63 | } |
| 64 | }, |
| 65 | "spacing": { |
| 66 | "margin": true, |
| 67 | "padding": true, |
| 68 | "__experimentalDefaultControls": { |
| 69 | "margin": false, |
| 70 | "padding": false |
| 71 | } |
| 72 | }, |
| 73 | "typography": { |
| 74 | "fontSize": true, |
| 75 | "lineHeight": true, |
| 76 | "__experimentalFontFamily": true, |
| 77 | "__experimentalFontStyle": true, |
| 78 | "__experimentalFontWeight": true, |
| 79 | "__experimentalLetterSpacing": true, |
| 80 | "__experimentalTextTransform": true, |
| 81 | "__experimentalTextDecoration": true, |
| 82 | "__experimentalWritingMode": true, |
| 83 | "__experimentalDefaultControls": { |
| 84 | "fontSize": true |
| 85 | } |
| 86 | } |
| 87 | }, |
| 88 | "example": {}, |
| 89 | "textdomain": "give", |
| 90 | "render": "file:./render.php", |
| 91 | "viewScript": "file:../../../../build/campaignCommentsBlockApp.js", |
| 92 | "editorScript": "file:../../../../build/campaignBlocks.js", |
| 93 | "style": "file:../../../../build/campaignCommentsBlockApp.css", |
| 94 | "editorStyle": "file:../../../../build/assets/dist/css/design-system/foundation.css" |
| 95 | } |
| 96 |