resources
5 months ago
CampaignDonorsBlockViewModel.php
5 months ago
app.tsx
1 year ago
block.json
1 year ago
edit.tsx
1 year ago
index.tsx
1 year ago
render.php
5 months ago
styles.scss
10 months ago
block.json
54 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "givewp/campaign-donors", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Campaign Donors", |
| 7 | "category": "give", |
| 8 | "description": "Display all the donors associated with a campaign.", |
| 9 | "attributes": { |
| 10 | "campaignId": { |
| 11 | "type": "integer" |
| 12 | }, |
| 13 | "showAnonymous": { |
| 14 | "type": "boolean", |
| 15 | "default": true |
| 16 | }, |
| 17 | "showCompanyName": { |
| 18 | "type": "boolean", |
| 19 | "default": true |
| 20 | }, |
| 21 | "showAvatar": { |
| 22 | "type": "boolean", |
| 23 | "default": true |
| 24 | }, |
| 25 | "showButton": { |
| 26 | "type": "boolean", |
| 27 | "default": true |
| 28 | }, |
| 29 | "donateButtonText": { |
| 30 | "type": "string", |
| 31 | "default": "Join the list" |
| 32 | }, |
| 33 | "sortBy": { |
| 34 | "type": "string", |
| 35 | "default": "top-donors" |
| 36 | }, |
| 37 | "donorsPerPage": { |
| 38 | "type": "number", |
| 39 | "default": 5 |
| 40 | }, |
| 41 | "loadMoreButtonText": { |
| 42 | "type": "string", |
| 43 | "default": "Load more" |
| 44 | } |
| 45 | }, |
| 46 | "supports": { |
| 47 | "className": true |
| 48 | }, |
| 49 | "example": {}, |
| 50 | "textdomain": "give", |
| 51 | "render": "file:./render.php", |
| 52 | "style": "file:../../../../build/campaignDonorsBlockApp.css" |
| 53 | } |
| 54 |