Code

< 40 %
40-60 %
> 60 %
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
16
	if ( ! defined( 'UIX_ASSET_DEBUG' ) ) {
17
		if ( ! defined( 'DEBUG_SCRIPTS' ) ) {
18
			define( 'UIX_ASSET_DEBUG', '.min' );
19
		} else {
20
			define( 'UIX_ASSET_DEBUG', '' );
21
		}
22
	}
23
24
25
	// include uix helper functions and autoloader.
26
	require_once UIX_PATH . 'includes/functions.php';
27
28
	// register uix autoloader.
29
	spl_autoload_register( 'uix_autoload_class', true, false );
30
31
	// bootstrap plugin load.
32
	add_action( 'plugins_loaded', 'uix' );
33
34
}
35