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 / donor-wall / data / options.js

options.js in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at blocks/donor-wall/data/options.js

47 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 import {__} from '@wordpress/i18n'
5
6 /**
7 * Options data for various form selects
8 */
9 const giveDonorWallOptions = {};
10
11 // Form Display Styles
12 giveDonorWallOptions.columns = [
13 {value: '1', label: __('Full width', 'give')},
14 {value: '2', label: __('Double', 'give')},
15 {value: '3', label: __('Triple', 'give')},
16 {value: '4', label: __('Max (4)', 'give')},
17 ];
18
19 // Order
20 giveDonorWallOptions.order = [
21 {value: 'DESC', label: __('Descending', 'give')},
22 {value: 'ASC', label: __('Ascending', 'give')},
23 ];
24
25 // Order
26 giveDonorWallOptions.orderBy = [
27 {value: 'donation_amount', label: __('Donation Amount', 'give')},
28 {value: 'post_date', label: __('Date Created', 'give')},
29 ];
30
31 //Toggle Switch
32 giveDonorWallOptions.toggleOptions = [
33 {value: 'donorInfo', label: __('Donor Info', 'give')},
34 {value: 'wallAttributes', label: __('Wall Attributes', 'give')},
35 ];
36
37 //Filter
38 giveDonorWallOptions.filter = [
39 {value: 'ids', label: __('Donor ID', 'give')},
40 {value: 'formID', label: __('Form ID', 'give')},
41 {value: 'categories', label: __('Categories', 'give')},
42 {value: 'tags', label: __('Tags', 'give')},
43 ];
44
45
46 export default giveDonorWallOptions;
47