|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* UIX Bootstrapper |
|
4
|
|
|
* |
|
5
|
|
|
* @package uix |
|
6
|
|
|
* @author David Cramer |
|
7
|
|
|
* @license GPL-2.0+ |
|
8
|
|
|
* @link |
|
9
|
|
|
* @copyright 2017 David Cramer |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
// If this file is called directly, abort. |
|
13
|
|
|
if ( defined( 'WPINC' ) ) { |
|
14
|
|
|
|
|
15
|
|
|
if ( ! defined( 'UIX_ASSET_DEBUG' ) ) { |
|
16
|
|
|
if ( ! defined( 'DEBUG_SCRIPTS' ) ) { |
|
17
|
|
|
define( 'UIX_ASSET_DEBUG', '.min' ); |
|
18
|
|
|
} else { |
|
19
|
|
|
define( 'UIX_ASSET_DEBUG', '' ); |
|
20
|
|
|
} |
|
21
|
|
|
} |
|
22
|
|
|
|
|
23
|
|
|
|
|
24
|
|
|
// include uix helper functions and autoloader. |
|
25
|
|
|
require_once UIX_PATH . 'includes/functions.php'; |
|
26
|
|
|
|
|
27
|
|
|
// register uix autoloader. |
|
28
|
|
|
spl_autoload_register( 'uix_autoload_class', true, false ); |
|
29
|
|
|
|
|
30
|
|
|
// bootstrap plugin load. |
|
31
|
|
|
add_action( 'plugins_loaded', 'uix' ); |
|
32
|
|
|
|
|
33
|
|
|
} |
|
34
|
|
|
|