PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.13.1
GiveWP – Donation Plugin and Fundraising Platform v2.13.1
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / Views / Admin.php

Admin.php in GiveWP – Donation Plugin and Fundraising Platform 2.13.1, at src/Views/Admin.php

50 lines 689 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * AdminViews Class
5 *
6 * @package Give
7 */
8
9 namespace Give\Views;
10
11 use Give\Onboarding\Onboarding;
12
13 defined( 'ABSPATH' ) || exit;
14
15 /**
16 * Manages Admin Views
17 */
18 class Admin {
19
20 /**
21 * Initialize Admin views
22 */
23 public function init() {
24
25 // Load dashboard widgets
26 $this->load_dashboard_widgets();
27
28 // Load pages
29 $this->load_pages();
30
31 }
32
33 public function __construct() {
34 // Do nothing
35 }
36
37 public function load_dashboard_widgets() {
38 // Load Reports dashboard widget
39 $reports = new Admin\DashboardWidgets\Reports();
40 $reports->init();
41 }
42
43 public function load_pages() {
44 // Load Reports page
45 $reports = new Admin\Pages\Reports();
46 $reports->init();
47 }
48
49 }
50