safeStringInput($_GET['c'], true)); $post_id = intval($this->safeStringInput($_GET['p'], true)); //If post request found, update dates if(isSet($_POST['updateDates'])) { $this->savePostMeta($post_id); } echo '

'.__('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 '

' . $post->post_title . '

'; ?>
: : ' />
getDisplayNames(); foreach($course_meta->getApprovedSubscriptions() as $subscription){ $participantsFound = true; $name = $display_name_order == 1 ? $subscription->first_name.' '.$subscription->last_name : $subscription->last_name.' '.$subscription->first_name; echo ''; echo ''; $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 ''; echo ''; echo ''; } else { echo ''; echo ''; echo ''; } echo ''; echo ''; } //Assignment has no participants if(!$participantsFound) { echo ''; } ?>
'.$name.''.__('Accomplished', lepress_textdomain).' '.__('View', lepress_textdomain).''.($meta_data ? $meta_data['grade'] : '').''.($meta_data && !$meta_data['feedback'] ? __('Grade & Feedback', lepress_textdomain) : __('Change feedback', lepress_textdomain)).''.__('Not accomplished', lepress_textdomain).'  '.__('Send e-mail', lepress_textdomain).''.($comment ? $this->date_i18n_lepress($comment->comment_date_gmt,false, false, true) : '').'
'.__('There is no subscribed students who need to accomplish this assessment.', lepress_textdomain).'
".__('This is somewhat embarrasing, isn\'t it?', lepress_textdomain)."

".__('It seems we can\'t find what you\'re looking for.', lepress_textdomain)."

"; } } else { echo "

".__('This is somewhat embarrasing, isn\'t it?', lepress_textdomain)."

".__('It seems we can\'t find what you\'re looking for.', lepress_textdomain)."

"; } ?>