post_type, 'normal', 'high' ); } public function metabox( $post_id = 0 ) { return apply_filters( 'lp/metabox/quiz/lists', array( '_lp_duration' => new LP_Meta_Box_Duration_Field( esc_html__( 'Duration', 'learnpress' ), esc_html__( 'Set to 0 for no limit, greater than 0 for a limit.', 'learnpress' ), '0', array( 'default_time' => 'minute', 'custom_attributes' => array( 'min' => '0', 'step' => '1', ), ) ), '_lp_passing_grade' => new LP_Meta_Box_Text_Field( esc_html__( 'Passing Grade(%)', 'learnpress' ), esc_html__( 'The conditions that must be achieved in order to pass the quiz.', 'learnpress' ), '80', array( 'type_input' => 'number', 'custom_attributes' => array( 'min' => '0', 'step' => '1', 'max' => '100', ), 'style' => 'width: 60px;', ) ), '_lp_instant_check' => new LP_Meta_Box_Checkbox_Field( esc_html__( 'Instant Check', 'learnpress' ), esc_html__( 'Allow students to immediately check their answers while doing the quiz.', 'learnpress' ), 'no' ), '_lp_negative_marking' => new LP_Meta_Box_Checkbox_Field( esc_html__( 'Negative Marking', 'learnpress' ), esc_html__( 'For each question that students answer wrongly, the total point is deducted exactly from the question\'s point.', 'learnpress' ), 'no' ), '_lp_minus_skip_questions' => new LP_Meta_Box_Checkbox_Field( esc_html__( 'Minus for skip', 'learnpress' ), esc_html__( 'For each question that students answer skip, the total point is deducted exactly from the question\'s point.', 'learnpress' ), 'no' ), '_lp_retake_count' => new LP_Meta_Box_Text_Field( esc_html__( 'Retake', 'learnpress' ), esc_html__( 'How many times can the user re-take this quiz? Set 0 to disable. Set -1 to infinite.', 'learnpress' ), '', array( 'type_input' => 'number', 'custom_attributes' => array( 'min' => '-1', 'step' => '1', ), 'style' => 'width: 60px;', ) ), '_lp_pagination' => new LP_Meta_Box_Text_Field( esc_html__( 'Pagination', 'learnpress' ), esc_html__( 'The number of displayed questions on each page.', 'learnpress' ), '1', array( 'type_input' => 'number', 'custom_attributes' => array( 'min' => '0', 'step' => '1', 'max' => '100', ), 'style' => 'width: 60px;', ) ), '_lp_review' => new LP_Meta_Box_Checkbox_Field( esc_html__( 'Review', 'learnpress' ), esc_html__( 'Allow students to review this quiz after they finish the quiz.', 'learnpress' ), 'yes' ), '_lp_show_correct_review' => new LP_Meta_Box_Checkbox_Field( esc_html__( 'Show the correct answer', 'learnpress' ), esc_html__( 'Allow students to view the correct answer to the question in reviewing this quiz.', 'learnpress' ), 'yes' ), ), $post_id ); } public function output( $post ) { parent::output( $post ); ?>