LLMS_Analytics_Courses::get_analytics()
Main Analytics page builder Collects elements and calls get_page_contents to wrap html Called from html.admin.analytics to build page.
Description Description
Return Return
([html])
Source Source
File: includes/admin/analytics/class.llms.analytics.courses.php
public function get_analytics() { $search = LLMS()->session->get( 'llms_analytics_course' ); //var_dump($search); $title = __( 'Course Analytics', 'lifterlms' ); //search form $html = $this->search_form(); if ( $search ) { //WIDGET ROW $html .= '<div class="llms-widget-row">'; //total Students ever $html .= self::quarter_width_widget( $this->total_students_all_time( $search ) ); // total currently enrolled students $html .= self::quarter_width_widget( $this->total_current_students( $search ) ); //course completion percentage $html .= self::quarter_width_widget( $this->completion_percentage( $search ) ); //total certificates issued $html .= self::quarter_width_widget( $this->total_certificates_issued( $search ) ); $html .= '</div>'; //end widget row //sales volume line chart $html .= self::full_width_widget( $this->sales_chart( $search ) ); if ( 'all_courses' !== $search->product_id ) { $html .= self::full_width_widget( $this->lesson_completion_chart( $search ) ); $html .= self::full_width_widget( $this->lesson_student_table( $search ) ); } } //return contents return $this->get_page_contents( $title, $html ); }
Expand full source code Collapse full source code View on GitHub
User Contributed Notes User Contributed Notes
Permalink: