%2$s ', esc_html__( 'Resetting item progress', 'learnpress' ), esc_html__( 'Choose data to reset progress', 'learnpress' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $item_types = learn_press_course_get_support_item_types(); $options_html = sprintf( '', esc_html__( 'All', 'learnpress' ) ); foreach ( $item_types as $type_key => $type_label ) { $options_html .= sprintf( '', esc_attr( $type_key ), esc_html( $type_label ) ); } $html_fields = sprintf( '
', esc_html__( 'Item type', 'learnpress' ), $options_html, esc_html__( 'Item', 'learnpress' ), esc_attr__( 'Search item by title', 'learnpress' ), esc_html__( 'Course\'s Item', 'learnpress' ), esc_attr__( 'Search by title', 'learnpress' ), esc_html__( 'Student', 'learnpress' ), esc_attr__( 'Search by name or email', 'learnpress' ), ); $html_filter_fields = AdminTemplate::html_form_filter( [ 'fields' => $html_fields, 'form_classes' => 'lp-form-filter-reset-item-progress', ] ); $html_items = TemplateAJAX::load_content_via_ajax( [ 'id_url' => 'items-to-reset-progress', 'enableScrollToView' => false, 'paged' => 1, ], [ /* @use AdminCourseTools::render_items_to_reset_progress */ 'class' => AdminCourseTools::class, 'method' => 'render_items_to_reset_progress', ] ); $tabs = [ 'items' => __( 'Items', 'learnpress' ), ]; $section = [ 'wrap-script-template' => '', ]; echo Template::combine_components( $section ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>