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 ) ) :
?>
count( $assignment_attachments ) ) :
?>
get_readable_filesize( get_attached_file( $attachment_id ) );
?>
$now || 0 == $time_duration['value'] ) ) : ?>
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',
)
);
}
?>
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 ) : ?>