savePostMeta($post_id); } } } //Page switcher - manage-assignemt or send feedback or just classbook if(isSet($_GET['p']) && isSet($_GET['c']) && !isSet($_GET['s'])) { require_once('manage-assignment.php'); } else if(isSet($_GET['p']) && isSet($_GET['c']) && isSet($_GET['s'])) { require_once('send-feedback.php'); } else { ?>

drafts are not visible to the students.', lepress_textdomain); ?>

:
getIsCourse()) { $assignments = get_posts(array('meta_query' => array(array('key' => '_is-lepress-assignment', 'value' => 1)), 'post_status' => 'draft|future|publish', 'numberposts' => -1, 'category' => $selected_cat_ID)); } ?> '; } foreach( $assignments as $post ) { echo ''; echo ''; echo ''; } ?>
'.__('There is no assessments in this course.', lepress_textdomain).'
' . $post->post_title.''.($post->post_status == 'draft' ? ' - '.__('draft', lepress_textdomain) : '').''.$this->date_i18n_lepress(strtotime(get_post_meta($post->ID, '_lepress-assignment-start-date', true))).''.$this->date_i18n_lepress(strtotime(get_post_meta($post->ID, '_lepress-assignment-end-date', true))).''.$course_meta->getUngradedCount($post->ID).''.__('View assignment', lepress_textdomain).'

multiple categories, it is moved to current chosen category only.', lepress_textdomain); ?>

"> getIsCourse()) { $regular_posts = get_posts(array('post_status' => 'publish|draft|future', 'numberposts' => -1, 'category' => $selected_cat_ID)); } $reqular_posts_found = false; foreach($regular_posts as $post){ //Have make sure, $post really is a regular post $is_assignment = get_post_meta($post->ID, '_is-lepress-assignment', true); $student_answer_meta = get_post_meta($post->ID, '_lepress-assignment-meta', true); //if metadata not found, proceed if(!$is_assignment && !$student_answer_meta && $post->post_status != 'auto-draft') { $regular_posts_found = true; if($post->post_status == "draft") { $post->post_title .= ' ('.__('draft', lepress_textdomain).')'; } echo ''; echo ''; } } if(!$regular_posts_found) { echo ''; } ?>
'.$post->post_title.''.$post->post_excerpt.'
'.__('No regular posts in this course', lepress_textdomain).'
' />