← All changes
|
templates/profile/tabs/courses/general-statistic.php
+18
-22
4.1.7
→
4.4.9
View file →
| @@ -14,51 +14,47 @@ | ||
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | ?> |
| 17 | 17 | |
| 18 | -<div id="dashboard-general-statistic"> | |
| 18 | +<div id="dashboard-statistic"> | |
| 19 | 19 | |
| 20 | 20 | <?php do_action( 'learn-press/before-profile-dashboard-general-statistic-row' ); ?> |
| 21 | 21 | |
| 22 | - <div class="dashboard-general-statistic__row"> | |
| 22 | + <div class="dashboard-statistic__row"> | |
| 23 | 23 | |
| 24 | 24 | <?php do_action( 'learn-press/before-profile-dashboard-user-general-statistic' ); ?> |
| 25 | 25 | |
| 26 | - <div class="statistic-box" title="<?php esc_html_e( 'Total courses enrolled', 'learnpress' ); ?>"> | |
| 26 | + <div class=" statistic-box" title="<?php esc_html_e( 'Total enrolled courses', 'learnpress' ); ?>"> | |
| 27 | 27 | <p class="statistic-box__text"><?php esc_html_e( 'Enrolled Courses', 'learnpress' ); ?></p> |
| 28 | 28 | <span class="statistic-box__number"><?php echo esc_html( $statistic['enrolled_courses'] ); ?></span> |
| 29 | 29 | </div> |
| 30 | - <div class="statistic-box" title="<?php esc_html_e( 'Total courses are learning', 'learnpress' ); ?>"> | |
| 30 | + <div class="statistic-box" | |
| 31 | + title="<?php esc_html_e( 'The total number of courses is being learned', 'learnpress' ); ?>"> | |
| 31 | 32 | <p class="statistic-box__text"><?php esc_html_e( 'Active Courses', 'learnpress' ); ?></p> |
| 32 | 33 | <span class="statistic-box__number"><?php echo esc_html( $statistic['active_courses'] ); ?></span> |
| 33 | 34 | </div> |
| 34 | - <div class="statistic-box" title="<?php esc_html_e( 'Total courses has finished', 'learnpress' ); ?>"> | |
| 35 | + <div class="statistic-box" title="<?php esc_html_e( 'Total courses have finished', 'learnpress' ); ?>"> | |
| 35 | 36 | <p class="statistic-box__text"><?php esc_html_e( 'Completed Courses', 'learnpress' ); ?></p> |
| 36 | 37 | <span class="statistic-box__number"><?php echo esc_html( $statistic['completed_courses'] ); ?></span> |
| 37 | 38 | </div> |
| 38 | 39 | |
| 39 | 40 | <?php do_action( 'learn-press/after-profile-dashboard-user-general-statistic' ); ?> |
| 40 | - </div> | |
| 41 | 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 | - | |
| 42 | + <?php if ( $user->can_create_course() ) : ?> | |
| 48 | 43 | <?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> | |
| 44 | + <div class="statistic-box" title="<?php esc_html_e( 'Total created courses', 'learnpress' ); ?>"> | |
| 45 | + <p class="statistic-box__text"><?php esc_html_e( 'Total Courses', 'learnpress' ); ?></p> | |
| 46 | + <span class="statistic-box__number"><?php echo esc_html( $statistic['total_courses'] ); ?></span> | |
| 47 | + </div> | |
| 48 | + <div class="statistic-box" title="<?php esc_html_e( 'Total attended students', 'learnpress' ); ?>"> | |
| 49 | + <p class="statistic-box__text"><?php esc_html_e( 'Total Students', 'learnpress' ); ?></p> | |
| 50 | + <span class="statistic-box__number"><?php echo esc_html( $statistic['total_users'] ); ?></span> | |
| 51 | + </div> | |
| 57 | 52 | |
| 58 | 53 | <?php do_action( 'learn-press/after-profile-dashboard-instructor-general-statistic' ); ?> |
| 59 | - </div> | |
| 54 | + <?php endif; ?> | |
| 55 | + </div> | |
| 60 | 56 | |
| 61 | - <?php endif; ?> | |
| 57 | + <?php do_action( 'learn-press/profile-dashboard-general-statistic-row' ); ?> | |
| 62 | 58 | |
| 63 | 59 | <?php do_action( 'learn-press/after-profile-dashboard-general-statistic-row' ); ?> |
| 64 | 60 | </div> |