-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathblade.php
61 lines (53 loc) · 1.63 KB
/
blade.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
52
53
54
55
56
57
58
59
60
61
<?php
/**
*
* Plugin Name: Blade
* Plugin URI: https://github.com/MikaelMattsson/blade
* Description: The Blade template engine developed by Taylor Otwell and used in Laravel. Enables the use of Blade in your template files.
* Version: 0.3.7
* Author: Mikael Mattsson
* Author URI: http://www.wallmanderco.se
*
* @package Blade
* @author Mike Mattsson <[email protected]>
*/
/*
|-----------------------------------------------------------------------------------
| Define Principal Constants
|-----------------------------------------------------------------------------------
|
| These are constans to refarece folders in the plugin
|
*/
/**
* Plugin Root
*/
define( 'WP_BLADE_ROOT', dirname( __FILE__ ) . '/' );
/**
* Path for the application folder inside the theme
*/
define( 'WP_BLADE_APP_PATH', WP_BLADE_ROOT . 'application/' );
/**
* Path of assets
*/
define( 'WP_BLADE_ASSETS_PATH', WP_BLADE_ROOT . 'assets/' );
/**
* Path for the config folder
*/
define( 'WP_BLADE_CONFIG_PATH', WP_BLADE_APP_PATH . 'config/' );
/**
* Path for libraries
*/
define( 'WP_BLADE_LIBRARIES_PATH', WP_BLADE_APP_PATH . 'lib/' );
/*
|-------------------------------------------------------------------------
| Start the plugin by instanciating the cain controller
|-------------------------------------------------------------------------
|
| In order to bootstrap the application we've require the initialize file
| which loads all the necessary controllers, helpers, models and other files.
|
| After that, instanciate the main controller which will add actions and the like.
*/
require_once ( WP_BLADE_CONFIG_PATH . '/initialize.php' );
WP_Blade_Main_Controller::make();