-
Notifications
You must be signed in to change notification settings - Fork 3
/
mizplate-core.php
53 lines (45 loc) · 1.07 KB
/
mizplate-core.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* MizPlate Core
*
* @link http://mizner.io
* @author Michael Mizner <[email protected]>
* @package mizner/mizplate-core
* @version 0.1
*
* @WordPress-plugin
* Plugin Name: MizPlate Core
* Plugin URI: http://mizner.io
* Description:
* Version: 0.1
* Author: Michael Mizner
* Author URI: http://mizner.io
* License: GPL
*/
// Abort if this file is called directly.
if ( ! defined( 'ABSPATH' ) ) {
die;
}
// Common Values
$plugin = (object) [
'textdomain' => 'mizplate',
'path' => plugin_dir_path( __FILE__ ),
'uri' => plugin_dir_url( __FILE__ ),
];
// Classes
require_once 'includes/class.shortcode.php';
require_once 'includes/class.assets.php';
require_once 'includes/class.main-controller.php';
// Namespaces
use mizner\plugin_core\Shortcode;
use mizner\plugin_core\Assets;
use mizner\plugin_core\Controller_Main;
// Instances
$shortcode = new Shortcode( $plugin );
$assets = new Assets( $plugin );
$controller = new Controller_Main(
$shortcode,
$assets
);
// Run the Plugin
$controller->run();