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/options.js +28 -8 2.3.2 → 4.17.0 View file →
@@ -1,8 +1,8 @@
1 1 /**
2 2 * WordPress dependencies
3 3 */
4 -const { __ } = wp.i18n;
4 +import {__} from '@wordpress/i18n'
5 5
6 6 /**
7 7 * Options data for various form selects
8 8 */
@@ -9,18 +9,38 @@
9 9 const giveDonorWallOptions = {};
10 10
11 11 // Form Display Styles
12 12 giveDonorWallOptions.columns = [
13 - { value: 'best-fit', label: __( 'Best Fit' ) },
14 - { value: '1', label: '1' },
15 - { value: '2', label: '2' },
16 - { value: '3', label: '3' },
17 - { value: '4', label: '4' },
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')},
18 17 ];
19 18
20 19 // Order
21 20 giveDonorWallOptions.order = [
22 - { value: 'DESC', label: __( 'Newest to Oldest' ) },
23 - { value: 'ASC', label: __( 'Oldest to Newest' ) },
21 + {value: 'DESC', label: __('Descending', 'give')},
22 + {value: 'ASC', label: __('Ascending', 'give')},
24 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 +
25 45
26 46 export default giveDonorWallOptions;