| @@ -2,27 +2,107 @@ | ||
| 2 | 2 | * Block Attributes |
| 3 | 3 | */ |
| 4 | 4 | |
| 5 | 5 | const blockAttributes = { |
| 6 | + formsPerPage:{ | |
| 7 | + type: 'string', | |
| 8 | + default: '12', | |
| 9 | + }, | |
| 10 | + paged:{ | |
| 11 | + type: 'boolean', | |
| 12 | + default: true, | |
| 13 | + }, | |
| 14 | + formIDs: { | |
| 15 | + type: 'array', | |
| 16 | + default: [], | |
| 17 | + }, | |
| 18 | + excludedFormIDs:{ | |
| 19 | + type: 'array', | |
| 20 | + default: [], | |
| 21 | + }, | |
| 22 | + excludeForms:{ | |
| 23 | + type: 'boolean', | |
| 24 | + default: false, | |
| 25 | + }, | |
| 26 | + orderBy:{ | |
| 27 | + type: 'string', | |
| 28 | + default: 'date', | |
| 29 | + }, | |
| 30 | + order:{ | |
| 31 | + type: 'string', | |
| 32 | + default: 'DESC', | |
| 33 | + }, | |
| 34 | + categories:{ | |
| 35 | + type: 'array', | |
| 36 | + default: [], | |
| 37 | + }, | |
| 38 | + tags:{ | |
| 39 | + type: 'array', | |
| 40 | + default: [], | |
| 41 | + }, | |
| 6 | 42 | columns: { |
| 7 | 43 | type: 'string', |
| 8 | - default: '4', | |
| 44 | + default: '1', | |
| 9 | 45 | }, |
| 46 | + imageSize: { | |
| 47 | + type: 'string', | |
| 48 | + default: 'medium', | |
| 49 | + }, | |
| 50 | + imageHeight: { | |
| 51 | + type: 'string', | |
| 52 | + default: 'auto', | |
| 53 | + }, | |
| 54 | + imageHeightOptions: { | |
| 55 | + type: 'string', | |
| 56 | + default: 'auto', | |
| 57 | + }, | |
| 58 | + showTitle: { | |
| 59 | + type: 'boolean', | |
| 60 | + default: true, | |
| 61 | + }, | |
| 10 | 62 | showExcerpt: { |
| 11 | 63 | type: 'boolean', |
| 12 | - default: false, | |
| 64 | + default: true, | |
| 13 | 65 | }, |
| 14 | 66 | showGoal: { |
| 15 | 67 | type: 'boolean', |
| 16 | - default: false, | |
| 68 | + default: true, | |
| 17 | 69 | }, |
| 18 | 70 | showFeaturedImage: { |
| 19 | 71 | type: 'boolean', |
| 20 | - default: false, | |
| 72 | + default: true, | |
| 21 | 73 | }, |
| 74 | + showDonateButton: { | |
| 75 | + type: 'boolean', | |
| 76 | + default: true, | |
| 77 | + }, | |
| 78 | + tagBackgroundColor: { | |
| 79 | + type: 'string', | |
| 80 | + default: '#69b86b', | |
| 81 | + }, | |
| 82 | + tagTextColor: { | |
| 83 | + type: 'string', | |
| 84 | + default: '#ffffff', | |
| 85 | + }, | |
| 86 | + donateButtonTextColor: { | |
| 87 | + type: 'string', | |
| 88 | + default: '#69b86b', | |
| 89 | + }, | |
| 22 | 90 | displayType: { |
| 23 | 91 | type: 'string', |
| 24 | 92 | default: 'redirect', |
| 25 | 93 | }, |
| 94 | + excerptLength: { | |
| 95 | + type: 'integer', | |
| 96 | + default: 16 | |
| 97 | + }, | |
| 98 | + filterOptions: { | |
| 99 | + type: 'string', | |
| 100 | + default: 'tags', | |
| 101 | + }, | |
| 102 | + progressBarColor: { | |
| 103 | + type: 'string', | |
| 104 | + default: '#69b86b' | |
| 105 | + } | |
| 26 | 106 | }; |
| 27 | 107 | |
| 28 | 108 | export default blockAttributes; |