LLMS_Analytics_Sales::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.sales.php
public function get_analytics() { $search = LLMS()->session->get( 'llms_analytics_sales' ); $title = __( 'Sales Analytics', 'lifterlms' ); //search form $html = $this->search_form(); if ( $search ) { //WIDGET ROW $html .= '<div class="llms-widget-row">'; //total sold $html .= self::quarter_width_widget( $this->total_sales( $search ) ); //total sales $html .= self::quarter_width_widget( $this->total_units_sold( $search ) ); //total coupons used $html .= self::quarter_width_widget( $this->total_coupons_used( $search ) ); //total coupon amount $html .= self::quarter_width_widget( $this->total_coupon_amount( $search ) ); $html .= '</div>'; //end widget row //sales volume line chart $html .= self::full_width_widget( $this->sales_chart( $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: