LLMS_Settings_General::get_stats_widgets()
Contents
Source Source
File: includes/admin/settings/class.llms.settings.general.php
public static function get_stats_widgets() { ob_start(); echo '<h3>' . __( 'Activity This Week', 'lifterlms' ) . '</h3>'; echo '<style type="text/css">#llms-charts-wrapper{display:none;}</style>'; llms_get_template( 'admin/reporting/tabs/widgets.php', array( 'json' => json_encode( array( 'current_tab' => 'settings', 'current_range' => 'last-7-days', 'current_students' => array(), 'current_courses' => array(), 'current_memberships' => array(), 'dates' => array( 'start' => date( 'Y-m-d', current_time( 'timestamp' ) - WEEK_IN_SECONDS ), 'end' => current_time( 'Y-m-d' ), ), ) ), 'widget_data' => array( array( 'enrollments' => array( 'title' => __( 'Enrollments', 'lifterlms' ), 'cols' => '1-4', 'content' => __( 'loading...', 'lifterlms' ), 'info' => __( 'Number of total enrollments during the selected period', 'lifterlms' ), ), 'registrations' => array( 'title' => __( 'Registrations', 'lifterlms' ), 'cols' => '1-4', 'content' => __( 'loading...', 'lifterlms' ), 'info' => __( 'Number of total user registrations during the selected period', 'lifterlms' ), ), 'sold' => array( 'title' => __( 'Net Sales', 'lifterlms' ), 'cols' => '1-4', 'content' => __( 'loading...', 'lifterlms' ), 'info' => __( 'Total of all successful transactions during this period', 'lifterlms' ), ), 'lessoncompletions' => array( 'title' => __( 'Lessons Completed', 'lifterlms' ), 'cols' => '1-4', 'content' => __( 'loading...', 'lifterlms' ), 'info' => __( 'Number of total lessons completed during the selected period', 'lifterlms' ), ), ), ), ) ); return ob_get_clean(); }
Expand full source code Collapse full source code View on GitHub