| @@ -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; |