'.__('Go back', lepress_textdomain).'
'; //IF active course, proceed $course_meta = new CourseMeta($course_id); if($course_meta->getIsCourse()) { $posts_query = get_posts(array('meta_query' => array(array('key' => '_is-lepress-assignment', 'value' => 1)), 'p' => $post_id, 'category' => $course_id, 'post_status' => 'publish', 'numberposts' => 1)); $post = $posts_query[0]; if($post) { echo ''.$name.' | '; $comment = $this->fetchComment($post->ID, $subscription->email, 'LePressStudent'); $meta_data = get_post_meta($post->ID, '_lepress-student-'.md5($post->ID.$subscription->email), true); if($comment) { echo ''.__('Accomplished', lepress_textdomain).' '.__('View', lepress_textdomain).' | '; echo ''.($meta_data ? $meta_data['grade'] : '').' | '; echo ''.($meta_data && !$meta_data['feedback'] ? __('Grade & Feedback', lepress_textdomain) : __('Change feedback', lepress_textdomain)).' | '; } else { echo ''.__('Not accomplished', lepress_textdomain).' | '; echo ''; echo ' | '; } echo ' | '.__('Send e-mail', lepress_textdomain).' | '; echo ''.($comment ? $this->date_i18n_lepress($comment->comment_date_gmt,false, false, true) : '').' | '; } //Assignment has no participants if(!$participantsFound) { echo '
'.__('There is no subscribed students who need to accomplish this assessment.', lepress_textdomain).' |
".__('It seems we can\'t find what you\'re looking for.', lepress_textdomain)."
"; } } else { echo "".__('It seems we can\'t find what you\'re looking for.', lepress_textdomain)."
"; } ?>