| @@ -1,45 +1,54 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @wordpress-plugin |
| 4 | - * Plugin Name: ShopBuilder – Elementor WooCommerce Builder Addons | |
| 5 | - * Plugin URI: https://shopbuilderwp.com/ | |
| 6 | - * Description: WooCommerce Page Builder for Elementor | |
| 7 | - * Version: 2.0.2 | |
| 8 | - * Author: RadiusTheme | |
| 9 | - * Author URI: https://radiustheme.com | |
| 10 | - * Text Domain: shopbuilder | |
| 11 | - * Domain Path: /languages | |
| 12 | - * WC requires at least: 3.2 | |
| 13 | - * WC tested up to: 8.0.2 | |
| 14 | - * Elementor tested up to: 3.17.0 | |
| 4 | + * Plugin Name: ShopBuilder - Elementor WooCommerce Builder Addons | |
| 5 | + * Plugin URI: https://shopbuilderwp.com/ | |
| 6 | + * Description: ShopBuilder is the ultimate WooCommerce design solution for Elementor, letting you build and customize shop, product, cart, checkout, and account pages with ease while offering a wide range of features like Quick View, Wishlist, Compare, Variation Swatches, Mini Cart, Product Add-Ons, and more to create stunning online stores. | |
| 7 | + * Version: 2.6.2 | |
| 8 | + * Author: RadiusTheme | |
| 9 | + * Author URI: https://radiustheme.com | |
| 10 | + * Text Domain: shopbuilder | |
| 11 | + * Domain Path: /languages | |
| 12 | + * WC requires at least: 3.2 | |
| 13 | + * WC tested up to: 9.7 | |
| 14 | + * Elementor tested up to: 3.28 | |
| 15 | + * Elementor Pro tested up to: 3.28 | |
| 16 | + * License: GPLv3 | |
| 17 | + * License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| 15 | 18 | * |
| 16 | 19 | * @package RadiusTheme\SB |
| 17 | 20 | */ |
| 18 | 21 | |
| 22 | +use RadiusTheme\SB\ShopBuilder; | |
| 23 | + | |
| 19 | 24 | // Do not allow directly accessing this file. |
| 20 | - | |
| 21 | 25 | if ( ! defined( 'ABSPATH' ) ) { |
| 22 | 26 | exit( 'This script cannot be accessed directly.' ); |
| 23 | 27 | } |
| 24 | 28 | |
| 25 | 29 | /** |
| 26 | - * Define RTCL Content. | |
| 30 | + * Define Constants. | |
| 27 | 31 | */ |
| 28 | - | |
| 29 | -define( 'RTSB_VERSION', '2.0.2' ); | |
| 30 | - | |
| 32 | +define( 'RTSB_VERSION', '2.6.2' ); | |
| 31 | 33 | define( 'RTSB_FILE', __FILE__ ); |
| 32 | - | |
| 33 | -define( 'RTSB_PATH', plugin_dir_path(__FILE__ ) ); | |
| 34 | - | |
| 34 | +define( 'RTSB_PATH', plugin_dir_path( __FILE__ ) ); | |
| 35 | 35 | define( 'RTSB_ACTIVE_FILE_NAME', plugin_basename( __FILE__ ) ); |
| 36 | 36 | |
| 37 | - | |
| 38 | 37 | /** |
| 39 | 38 | * App Init. |
| 40 | 39 | */ |
| 41 | -// require_once 'dev-helpers.php'; | |
| 40 | +require_once RTSB_PATH . 'vendor/autoload.php'; | |
| 42 | 41 | |
| 43 | -require_once 'app/ShopBuilder.php'; | |
| 42 | +/** | |
| 43 | + * @return ShopBuilder | |
| 44 | + */ | |
| 45 | +function rtsb() { | |
| 46 | + static $cached_instance; | |
| 47 | + if ( null !== $cached_instance ) { | |
| 48 | + return $cached_instance; | |
| 49 | + } | |
| 50 | + $cached_instance = ShopBuilder::instance(); | |
| 51 | + return $cached_instance; | |
| 52 | +} | |
| 44 | 53 | |
| 45 | - | |
| 54 | +rtsb(); | |