| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; // Exit if accessed directly |
| 5 |
} |
| 6 |
|
| 7 |
function wpbe_get_total_settings($data) { |
| 8 |
return array( |
| 9 |
'per_page' => array( |
| 10 |
'title' => esc_html__('Default posts count per page', 'bulk-editor'), |
| 11 |
'desc' => esc_html__('How many rows shows per page in tab Posts Editor. Max possible value is 100!', 'bulk-editor'), |
| 12 |
'value' => '', |
| 13 |
'type' => 'number' |
| 14 |
), |
| 15 |
'default_sort_by' => array( |
| 16 |
'title' => esc_html__('Default sort by', 'bulk-editor'), |
| 17 |
'desc' => esc_html__('Select column by which posts sorting is going after plugin page loaded', 'bulk-editor'), |
| 18 |
'value' => '', |
| 19 |
'type' => 'select', |
| 20 |
'select_options' => $data['default_sort_by'] |
| 21 |
), |
| 22 |
'default_sort' => array( |
| 23 |
'title' => esc_html__('Default sort', 'bulk-editor'), |
| 24 |
'desc' => esc_html__('Select sort direction for Default sort', 'bulk-editor'), |
| 25 |
'value' => '', |
| 26 |
'type' => 'select', |
| 27 |
'select_options' => array( |
| 28 |
'desc' => array('title' => 'DESC'), |
| 29 |
'asc' => array('title' => 'ASC') |
| 30 |
) |
| 31 |
), |
| 32 |
'show_admin_bar_menu_btn' => array( |
| 33 |
'title' => esc_html__('Show button in admin bar', 'bulk-editor'), |
| 34 |
'desc' => esc_html__('Show Bulk Editor button in admin bar for quick access to the Posts Editor', 'bulk-editor'), |
| 35 |
'value' => '', |
| 36 |
'type' => 'select', |
| 37 |
'select_options' => array( |
| 38 |
1 => array('title' => esc_html__('Yes', 'bulk-editor')), |
| 39 |
0 => array('title' => esc_html__('No', 'bulk-editor')), |
| 40 |
) |
| 41 |
), |
| 42 |
'show_thumbnail_preview' => array( |
| 43 |
'title' => esc_html__('Show thumbnail preview', 'bulk-editor'), |
| 44 |
'desc' => esc_html__('Show bigger thumbnail preview on mouse over', 'bulk-editor'), |
| 45 |
'value' => '', |
| 46 |
'type' => 'select', |
| 47 |
'select_options' => array( |
| 48 |
1 => array('title' => esc_html__('Yes', 'bulk-editor')), |
| 49 |
0 => array('title' => esc_html__('No', 'bulk-editor')), |
| 50 |
) |
| 51 |
), |
| 52 |
'load_switchers' => array( |
| 53 |
'title' => esc_html__('Load beauty switchers', 'bulk-editor'), |
| 54 |
'desc' => esc_html__('Load beauty switchers instead of checkboxes in the Posts Editor.', 'bulk-editor'), |
| 55 |
'value' => '', |
| 56 |
'type' => 'select', |
| 57 |
'select_options' => array( |
| 58 |
1 => array('title' => esc_html__('Yes', 'bulk-editor')), |
| 59 |
0 => array('title' => esc_html__('No', 'bulk-editor')), |
| 60 |
) |
| 61 |
), |
| 62 |
'use_wp_editor' => array( |
| 63 |
'title' => esc_html__('Use gutenberg', 'bulk-editor'), |
| 64 |
'desc' => esc_html__('Allows to edit content with the gutenberg editor if its enabled for the selected post type', 'bulk-editor'), |
| 65 |
'value' => '', |
| 66 |
'type' => 'select', |
| 67 |
'select_options' => array( |
| 68 |
1 => array('title' => esc_html__('Yes', 'bulk-editor')), |
| 69 |
0 => array('title' => esc_html__('No', 'bulk-editor')), |
| 70 |
) |
| 71 |
), |
| 72 |
'quick_search_fieds' => array( |
| 73 |
'title' => __('Add fields to the quick search', 'bulk-editor'), |
| 74 |
'desc' => __('Adds more fields to quick search fields drop-down on the tools panel. Works only for text fields. Syntax: post_name:Post slug,post_content:Content', 'bulk-editor'), |
| 75 |
'value' => '', |
| 76 |
'type' => 'text' |
| 77 |
), |
| 78 |
'override_switcher_fieds' => array( |
| 79 |
'title' => esc_html__('Override meta checkbox', 'bulk-editor'), |
| 80 |
'desc' => esc_html__('By default, the checkbox works with 1 and 0. If you need to redefine these values for example to "yes" or "true". Syntax: meta_key1:yes,meta_key2:true', 'bulk-editor'), |
| 81 |
'value' => '', |
| 82 |
'type' => 'text' |
| 83 |
), |
| 84 |
); |
| 85 |
} |
| 86 |
|