PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 All 142 releases
← All changes | inc/TemplateHooks/Admin/AdminListStudentsEnrolled.php +6 -3 4.4.7 → 4.4.10 View file →
@@ -100,8 +100,9 @@
100 100 'end_date' => LP_Request::get_param( 'end_date' ),
101 101 'enableUpdateParamsUrl' => false,
102 102 );
103 103
104 + /** @use self::render_enrolled_students $call_back */
104 105 $call_back = array(
105 106 'class' => self::class,
106 107 'method' => 'render_enrolled_students',
107 108 );
@@ -592,9 +593,11 @@
592 593 $graduation = $userCourseModel->get_graduation();
593 594 $status_raw = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS
594 595 ? $userCourseModel->get_graduation()
595 596 : $userCourseModel->get_status();
596 - $status_label = ucfirst( str_replace( array( '-', '_' ), ' ', $status_raw ) );
597 + $status_label = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS
598 + ? $userCourseModel->get_graduation_label()
599 + : $userCourseModel->get_status_label();
597 600 $badge_class = 'lp-badge--' . sanitize_html_class( $status_raw );
598 601
599 602 // Date.
600 603 $date = UserCourseTemplate::instance()->html_start_date_time( $userCourseModel, false );
@@ -605,9 +608,9 @@
605 608 }
606 609
607 610 $section = array(
608 611 'row' => '<tr>',
609 - 'student-cell-open' => '<td class="lp-cell-student">',
612 + 'student-cell-open' => '<td><div class="lp-cell-student">',
610 613 'avatar' => SingleInstructorTemplate::instance()->html_avatar( $userModel ),
611 614 'meta-open' => '<div class="lp-meta">',
612 615 'name' => sprintf(
613 616 '<span class="lp-name">%s</span>',
@@ -617,9 +620,9 @@
617 620 '<span class="lp-email">%s</span>',
618 621 esc_html( $userModel->get_email() )
619 622 ),
620 623 'meta-close' => '</div>',
621 - 'student-cell-close' => '</td>',
624 + 'student-cell-close' => '</div></td>',
622 625 'course-cell' => sprintf(
623 626 '<td class="lp-cell-course"><a href="%s">%s</a></td>',
624 627 esc_url_raw( $courseModel->get_permalink() ),
625 628 $courseModel->get_title()