model() ->wpTermTaxonomy() ->ofCourseCategory() ->with('term') ->where('count', '>', 0) ->get(); $aelms_show_category_filter = $settings['course_list_category_show_category_filter'] === 'yes'; $aelms_show_category_label = $settings['course_list_category_show_category_label'] === 'yes'; $aelms_default_open = $settings['course_list_category_default_open'] === 'yes'; $aelms_category_label_tag = $settings['course_list_category_label_tag'] ?: 'h3'; $aelms_category_label = $settings['course_list_category_label'] ?: __('Filter by Category', 'acadlix-addon-for-elementor'); // From acadlix settings $aelms_enable_course_filters = acadlix()->helper()->acadlix_get_option('acadlix_enable_course_filters') === 'yes'; ?>
' . esc_html($aelms_category_label) . ' ', esc_attr($aelms_category_label_tag) ); } ?>
term_id, $aelms_request_taxonomy_categories) ? 'checked' : ''; ?>>