options.js
33 lines
| 1 | /** |
| 2 | * WordPress dependencies |
| 3 | */ |
| 4 | const { __ } = wp.i18n; |
| 5 | |
| 6 | /** |
| 7 | * Options data for various form selects |
| 8 | */ |
| 9 | const giveDonorWallOptions = {}; |
| 10 | |
| 11 | // Form Display Styles |
| 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' }, |
| 18 | ]; |
| 19 | |
| 20 | // Order |
| 21 | giveDonorWallOptions.order = [ |
| 22 | { value: 'DESC', label: __( 'Descending' ) }, |
| 23 | { value: 'ASC', label: __( 'Ascending' ) }, |
| 24 | ]; |
| 25 | |
| 26 | // Order |
| 27 | giveDonorWallOptions.orderBy = [ |
| 28 | { value: 'donation_amount', label: __( 'Donation Amount' ) }, |
| 29 | { value: 'post_date', label: __( 'Date Created' ) }, |
| 30 | ]; |
| 31 | |
| 32 | export default giveDonorWallOptions; |
| 33 |