PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7
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 / inc / admin / views / statistics / users.php

users.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7, at inc/admin/views/statistics/users.php

56 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit; // Exit if accessed directly
5 }
6
7 $sections = array(
8 'students' => __( 'Students', 'learnpress' ),
9 'instructors' => __( 'Instructors', 'learnpress' ),
10 );
11 $section = 'students';
12 $sections_count = sizeof( $sections );
13 $count = 0;
14 ?>
15
16 <div id="learn-press-statistic" class="learn-press-statistic-users">
17 <ul class="subsubsub chart-buttons">
18 <li>
19 <button class="button" data-type="user-last-7-days"
20 disabled="disabled"><?php _e( 'Last 7 Days', 'learnpress' ); ?></button>
21 </li>
22 <li>
23 <button class="button" data-type="user-last-30-days"><?php _e( 'Last 30 Days', 'learnpress' ); ?></button>
24 </li>
25 <li>
26 <button class="button"
27 data-type="user-last-12-months"><?php _e( 'Last 12 Months', 'learnpress' ); ?></button>
28 </li>
29 <li>
30 <button class="button" data-type="user-all"><?php _e( 'All', 'learnpress' ); ?></button>
31 </li>
32 <li>
33 <form id="user-custom-time">
34 <span><?php _e( 'From', 'learnpress' ); ?></span>
35 <input type="text" placeholder="Y/m/d" name="from" class="date-picker" readonly="readonly">
36 <span><?php _e( 'To', 'learnpress' ); ?></span>
37 <input type="text" placeholder="Y/m/d" name="to" class="date-picker" readonly="readonly">
38 <input type="hidden" name="action" value="learnpress_custom_stats">
39 <button class="button button-primary" data-type="user-custom-time" type="submit"
40 disabled="disabled"><?php _e( 'Go', 'learnpress' ); ?></button>
41 </form>
42 </li>
43 </ul>
44 <div class="clear"></div>
45 <div id="learn-press-chart" class="learn-press-chart">
46 </div>
47
48 <script type="text/javascript">
49 var LP_Chart_Config = <?php learn_press_config_chart(); ?>;
50 jQuery(document).ready(function ($) {
51 $('#learn-press-chart').LP_Chart_Line(<?php echo json_encode( learn_press_get_chart_users( null, 'days', 7 ) ); ?>, LP_Chart_Config);
52 });
53 </script>
54 </div>
55
56