elementor
1 year ago
data.php
4 years ago
functions.php
1 year ago
helper.php
1 year ago
includes.php
4 years ago
support.php
2 months ago
includes.php
41 lines
| 1 | <?php |
| 2 | |
| 3 | // no direct access allowed |
| 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | die(); |
| 6 | } |
| 7 | define( 'VI_WOO_BOPO_BUNDLE_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . "bopo-woo-product-bundle-builder" . DIRECTORY_SEPARATOR ); |
| 8 | define( 'VI_WOO_BOPO_BUNDLE_INCLUDES', VI_WOO_BOPO_BUNDLE_DIR . "includes" . DIRECTORY_SEPARATOR ); |
| 9 | define( 'VI_WOO_BOPO_BUNDLE_ADMIN', VI_WOO_BOPO_BUNDLE_DIR . "admin" . DIRECTORY_SEPARATOR ); |
| 10 | define( 'VI_WOO_BOPO_BUNDLE_FRONTEND', VI_WOO_BOPO_BUNDLE_DIR . "frontend" . DIRECTORY_SEPARATOR ); |
| 11 | define( 'VI_WOO_BOPO_BUNDLE_LANGUAGES', VI_WOO_BOPO_BUNDLE_DIR . "languages" . DIRECTORY_SEPARATOR ); |
| 12 | |
| 13 | $plugin_url = plugins_url( '', __FILE__ ); |
| 14 | $plugin_url = str_replace( '/includes', '', $plugin_url ); |
| 15 | |
| 16 | define( 'VI_WOO_BOPO_BUNDLE_CSS', $plugin_url . "/css/" ); |
| 17 | define( 'VI_WOO_BOPO_BUNDLE_CSS_DIR', VI_WOO_BOPO_BUNDLE_DIR . "css" . DIRECTORY_SEPARATOR ); |
| 18 | define( 'VI_WOO_BOPO_BUNDLE_JS', $plugin_url . "/js/" ); |
| 19 | define( 'VI_WOO_BOPO_BUNDLE_JS_DIR', VI_WOO_BOPO_BUNDLE_DIR . "js" . DIRECTORY_SEPARATOR ); |
| 20 | define( 'VI_WOO_BOPO_BUNDLE_IMAGES', $plugin_url . "/assets/images/" ); |
| 21 | define( 'VI_WOO_BOPO_BUNDLE_FONTS', $plugin_url . "/assets/fonts/" ); |
| 22 | define( 'VI_WOO_BOPO_BUNDLE_TEMP_DIR', VI_WOO_BOPO_BUNDLE_DIR . "templates" . DIRECTORY_SEPARATOR ); |
| 23 | |
| 24 | if ( is_file( VI_WOO_BOPO_BUNDLE_INCLUDES . "functions.php" ) ) { |
| 25 | require_once VI_WOO_BOPO_BUNDLE_INCLUDES . "functions.php"; |
| 26 | } |
| 27 | if ( is_file( VI_WOO_BOPO_BUNDLE_INCLUDES . "data.php" ) ) { |
| 28 | require_once VI_WOO_BOPO_BUNDLE_INCLUDES . "data.php"; |
| 29 | } |
| 30 | if ( is_file( VI_WOO_BOPO_BUNDLE_INCLUDES . "support.php" ) ) { |
| 31 | require_once VI_WOO_BOPO_BUNDLE_INCLUDES . "support.php"; |
| 32 | } |
| 33 | if ( is_file( VI_WOO_BOPO_BUNDLE_INCLUDES . "helper.php" ) ) { |
| 34 | require_once VI_WOO_BOPO_BUNDLE_INCLUDES . "helper.php"; |
| 35 | } |
| 36 | if ( is_file( VI_WOO_BOPO_BUNDLE_INCLUDES . 'elementor/elementor.php' ) ) { |
| 37 | require_once VI_WOO_BOPO_BUNDLE_INCLUDES . 'elementor/elementor.php'; |
| 38 | } |
| 39 | |
| 40 | vi_include_folder( VI_WOO_BOPO_BUNDLE_ADMIN, 'VI_WOO_BOPO_BUNDLE_' ); |
| 41 | vi_include_folder( VI_WOO_BOPO_BUNDLE_FRONTEND, 'VI_WOO_BOPO_BUNDLE_' ); |