-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.php
executable file
·98 lines (68 loc) · 3.46 KB
/
init.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
// Exit if accessed directly
if (!defined('ABSPATH')) {
exit();
}
// DB setup on activation
include_once SDONGKIR_PLUGIN_PATH . 'includes/install/class-sdongkir-db-setup.php';
// Translation
include_once SDONGKIR_PLUGIN_PATH . 'includes/translation/class-sdongkir-translation.php';
// Database interaction
include_once SDONGKIR_PLUGIN_PATH . 'includes/services/rajaongkir/class-sdongkir-db.php';
// RajaOngkir request location
include_once SDONGKIR_PLUGIN_PATH . 'includes/services/rajaongkir/class-sdongkir-request-location.php';
// RajaOngkir request cost
include_once SDONGKIR_PLUGIN_PATH . 'includes/services/rajaongkir/class-sdongkir-request-cost.php';
// RajaOngkir request tracking
include_once SDONGKIR_PLUGIN_PATH . 'includes/services/rajaongkir/class-sdongkir-request-tracking.php';
// RajaOngkir remote request
include_once SDONGKIR_PLUGIN_PATH . 'includes/services/rajaongkir/class-sdongkir-remote.php';
// General functions
include_once SDONGKIR_PLUGIN_PATH . 'includes/functions/general.php';
// Rajaongkir functions
include_once SDONGKIR_PLUGIN_PATH . 'includes/functions/rajaongkir.php';
// Icon functions
include_once SDONGKIR_PLUGIN_PATH . 'includes/functions/icons.php';
// Sanitize functions
include_once SDONGKIR_PLUGIN_PATH . 'includes/functions/sanitize.php';
// Options functions
include_once SDONGKIR_PLUGIN_PATH . 'includes/functions/options.php';
// Location functions
include_once SDONGKIR_PLUGIN_PATH . 'includes/functions/location.php';
// Shipping services functions
include_once SDONGKIR_PLUGIN_PATH . 'includes/functions/shipping-services.php';
// Ajax abstract class
include_once SDONGKIR_PLUGIN_PATH . 'includes/abstracts/class-sdongkir-ajax.php';
// Setting
include_once SDONGKIR_PLUGIN_PATH . 'includes/admin/class-sdongkir-settings.php';
// Admin ajax
include_once SDONGKIR_PLUGIN_PATH . 'includes/admin/class-sdongkir-admin-ajax.php';
// Admin scripts
include_once SDONGKIR_PLUGIN_PATH . 'includes/admin/class-sdongkir-admin-scripts.php';
// Shortcode
include_once SDONGKIR_PLUGIN_PATH . 'includes/frontend/class-sdongkir-shortcode.php';
// Frontend scripts
include_once SDONGKIR_PLUGIN_PATH . 'includes/frontend/class-sdongkir-frontend-scripts.php';
// Frontend ajax
include_once SDONGKIR_PLUGIN_PATH . 'includes/frontend/class-sdongkir-frontend-ajax.php';
// Widget ajax
include_once SDONGKIR_PLUGIN_PATH . 'includes/widgets/class-sdongkir-widget.php';
/**
* Check if WooCommerce is active and only for RajaOngkir Pro account
**/
if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins'))) && sdongkir_account_type() == 'pro') {
// WooCommerce template location
include_once SDONGKIR_PLUGIN_PATH . 'includes/woocommerce/class-sdongkir-woo-template.php';
// Shipping origin setting
include_once SDONGKIR_PLUGIN_PATH . 'includes/woocommerce/setting/class-sdongkir-woo-settings.php';
// Cart
include_once SDONGKIR_PLUGIN_PATH . 'includes/woocommerce/cart/class-sdongkir-cart-package.php';
// Woocommerce address
include_once SDONGKIR_PLUGIN_PATH . 'includes/woocommerce/address/class-sdongkir-woo-address.php';
// Checkout fields
include_once SDONGKIR_PLUGIN_PATH . 'includes/woocommerce/checkout/class-sdongkir-checkout-fields.php';
// WooCommerce related functions
include_once SDONGKIR_PLUGIN_PATH . 'includes/functions/woocommerce.php';
// Pos Indonesia Shipping
include_once SDONGKIR_PLUGIN_PATH . 'includes/woocommerce/setting/class-sdongkir-ongkir.php';
}