PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 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 All 256 releases
← All changes | blocks/donor-wall/data/attributes.js +110 -25 2.3.0 → 4.17.0 View file →
@@ -1,32 +1,117 @@
1 1 /**
2 + * WordPress dependencies
3 + */
4 +import {__} from '@wordpress/i18n'
5 +
6 +/**
2 7 * Block Attributes
3 -*/
8 + */
4 9
5 10 const blockAttributes = {
6 - columns: {
7 - type: 'string',
8 - default: '2',
9 - },
10 - showAvatar: {
11 - type: 'boolean',
12 - default: true,
13 - },
14 - showName: {
15 - type: 'boolean',
16 - default: true,
17 - },
18 - showTotal: {
19 - type: 'boolean',
20 - default: true,
21 - },
22 - showDate: {
23 - type: 'boolean',
24 - default: true,
25 - },
26 - showComments: {
27 - type: 'boolean',
28 - default: true,
29 - },
11 + donorsPerPage: {
12 + type: 'string',
13 + default: '12',
14 + },
15 + formID: {
16 + type: 'array',
17 + default: [],
18 + },
19 + ids: {
20 + type: 'array',
21 + default: [],
22 + },
23 + categories: {
24 + type: 'array',
25 + default: [],
26 + },
27 + tags: {
28 + type: 'string',
29 + default: [],
30 + },
31 + orderBy: {
32 + type: 'string',
33 + default: 'post_date',
34 + },
35 + order: {
36 + type: 'string',
37 + default: 'DESC',
38 + },
39 + paged: {
40 + type: 'string',
41 + default: '1',
42 + },
43 + columns: {
44 + type: 'string',
45 + default: '3',
46 + },
47 + showAvatar: {
48 + type: 'boolean',
49 + default: true,
50 + },
51 + showName: {
52 + type: 'boolean',
53 + default: true,
54 + },
55 + showCompanyName: {
56 + type: 'boolean',
57 + default: false,
58 + },
59 + showForm: {
60 + type: 'boolean',
61 + default: true,
62 + },
63 + showTotal: {
64 + type: 'boolean',
65 + default: true,
66 + },
67 + showComments: {
68 + type: 'boolean',
69 + default: true,
70 + },
71 + showTributes: {
72 + type: 'boolean',
73 + default: true,
74 + },
75 + showAnonymous: {
76 + type: 'boolean',
77 + default: true,
78 + },
79 + onlyComments: {
80 + type: 'boolean',
81 + default: false,
82 + },
83 + commentLength: {
84 + type: 'string',
85 + default: '80',
86 + },
87 + readMoreText: {
88 + type: 'string',
89 + default: __('Read more', 'give'),
90 + },
91 + loadMoreText: {
92 + type: 'string',
93 + default: __('Load more', 'give'),
94 + },
95 + avatarSize: {
96 + type: 'string',
97 + default: '75',
98 + },
99 + toggleOptions: {
100 + type: 'string',
101 + default: 'donorInfo',
102 + },
103 + filterOptions: {
104 + type: 'string',
105 + default: 'ids',
106 + },
107 + color: {
108 + type: 'string',
109 + default: '#219653',
110 + },
111 + showTimestamp: {
112 + type: 'boolean',
113 + default: true,
114 + },
30 115 };
31 116
32 117 export default blockAttributes;