PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / blocks / donation-form-grid / data / attributes.js

attributes.js in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at blocks/donation-form-grid/data/attributes.js

109 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Block Attributes
3 */
4
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 },
42 columns: {
43 type: 'string',
44 default: '1',
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 },
62 showExcerpt: {
63 type: 'boolean',
64 default: true,
65 },
66 showGoal: {
67 type: 'boolean',
68 default: true,
69 },
70 showFeaturedImage: {
71 type: 'boolean',
72 default: true,
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 },
90 displayType: {
91 type: 'string',
92 default: 'redirect',
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 }
106 };
107
108 export default blockAttributes;
109