PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
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 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | inc/TemplateHooks/Admin/AdminListStudentsEnrolled.php +5 -3 4.4.7 → 4.4.9 View file →
@@ -592,9 +592,11 @@
592 592 $graduation = $userCourseModel->get_graduation();
593 593 $status_raw = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS
594 594 ? $userCourseModel->get_graduation()
595 595 : $userCourseModel->get_status();
596 - $status_label = ucfirst( str_replace( array( '-', '_' ), ' ', $status_raw ) );
596 + $status_label = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS
597 + ? $userCourseModel->get_graduation_label()
598 + : $userCourseModel->get_status_label();
597 599 $badge_class = 'lp-badge--' . sanitize_html_class( $status_raw );
598 600
599 601 // Date.
600 602 $date = UserCourseTemplate::instance()->html_start_date_time( $userCourseModel, false );
@@ -605,9 +607,9 @@
605 607 }
606 608
607 609 $section = array(
608 610 'row' => '<tr>',
609 - 'student-cell-open' => '<td class="lp-cell-student">',
611 + 'student-cell-open' => '<td><div class="lp-cell-student">',
610 612 'avatar' => SingleInstructorTemplate::instance()->html_avatar( $userModel ),
611 613 'meta-open' => '<div class="lp-meta">',
612 614 'name' => sprintf(
613 615 '<span class="lp-name">%s</span>',
@@ -617,9 +619,9 @@
617 619 '<span class="lp-email">%s</span>',
618 620 esc_html( $userModel->get_email() )
619 621 ),
620 622 'meta-close' => '</div>',
621 - 'student-cell-close' => '</td>',
623 + 'student-cell-close' => '</div></td>',
622 624 'course-cell' => sprintf(
623 625 '<td class="lp-cell-course"><a href="%s">%s</a></td>',
624 626 esc_url_raw( $courseModel->get_permalink() ),
625 627 $courseModel->get_title()