PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.2.1
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.2.1
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 All 66 releases
better-payment / includes / Admin / Analytics.php

Analytics.php in Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More 2.2.1, at includes/Admin/Analytics.php

41 lines 894 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Better_Payment\Lite\Admin;
4
5 use Better_Payment\Lite\Classes\Helper;
6 use Better_Payment\Lite\Contracts\Pageable;
7 use Better_Payment\Lite\Controller;
8
9 /**
10 * The Analytics handler class
11 *
12 * @since 0.0.1
13 */
14 class Analytics extends Controller implements Pageable{
15
16 // Check if pro is enabled
17 protected $pro_enabled;
18
19 /**
20 * Initialize the class
21 *
22 * @since 0.0.1
23 */
24 public function __construct( ) {
25 $this->pro_enabled = apply_filters('better_payment/pro_enabled', false);
26 }
27
28 /**
29 * Render the analytics page
30 *
31 * @return void
32 * @since 0.0.1
33 */
34 public function render_page() {
35 $better_payment_helper_obj = new Helper();
36
37 if( ! $this->pro_enabled ){
38 $better_payment_helper_obj->bp_template_render( BETTER_PAYMENT_ADMIN_VIEWS_PATH . '/page-analytics.php');
39 }
40 }
41 }