| @@ -4,8 +4,12 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package Woo Funnel Cart |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | +// Exit if accessed directly. | |
| 9 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | + exit; | |
| 11 | +} | |
| 8 | 12 | define( 'CARTFLOWS_CHECKOUT_DIR', CARTFLOWS_DIR . 'modules/checkout/' ); |
| 9 | 13 | define( 'CARTFLOWS_CHECKOUT_URL', CARTFLOWS_URL . 'modules/checkout/' ); |
| 10 | 14 | |
| 11 | 15 | /** |
| @@ -27,9 +31,9 @@ | ||
| 27 | 31 | * Initiator |
| 28 | 32 | */ |
| 29 | 33 | public static function get_instance() { |
| 30 | 34 | if ( ! isset( self::$instance ) ) { |
| 31 | - self::$instance = new self; | |
| 35 | + self::$instance = new self(); | |
| 32 | 36 | } |
| 33 | 37 | return self::$instance; |
| 34 | 38 | } |
| 35 | 39 | |
| @@ -36,13 +40,21 @@ | ||
| 36 | 40 | /** |
| 37 | 41 | * Constructor function that initializes required actions and hooks |
| 38 | 42 | */ |
| 39 | 43 | public function __construct() { |
| 44 | + | |
| 45 | + require_once CARTFLOWS_CHECKOUT_DIR . 'classes/class-cartflows-global-checkout.php'; | |
| 40 | 46 | require_once CARTFLOWS_CHECKOUT_DIR . 'classes/class-cartflows-checkout-markup.php'; |
| 41 | - require_once CARTFLOWS_CHECKOUT_DIR . 'classes/class-cartflows-checkout-meta.php'; | |
| 47 | + require_once CARTFLOWS_CHECKOUT_DIR . 'classes/class-cartflows-checkout-meta-data.php'; | |
| 48 | + require_once CARTFLOWS_CHECKOUT_DIR . 'classes/class-cartflows-checkout-fields.php'; | |
| 49 | + | |
| 50 | + require_once CARTFLOWS_CHECKOUT_DIR . 'classes/class-cartflows-checkout-ajax.php'; | |
| 51 | + | |
| 52 | + // Load layout files. | |
| 53 | + require_once CARTFLOWS_CHECKOUT_DIR . 'classes/layouts/class-cartflows-modern-checkout.php'; | |
| 54 | + require_once CARTFLOWS_CHECKOUT_DIR . 'classes/layouts/class-cartflows-instant-checkout.php'; | |
| 42 | 55 | } |
| 43 | 56 | } |
| 44 | - | |
| 45 | 57 | /** |
| 46 | 58 | * Kicking this off by calling 'get_instance()' method |
| 47 | 59 | */ |
| 48 | 60 | Cartflows_Checkout::get_instance(); |