-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtour-operator-bootstrap.php
42 lines (35 loc) · 1.17 KB
/
tour-operator-bootstrap.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
<?php
/**
* LSX Tour Operator Bootstrapper
*
* @package tour_operator
* @author LightSpeed
* @license GPL-2.0+
* @link
* @copyright 2016 LightSpeed
*/
// If this file is called directly, abort.
if ( defined( 'WPINC' ) ) {
if ( ! defined( 'DEBUG_SCRIPTS' ) ) {
define( 'LSX_TO_ASSET_DEBUG', '.min' );
} else {
define( 'LSX_TO_ASSET_DEBUG', '' );
}
require_once( LSX_TO_PATH . 'vendor/cmb2/init.php' );
require_once( LSX_TO_PATH . 'vendor/cmb2-field-map/cmb-field-map.php' );
require_once( LSX_TO_PATH . 'vendor/cmb-field-select2/cmb-field-select2.php' );
// Template Tags.
require_once( LSX_TO_PATH . 'includes/template-tags/general.php' );
require_once( LSX_TO_PATH . 'includes/template-tags/helpers.php' );
require_once( LSX_TO_PATH . 'includes/template-tags/maps.php' );
// include context helper & autoloader.
require_once( LSX_TO_PATH . 'includes/tour-operator.php' );
// Include functions.
require_once( LSX_TO_PATH . 'includes/functions.php' );
// Register tour operator autoloader.
spl_autoload_register( 'tour_operator_autoload_class', true, false );
// init legacy.
\lsx\legacy\Tour_Operator::get_instance();
// Init Plugin.
tour_operator();
}