| 1 |
{ |
| 2 |
"$schema": "https://json.schemastore.org/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "givewp/campaign-grid", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Campaign Grid", |
| 7 |
"category": "give", |
| 8 |
"description": "Insert an existing campaign into the page.", |
| 9 |
"supports": { |
| 10 |
"align": [ |
| 11 |
"wide", |
| 12 |
"full", |
| 13 |
"left", |
| 14 |
"center", |
| 15 |
"right" |
| 16 |
] |
| 17 |
}, |
| 18 |
"attributes": { |
| 19 |
"layout": { |
| 20 |
"type": "string", |
| 21 |
"default": "full", |
| 22 |
"enum": [ |
| 23 |
"full", |
| 24 |
"double", |
| 25 |
"triple" |
| 26 |
] |
| 27 |
}, |
| 28 |
"showImage": { |
| 29 |
"type": "boolean", |
| 30 |
"default": true |
| 31 |
}, |
| 32 |
"showDescription": { |
| 33 |
"type": "boolean", |
| 34 |
"default": true |
| 35 |
}, |
| 36 |
"showGoal": { |
| 37 |
"type": "boolean", |
| 38 |
"default": true |
| 39 |
}, |
| 40 |
"sortBy": { |
| 41 |
"type": "string", |
| 42 |
"default": "date", |
| 43 |
"enum": [ |
| 44 |
"date", |
| 45 |
"amount", |
| 46 |
"donations", |
| 47 |
"donors" |
| 48 |
] |
| 49 |
}, |
| 50 |
"orderBy": { |
| 51 |
"type": "string", |
| 52 |
"default": "desc", |
| 53 |
"enum": [ |
| 54 |
"asc", |
| 55 |
"desc" |
| 56 |
] |
| 57 |
}, |
| 58 |
"filterBy": { |
| 59 |
"type": "array", |
| 60 |
"default": [] |
| 61 |
}, |
| 62 |
"perPage": { |
| 63 |
"type": "number", |
| 64 |
"default": "6" |
| 65 |
}, |
| 66 |
"showPagination": { |
| 67 |
"type": "boolean", |
| 68 |
"default": true |
| 69 |
} |
| 70 |
}, |
| 71 |
"example": {}, |
| 72 |
"textdomain": "give", |
| 73 |
"viewScript": "file:../../../../build/campaignGridApp.js", |
| 74 |
"viewStyle": "file:../../../../build/campaignGridApp.css", |
| 75 |
"render": "file:./render.php" |
| 76 |
} |