PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.6.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.6.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 4.2.0 All 139 releases
learnpress / templates / profile / tabs / courses / general-statistic.php

general-statistic.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.6.9, at templates/profile/tabs/courses/general-statistic.php

65 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for displaying general statistic in user profile overview.
4 *
5 * @author ThimPress
6 * @package LearnPress/Templates
7 * @version 4.0.1
8 */
9
10 defined( 'ABSPATH' ) || exit;
11
12 if ( empty( $statistic ) || empty( $user ) ) {
13 return;
14 }
15
16 ?>
17
18 <div id="dashboard-general-statistic">
19
20 <?php do_action( 'learn-press/before-profile-dashboard-general-statistic-row' ); ?>
21
22 <div class="dashboard-general-statistic__row">
23
24 <?php do_action( 'learn-press/before-profile-dashboard-user-general-statistic' ); ?>
25
26 <div class="statistic-box" title="<?php esc_html_e( 'Total courses enrolled', 'learnpress' ); ?>">
27 <p class="statistic-box__text"><?php esc_html_e( 'Enrolled Courses', 'learnpress' ); ?></p>
28 <span class="statistic-box__number"><?php echo esc_html( $statistic['enrolled_courses'] ); ?></span>
29 </div>
30 <div class="statistic-box" title="<?php esc_html_e( 'Total courses are learning', 'learnpress' ); ?>">
31 <p class="statistic-box__text"><?php esc_html_e( 'Active Courses', 'learnpress' ); ?></p>
32 <span class="statistic-box__number"><?php echo esc_html( $statistic['active_courses'] ); ?></span>
33 </div>
34 <div class="statistic-box" title="<?php esc_html_e( 'Total courses has finished', 'learnpress' ); ?>">
35 <p class="statistic-box__text"><?php esc_html_e( 'Completed Courses', 'learnpress' ); ?></p>
36 <span class="statistic-box__number"><?php echo esc_html( $statistic['completed_courses'] ); ?></span>
37 </div>
38
39 <?php do_action( 'learn-press/after-profile-dashboard-user-general-statistic' ); ?>
40 </div>
41
42 <?php do_action( 'learn-press/profile-dashboard-general-statistic-row' ); ?>
43
44 <?php if ( $user->can_create_course() ) : ?>
45
46 <div class="dashboard-general-statistic__row">
47
48 <?php do_action( 'learn-press/before-profile-dashboard-instructor-general-statistic' ); ?>
49 <div class="statistic-box" title="<?php esc_html_e( 'Total courses created', 'learnpress' ); ?>">
50 <p class="statistic-box__text"><?php esc_html_e( 'Total Courses', 'learnpress' ); ?></p>
51 <span class="statistic-box__number"><?php echo esc_html( $statistic['total_courses'] ); ?></span>
52 </div>
53 <div class="statistic-box" title="<?php esc_html_e( 'Total students attended', 'learnpress' ); ?>">
54 <p class="statistic-box__text"><?php esc_html_e( 'Total Students', 'learnpress' ); ?></p>
55 <span class="statistic-box__number"><?php echo esc_html( $statistic['total_users'] ); ?></span>
56 </div>
57
58 <?php do_action( 'learn-press/after-profile-dashboard-instructor-general-statistic' ); ?>
59 </div>
60
61 <?php endif; ?>
62
63 <?php do_action( 'learn-press/after-profile-dashboard-general-statistic-row' ); ?>
64 </div>
65