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.4.3 */ use TUTOR\Input; use \TUTOR_ASSIGNMENTS\Assignments; if ( ! defined( 'ABSPATH' ) ) { exit; } global $post; global $wpdb; global $next_id; global $assignment_submitted_id; $is_submitted = false; $is_submitting = tutor_utils()->is_assignment_submitting( get_the_ID() ); // Get the comment. $post_id = get_the_ID(); //phpcs:ignore $user_id = get_current_user_id(); $user_data = get_userdata( $user_id ); $assignment_comment = tutor_utils()->get_single_comment_user_post_id( $post_id, $user_id ); $submitted_assignment = tutor_utils()->is_assignment_submitted( get_the_ID() ); if ( false != $assignment_comment ) { $submitted = $assignment_comment->comment_approved; 'submitted' == $submitted ? $is_submitted = true : ''; } // Get the ID of this content and the corresponding course. $course_content_id = get_the_ID(); $course_id = tutor_utils()->get_course_id_by_subcontent( $course_content_id ); // Get total content count. $course_stats = tutor_utils()->get_course_completed_percent( $course_id, 0, true ); /** * Convert assignment time * * @todo move to utils * * @param integer $seconds seconds. * @return string */ function tutor_assignment_convert_seconds( $seconds ) { $dt1 = new DateTime( '@0' ); $dt2 = new DateTime( "@$seconds" ); $diff = $dt1->diff( $dt2 ); $days = $diff->days; $hours = $diff->h; return $days . ' ' . __( 'Days', 'tutor' ) . ', ' . $hours . ' ' . __( 'Hours', 'tutor' ); } $next_prev_content_id = tutor_utils()->get_course_prev_next_contents_by_id( $post_id ); $content = get_the_content(); $s_content = $content; $allow_to_upload = (int) tutor_utils()->get_assignment_option( $post_id, 'upload_files_limit' ); $course_id = tutor_utils()->get_course_id_by( 'lesson', get_the_ID() ); $upload_dir = wp_get_upload_dir(); $upload_baseurl = trailingslashit( $upload_dir['baseurl'] ?? '' ); $upload_basedir = trailingslashit( $upload_dir['basedir'] ?? '' ); ?> $course_id ) ); ?>
get_assignment_option( get_the_ID(), 'time_duration', array( 'time' => '', 'value' => 0, ) ); $total_mark = tutor_utils()->get_assignment_option( get_the_ID(), 'total_mark' ); $pass_mark = tutor_utils()->get_assignment_option( get_the_ID(), 'pass_mark' ); $file_upload_limit = tutor_utils()->get_assignment_option( get_the_ID(), 'upload_file_size_limit' ); global $post; $assignment_created_time = strtotime( $post->post_date_gmt ); $time_duration_in_sec = 0; if ( isset( $time_duration['value'] ) && isset( $time_duration['time'] ) ) { switch ( $time_duration['time'] ) { case 'hours': $time_duration_in_sec = 3600; break; case 'days': $time_duration_in_sec = 86400; break; case 'weeks': $time_duration_in_sec = 7 * 86400; break; default: $time_duration_in_sec = 0; break; } } $time_duration_in_sec = $time_duration_in_sec * (int) $time_duration['value']; $remaining_time = $assignment_created_time + $time_duration_in_sec; $now = time(); $remaining = $now - $remaining_time; ?>
$remaining_time && false == $is_submitted ) { esc_html_e( 'Expired', 'tutor' ); } else { echo esc_html( tutor_assignment_convert_seconds( $remaining ) ); } } else { esc_html_e( 'N\\A', 'tutor' ); } ?>
$remaining_time && false == $is_submitted ) ) : ?>
count( $assignment_attachments ) ) : ?>
get_readable_filesize( get_attached_file( $attachment_id ) ); ?>
$now || 0 == $time_duration['value'] ) ) : ?>
nonce_action, tutor()->nonce, false ); ?> get_assignment_option( get_the_ID(), 'upload_files_limit' ); ?>
text_editor_config(); $args['tinymce'] = array( 'toolbar1' => 'formatselect,bold,italic,underline,forecolor,bullist,numlist,alignleft,aligncenter,alignright,alignjustify,undo,redo', ); $args['editor_height'] = '140'; $editor_args = array( 'content' => isset( $content->comment_content ) ? $content->comment_content : '', 'args' => $args, ); $text_editor_template = tutor()->path . 'templates/global/tutor-text-editor.php'; tutor_load_template_from_custom_path( $text_editor_template, $editor_args ); ?>
name ); ?>
get_readable_filesize( $upload_basedir . $attachment->uploaded_path ) ); ?>
500 ? true : false; ?>
>
next_id ) : ?> comment_ID, 'evaluate_time', true ); $assignment_id = $submitted_assignment->comment_post_ID; $submit_id = $submitted_assignment->comment_ID; $max_mark = tutor_utils()->get_assignment_option( $submitted_assignment->comment_post_ID, 'total_mark' ); $pass_mark = tutor_utils()->get_assignment_option( $submitted_assignment->comment_post_ID, 'pass_mark' ); $given_mark = get_comment_meta( $submitted_assignment->comment_ID, 'assignment_mark', true ); ?>
convert_date_into_wp_timezone( $submitted_assignment->comment_date ) ); ?> = $pass_mark ) : ?>
comment_ID, 'instructor_note', true ); if ( ! empty( $instructor_note ) && $is_reviewed_by_instructor ) : ?>
comment_ID, 'instructor_note', true ) ) ); ?>
$remaining_time ) ) : ?>
path . 'templates/global/alert.php'; if ( file_exists( $alert_template ) ) { tutor_load_template_from_custom_path( $alert_template, array( 'alert_class' => 'tutor-alert tutor-danger', 'message' => __( 'You have missed the submission deadline. Please contact the instructor for more information.', 'tutor_pro' ), 'icon' => ' tutor-icon-circle-times-line', ) ); } ?>
$now || 0 == $time_duration['value'] ) ) : ?>
comment_content ) ) ); ?>
comment_ID, 'uploaded_attachments', true ); if ( $attached_files ) : ?> count( $attached_files ) ) : ?>
array_get( 'name', $attached_file ) ); ?>
: get_readable_filesize( $upload_basedir . $attached_file['uploaded_path'] ) ); ?>
500 ? true : false; ?>
>
next_id ) : ?>
$course_id ) ); ?>