subscriptions->getApproved() as $course) { $subscribed_to_course = true; $assignments_found = false; echo '

' . $course->course_name . '

'; ?> subscriptions->getAssignments($course) as $course_assignment) { $assignments_found = true; $status = $this->subscriptions->getAssignmentStatus($course_assignment->post_id); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } if(!$assignments_found) { echo ""; } ?>
'.$course_assignment->title.''.$this->date_i18n_lepress($course_assignment->start_date).''.$this->date_i18n_lepress($course_assignment->end_date).''; 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 ''.$grade.' '.($grade != "NA" ? ''.__('View feedback', lepress_textdomain).'' : '').''; 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 ''; foreach($this->subscriptions->getTeachers($course->ID) as $teacher) { echo ''.__('Send e-mail to', lepress_textdomain).' - '.$teacher->firstname.' '.$teacher->lastname.'
'; } echo '
".__('There are no assignments in this course.', lepress_textdomain)."
".__('Subscribe to course', lepress_textdomain).""; } ?>

subscriptions->getArchived() as $course) { $archived_courses = true; $assignments_found = false; echo '

' . $course->course_name . '

'; ?> subscriptions->getAssignments($course) as $course_assignment) { $assignments_found = true; $status = $this->subscriptions->getAssignmentStatus($course_assignment->post_id); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } if(!$assignments_found) { echo ""; } ?>
'.$course_assignment->title.''; 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 ''.$grade.' '.($grade != "NA" ? ''.__('View feedback', lepress_textdomain).'' : '').''; if($comment) { _e('Assignment is completed at', lepress_textdomain); echo ' '.$this->date_i18n_lepress($comment->comment_date_gmt, false, false, true); } echo ''; foreach($this->subscriptions->getTeachers($course->ID) as $teacher) { echo ''.__('Send e-mail to', lepress_textdomain).' - '.$teacher->firstname.' '.$teacher->lastname.'
'; } echo '
".__('There are no archived assignments in this course.', lepress_textdomain)."