Skip to content

Commit

Permalink
updated ready and set course metaboxes to high priority
Browse files Browse the repository at this point in the history
  • Loading branch information
therealmarknelson committed Apr 22, 2015
1 parent 3e8ce39 commit 9d08171
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 15 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,40 @@ LIFTER LMS
CHANGELOG
=========

v1.2.4 - 2015-04-22
-------------------
+ Moved All Course metaboxes to global Course Options Metabox
+ Move Enrolled and Non-Enrolled user wysiwyg post editors to Options Metabox
+ Removed Course Syllabus metabox, Added Course Outline Metabox
+ Set priority of Course Outline and Course Options Metabox to top
+ Added ability to Create new section to Course Outline
+ Added abiliyt to Create new lesson to Course Outline
+ Added ability to add existing Lesson to Course Outline
+ Added Lesson duplicate functionality when adding lesson previously assigned to another course.
+ Added ability to drag lessons between sections in Course Outline
+ Added ability to edit Section Title in Course Outline
+ Added ability to edit lesson title and excerpt in Course Outline
+ Added New Style and Design for better usability to Course Outline
+ Added Lesson Icon with tooltip to Course Outline: Prerequisite - shows if prerequisite exists and displays name of prerequisite
+ Added Lesson Icon with tooltip to Course Outline: Quiz - shows if quiz is assigned to course and displays name of quiz
+ Added Lesson Icon with tooltip to Course Outline: Drip Content - shows if drip days are set and # of days
+ Added Lesson Icon with tooltip to Course Outline: Content - displays if lesson has content added.
+ Added Course Outline Metabox to Lesson Post Editor: Allows you to assign lesson to section and view entire course tree. Links to Course and all other lessons in course.
+ Style Update: backgrounds on frontend. Removed all references to white background on front end elements
+ Corrected Restriction for course in past. Updated course in past message to display as Course ended instead of Course not available until.
+ Added restriction message when user attempts to visit a restricted lesson.
+ Updated course syllabus sidebar widget to not display lessons as links if user is not enrolled in course.
+ Added ability to use Attribute Order for sorting Courses and Memberships on Archive pages.
+ Added support for selling memberships with Woocommerce. LifterLMS now checks memberships for SKU matches in addition to Courses when products are purchased using WooCommerce.
+ Added gulp for scss, js and svg management
+ Added svg sprite and svg class for managing svg elements on front and backend.
+ Added better language translation support for strings
+ Refactored Ajax Classes for cleaner, faster development
+ Refactored metabox build class for cleaner, faster development
+ Refactored Course syllabus to reduce query size for larger, complex courses
+ Added Handler classes for Lessons, Sections, Courses and Posts
+ Refactored Course get / set methods to reduce database queries

v1.2.3 - 2015-03-12
-------------------
+ Achievement design and functionality updates
Expand Down
12 changes: 3 additions & 9 deletions includes/admin/post-types/class.llms.meta.boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,9 @@ public function get_meta_boxes() {
array_push($public_post_types, $post_type);
}

add_meta_box( 'lifterlms-course-main', __( 'Course Options', 'lifterlms' ), 'LLMS_Meta_Box_Main::output', 'course', 'normal' );

//add_meta_box( 'postexcerpt', __( 'Course Short Description', 'lifterlms' ), 'LLMS_Meta_Box_Course_Short_Description::output', 'course', 'normal' );
//add_meta_box( 'lifterlms-course-data', __( 'Course Data', 'lifterlms' ), 'LLMS_Meta_Box_Product::output', 'course', 'normal', 'high' );
//add_meta_box( 'lifterlms-course-video', __( 'Featured Media', 'lifterlms' ), 'LLMS_Meta_Box_Video::output', 'course', 'normal');
//add_meta_box( 'lifterlms-course-syllabus', __( 'Course Syllabus', 'lifterlms' ), 'LLMS_Meta_Box_Course_Syllabus::output', 'course', 'normal');
//add_meta_box( 'lifterlms-course-general', __( 'General Settings', 'lifterlms' ), 'LLMS_Meta_Box_General::output', 'course', 'normal' );
add_meta_box( 'lifterlms-course-outline', __( 'Course Outline', 'lifterlms' ), 'LLMS_Meta_Box_Course_Outline::output', 'course', 'advanced' );
//add_meta_box( 'lifterlms-course-students', __( 'Student Settings', 'lifterlms' ), 'LLMS_Meta_Box_Students::output', 'course', 'normal' );
add_meta_box( 'lifterlms-course-outline', __( 'Course Outline', 'lifterlms' ), 'LLMS_Meta_Box_Course_Outline::output', 'course', 'normal', 'high' );
add_meta_box( 'lifterlms-course-main', __( 'Course Options', 'lifterlms' ), 'LLMS_Meta_Box_Main::output', 'course', 'normal', 'high' );

add_meta_box( 'lifterlms-section-tree', __( 'Section Tree', 'lifterlms' ), 'LLMS_Meta_Box_Section_Tree::output', 'section', 'side' );
add_meta_box( 'lifterlms-lesson-tree', __( 'Course Outline', 'lifterlms' ), 'LLMS_Meta_Box_Lesson_Tree::output', 'lesson', 'side' );
add_meta_box( 'lifterlms-lesson-video', __( 'Featured Media', 'lifterlms' ), 'LLMS_Meta_Box_Video::output', 'lesson', 'normal', 'high' );
Expand Down
17 changes: 11 additions & 6 deletions includes/class.llms.install.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,21 @@ public function update_course_outline() {


//loop through lessons and update llms_order, parent_section and parent_course
foreach( $lessons as $lesson ) {
if ( !empty($lessons) ) {

$lesson_id = $lesson['lesson_id'];
$lesson_order = $lesson['position'];
foreach( $lessons as $lesson ) {

$lesson_id = $lesson['lesson_id'];
$lesson_order = $lesson['position'];

update_post_meta($lesson_id, '_parent_course', $course->ID);
update_post_meta($lesson_id, '_parent_section', $section_id);
update_post_meta($lesson_id, '_llms_order', $lesson_order);
}

update_post_meta($lesson_id, '_parent_course', $course->ID);
update_post_meta($lesson_id, '_parent_section', $section_id);
update_post_meta($section_id, '_llms_order', $lesson_order);
}


}

}
Expand Down

0 comments on commit 9d08171

Please sign in to comment.