PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.2.0
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.2.0
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 4.2.0 4.2.1 All 138 releases
learnpress / templates / widgets / course-progress.php

course-progress.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.2.0, at templates/widgets/course-progress.php

30 lines 777 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for displaying content of Course Progress widget.
4 *
5 * This template can be overridden by copying it to yourtheme/learnpress/widgets/course-progress/default.php.
6 *
7 * @author ThimPress
8 * @category Widgets
9 * @package Learnpress/Templates
10 * @version 4.1.4
11 */
12
13 defined( 'ABSPATH' ) || exit();
14
15 if ( ! isset( $course ) || ! isset( $user ) || ! isset( $instance ) || ! isset( $course_results ) || ! isset( $course_data ) ) {
16 return;
17 }
18 ?>
19
20 <div class="lp_widget_course_progress <?php echo esc_attr( $instance['css_class'] ); ?>">
21 <h3><?php echo wp_kses_post( $course->get_title() ); ?></h3>
22
23 <?php
24 learn_press_get_template(
25 'single-course/sidebar/user-progress.php',
26 compact( 'user', 'course', 'course_data', 'course_results' )
27 );
28 ?>
29 </div>
30