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