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 / Views.php
Views.php
42 lines 645 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Admin Views Class
5 *
6 * @package Give
7 */
8
9 namespace Give\Views;
10
11 defined( 'ABSPATH' ) || exit;
12
13 /**
14 * Manages Views
15 */
16 class Views {
17
18 /**
19 * Initialize admin and frontend views
20 */
21 public function init() {
22 // To prevent conflict on we are loading autoload.php when need for now. In future we can loaded it globally.
23 require GIVE_PLUGIN_DIR . 'vendor/autoload.php';
24
25 // Load admin views
26 $this->load_admin_views();
27 }
28
29 public function __construct() {
30 // Do nothing
31 }
32
33 public function load_admin_views() {
34 // Init admin views
35 $admin = new Admin();
36 $admin->init();
37 }
38
39 }
40 $views = new Views();
41 $views->init();
42