Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @link https://themeum.com * @since 1.0.0 */ // Data variable contains $attempt_list, $context. extract( $data ); //phpcs:ignore WordPress.PHP.DontExtract.extract_extract $page_key = 'attempt-table'; $table_columns = include __DIR__ . '/contexts.php'; $enabled_hide_quiz_details = tutor_utils()->get_option( 'hide_quiz_details' ); if ( 'course-single-previous-attempts' == $context && is_array( $attempt_list ) && count( $attempt_list ) ) { // Provide the attempt data from the first attempt. // For now now attempt specific data is shown, that's why no problem if we take meta data from any attempt. $attempt_data = $attempt_list[0]; include __DIR__ . '/header.php'; } ?>
$column ) : ?> course_id : 0; $earned_percentage = ( $attempt->earned_marks > 0 && $attempt->total_marks > 0 ) ? ( number_format( ( $attempt->earned_marks * 100 ) / $attempt->total_marks ) ) : 0; $answers = isset( $answers_array[ $attempt->attempt_id ] ) ? $answers_array[ $attempt->attempt_id ] : array(); $attempt_info = @unserialize( $attempt->attempt_info ); $attempt_info = ! is_array( $attempt_info ) ? array() : $attempt_info; $passing_grade = isset( $attempt_info['passing_grade'] ) ? (int) $attempt_info['passing_grade'] : 0; $ans_array = is_array( $answers ) ? $answers : array(); $has_pending = count( array_filter( $ans_array, function( $ans ) { return null === $ans->is_correct; } ) ); $correct = 0; $incorrect = 0; $attempt_id = $attempt->attempt_id; if ( is_array( $answers ) && count( $answers ) > 0 ) { foreach ( $answers as $answer ) { if ( (bool) $answer->is_correct ) { $correct++; } elseif ( ! ( null === $answer->is_correct ) ) { $incorrect++; } } } ?> $column ) : ?>
attempt_ended_at ) ) ); ?>
attempt_ended_at ) ) ); ?>
quiz_id ) ); } else { // For frontend. echo esc_html( get_the_title( $attempt->quiz_id ) ); ?>
course_id ) ); ?>
user_id ); $user_name = $attempt_user ? $attempt_user->display_name : ''; ?> display_name ) ? $attempt->display_name : $user_name ); ?>
course_id ) ); ?> total_marks ) ? round( $attempt->total_marks ) : '0' ); ?> earned_marks ) ? round( $attempt->earned_marks ) . ' (' . $earned_percentage . '%)' : '0 (0%)' ); ?> ' . esc_html__( 'Pending', 'tutor' ) . ''; } else { echo $earned_percentage >= $passing_grade ? '' . esc_html__( 'Pass', 'tutor' ) . '' : '' . esc_html__( 'Fail', 'tutor' ) . ''; } ?> $attempt->attempt_id ), tutor()->current_url ); $style = ''; ?>
get_current_page_slug(); if ( ! is_admin() && $course_id && ( tutor_utils()->is_instructor_of_this_course( get_current_user_id(), $course_id ) || current_user_can( 'administrator' ) ) ) : ?>
tutor_empty_state( tutor_utils()->not_found_text() ); ?> path . 'views/elements/common-confirm-popup.php', array( 'message' => __( 'Would you like to delete Quiz Attempt permanently? We suggest you proceed with caution.', 'tutor' ), ) );