attributes.js
61 lines
| 1 | /** |
| 2 | * Block Attributes |
| 3 | */ |
| 4 | |
| 5 | const blockAttributes = { |
| 6 | formsPerPage:{ |
| 7 | type: 'string', |
| 8 | default: '12', |
| 9 | }, |
| 10 | formIDs: { |
| 11 | type: 'string', |
| 12 | default: '', |
| 13 | }, |
| 14 | excludedFormIDs:{ |
| 15 | type: 'string', |
| 16 | default: '', |
| 17 | }, |
| 18 | orderBy:{ |
| 19 | type: 'string', |
| 20 | default: 'date', |
| 21 | }, |
| 22 | order:{ |
| 23 | type: 'string', |
| 24 | default: 'DESC', |
| 25 | }, |
| 26 | categories:{ |
| 27 | type: 'string', |
| 28 | default: '', |
| 29 | }, |
| 30 | tags:{ |
| 31 | type: 'string', |
| 32 | default: '', |
| 33 | }, |
| 34 | columns: { |
| 35 | type: 'string', |
| 36 | default: 'best-fit', |
| 37 | }, |
| 38 | showTitle: { |
| 39 | type: 'boolean', |
| 40 | default: true, |
| 41 | }, |
| 42 | showExcerpt: { |
| 43 | type: 'boolean', |
| 44 | default: true, |
| 45 | }, |
| 46 | showGoal: { |
| 47 | type: 'boolean', |
| 48 | default: true, |
| 49 | }, |
| 50 | showFeaturedImage: { |
| 51 | type: 'boolean', |
| 52 | default: true, |
| 53 | }, |
| 54 | displayType: { |
| 55 | type: 'string', |
| 56 | default: 'redirect', |
| 57 | }, |
| 58 | }; |
| 59 | |
| 60 | export default blockAttributes; |
| 61 |