$v ) : ?> post_type != ‘sfwd-quiz’ ) ) { if ( ( isset( $v[‘pro_quizid’] ) ) && ( !empty( $v[‘pro_quizid’] ) ) ) { $quiz_post_id = learndash_get_quiz_id_by_pro_quiz_id( intval( $v[‘pro_quizid’] ) ); if ( !empty( $quiz_post_id ) ) { $quiz = get_post( $quiz_post_id ); } } } if ( ( !( $quiz instanceof WP_Post ) ) || ( $quiz->post_type != ‘sfwd-quiz’ ) ) { continue; } $certificateLink = ”; $certificate_threshold = 0; if (!isset($v[‘has_graded’])) $v[‘has_graded’] = false; if ( true === $v[‘has_graded’] && true === LD_QuizPro::quiz_attempt_has_ungraded_question( $v ) ) { $certificateLink = ”; $certificate_threshold = 0; $passstatus = ‘red’; } else { $c = learndash_certificate_details( $v[‘quiz’], $user_id ); if ((isset($c[‘certificateLink’])) && (!empty($c[‘certificateLink’]))) $certificateLink = $c[‘certificateLink’]; if ((isset($c[‘certificate_threshold’])) && (!empty($c[‘certificate_threshold’]))) $certificate_threshold = $c[‘certificate_threshold’]; $passstatus = isset( $v[‘pass’] ) ? ( ( $v[‘pass’] == 1 ) ? ‘green’ : ‘red’ ) : ”; } ?> post_title ) ? $quiz->post_title : @$v[‘quiz_title’]; ?>

ID, $quiz_course_id ) ?>”> ‘. $quiz_course_title .’‘; } } ?> “. $v[‘percentage’] .”%” : ” ?> = ( $certificate_threshold * 100 ) ) ) || ( ( isset( $v[‘count’] ) ) && ( intval($v[‘count’] ) ) && ( isset( $v[‘score’] ) ) && ( intval( $v[‘score’] ) ) && ( ( intval( $v[‘score’] ) / intval( $v[‘count’] ) ) >= ( $certificate_threshold * 100 ) ) ) ) { $certificateLink = add_query_arg( array(‘time’ => $v[‘time’] ), $certificateLink ); ?> – “> ‘ . $post_status_object_label .’, ‘. __(‘Points’, ‘learndash’) .’: ‘ . $graded[‘points_awarded’]; if (current_user_can(‘edit_essays’)) { echo ‘ ‘. __( ‘edit’, ‘learndash’ ) .’‘; } echo ‘ ‘. __( ‘view’, ‘learndash’ ) .’‘; echo ‘ ‘. __( ‘comments’, ‘learndash’ ) .’ ‘. get_comments_number( $graded[‘post_id’] ) .’‘; echo ‘
‘; } } } } ?> , /