'.$course_assignment->title.' | '; echo ''.$this->date_i18n_lepress($course_assignment->start_date).' | '; echo ''.$this->date_i18n_lepress($course_assignment->end_date).' | '; echo ''; if($status) { echo __('Ready', lepress_textdomain).' '.__('View', lepress_textdomain).''; } else { $post_id = $this->subscriptions->getAssignmentStatus($course_assignment->post_id, true); if($post_id) { _e('Draft', lepress_textdomain); } else { _e('Not ready', lepress_textdomain); } } $grade = $this->subscriptions->getGrade($status); $comment = $this->fetchComment($status, false, 'LePressTeacher'); echo ' | '; echo ''.$grade.' '.($grade != "NA" ? ''.__('View feedback', lepress_textdomain).'' : '').' | '; echo ''; if(!$status) { $post_id = $this->subscriptions->getAssignmentStatus($course_assignment->post_id, true); $post = get_post($post_id); if($post && ($post->post_status == "draft" || $post->post_status == "future")) { echo ''.__('Edit draft', lepress_textdomain).''; } else { echo ''.__('Submit work', lepress_textdomain).''; } } else { $post = get_post($status); echo __('Assignment is completed at', lepress_textdomain).' '.$this->date_i18n_lepress($post->post_date_gmt, false, false, true); } echo ' | '; echo '';
foreach($this->subscriptions->getTeachers($course->ID) as $teacher) {
echo ''.__('Send e-mail to', lepress_textdomain).' - '.$teacher->firstname.' '.$teacher->lastname.' '; } echo ' | ';
echo '
".__('There are no assignments in this course.', lepress_textdomain)." |
'.$course_assignment->title.' | '; echo ''; if($status) { echo __('Ready', lepress_textdomain).' '.__('View', lepress_textdomain).''; } else { _e('Not ready', lepress_textdomain); } $grade = $this->subscriptions->getGrade($status); $comment = $this->fetchComment($status, false, 'LePressTeacher'); echo ' | '; echo ''.$grade.' '.($grade != "NA" ? ''.__('View feedback', lepress_textdomain).'' : '').' | '; echo ''; if($comment) { _e('Assignment is completed at', lepress_textdomain); echo ' '.$this->date_i18n_lepress($comment->comment_date_gmt, false, false, true); } echo ' | '; echo '';
foreach($this->subscriptions->getTeachers($course->ID) as $teacher) {
echo ''.__('Send e-mail to', lepress_textdomain).' - '.$teacher->firstname.' '.$teacher->lastname.' '; } echo ' | ';
echo '
".__('There are no archived assignments in this course.', lepress_textdomain)." |