| 1 |
<?php |
| 2 |
/** |
| 3 |
* Fields config widget Course Filter. |
| 4 |
*/ |
| 5 |
return apply_filters( |
| 6 |
'learn-press/widget/course-filter/settings', |
| 7 |
array( |
| 8 |
'title' => array( |
| 9 |
'label' => esc_html__( 'Title', 'learnpress' ), |
| 10 |
'type' => 'text', |
| 11 |
'std' => esc_html__( 'Course Filter', 'learnpress' ), |
| 12 |
), |
| 13 |
'number_level_category' => array( |
| 14 |
'label' => __( 'Level of category to display on Frontend', 'learnpress' ), |
| 15 |
'type' => 'number', |
| 16 |
'std' => 2, |
| 17 |
'min' => 1, |
| 18 |
), |
| 19 |
'class_list_courses_target' => array( |
| 20 |
'label' => __( 'Class of list courses want to filter', 'learnpress' ), |
| 21 |
'type' => 'text', |
| 22 |
'std' => '.lp-list-courses-default', |
| 23 |
), |
| 24 |
'show_in_rest' => array( |
| 25 |
'label' => __( 'Load widget via REST', 'learnpress' ), |
| 26 |
'type' => 'checkbox', |
| 27 |
'std' => 1, |
| 28 |
), |
| 29 |
'hide_count_zero' => array( |
| 30 |
'label' => __( 'Hide field has count is zero', 'learnpress' ), |
| 31 |
'type' => 'checkbox', |
| 32 |
'std' => 1, |
| 33 |
), |
| 34 |
'search_suggestion' => array( |
| 35 |
'label' => __( 'Enable Keyword Search Suggestion', 'learnpress' ), |
| 36 |
'type' => 'checkbox', |
| 37 |
'std' => 1, |
| 38 |
), |
| 39 |
'fields_order' => array( |
| 40 |
'label' => '', |
| 41 |
'type' => 'hidden', |
| 42 |
), |
| 43 |
'fields' => array( |
| 44 |
'label' => __( 'Fields', 'learnpress' ), |
| 45 |
'type' => 'sortable-checkbox', |
| 46 |
'options' => array( |
| 47 |
'search' => array( |
| 48 |
'id' => 'search', |
| 49 |
'label' => esc_html__( 'Keyword', 'learnpress' ), |
| 50 |
), |
| 51 |
'price' => array( |
| 52 |
'id' => 'price', |
| 53 |
'label' => esc_html__( 'Price', 'learnpress' ), |
| 54 |
), |
| 55 |
'category' => array( |
| 56 |
'id' => 'category', |
| 57 |
'label' => esc_html__( 'Course Category', 'learnpress' ), |
| 58 |
), |
| 59 |
'tag' => array( |
| 60 |
'id' => 'tag', |
| 61 |
'label' => esc_html__( 'Course Tag', 'learnpress' ), |
| 62 |
), |
| 63 |
'author' => array( |
| 64 |
'id' => 'author', |
| 65 |
'label' => esc_html__( 'Author', 'learnpress' ), |
| 66 |
), |
| 67 |
'level' => array( |
| 68 |
'id' => 'level', |
| 69 |
'label' => esc_html__( 'Level', 'learnpress' ), |
| 70 |
), |
| 71 |
'type' => array( |
| 72 |
'id' => 'type', |
| 73 |
'label' => esc_html__( 'Type (Online/Offline)', 'learnpress' ), |
| 74 |
), |
| 75 |
'btn_submit' => array( |
| 76 |
'id' => 'btn_submit', |
| 77 |
'label' => esc_html__( 'Button Submit', 'learnpress' ), |
| 78 |
), |
| 79 |
'btn_reset' => array( |
| 80 |
'id' => 'level', |
| 81 |
'label' => esc_html__( 'Button Reset', 'learnpress' ), |
| 82 |
), |
| 83 |
), |
| 84 |
'std' => [ |
| 85 |
'search', |
| 86 |
'price', |
| 87 |
'category', |
| 88 |
'tag', |
| 89 |
'author', |
| 90 |
'level', |
| 91 |
'type', |
| 92 |
'btn_submit', |
| 93 |
'btn_reset', |
| 94 |
], |
| 95 |
), |
| 96 |
) |
| 97 |
); |
| 98 |
|