| @@ -1,54 +1,33 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 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.2.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.3 | |
| 14 | - * Elementor tested up to: 3.24 | |
| 15 | - * Elementor Pro tested up to: 3.24 | |
| 16 | - * License: GPLv3 | |
| 17 | - * License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| 18 | - * | |
| 19 | - * @package RadiusTheme\SB | |
| 20 | - */ | |
| 21 | - | |
| 22 | -use RadiusTheme\SB\ShopBuilder; | |
| 23 | - | |
| 24 | -// Do not allow directly accessing this file. | |
| 25 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 26 | - exit( 'This script cannot be accessed directly.' ); | |
| 27 | -} | |
| 28 | - | |
| 29 | -/** | |
| 30 | - * Define Constants. | |
| 31 | - */ | |
| 32 | -define( 'RTSB_VERSION', '2.2.2' ); | |
| 33 | -define( 'RTSB_FILE', __FILE__ ); | |
| 34 | -define( 'RTSB_PATH', plugin_dir_path( __FILE__ ) ); | |
| 35 | -define( 'RTSB_ACTIVE_FILE_NAME', plugin_basename( __FILE__ ) ); | |
| 36 | - | |
| 37 | -/** | |
| 38 | - * App Init. | |
| 39 | - */ | |
| 40 | -require_once RTSB_PATH . 'vendor/autoload.php'; | |
| 41 | - | |
| 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 | -} | |
| 53 | - | |
| 54 | -rtsb(); | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * @wordpress-plugin | |
| 4 | + * Plugin Name: ShopBuilder | |
| 5 | + * Plugin URI: | |
| 6 | + * Description: Woocommerce Builder for Elementor & Gutenberg | |
| 7 | + * Version: 1.1.0 | |
| 8 | + * Author: RadiusTheme | |
| 9 | + * Author URI: https://radiustheme.com | |
| 10 | + * Text Domain: shopbuilder | |
| 11 | + * Domain Path: /languages | |
| 12 | + * | |
| 13 | + * @package RadiusTheme\SB | |
| 14 | + */ | |
| 15 | + | |
| 16 | +// Do not allow directly accessing this file. | |
| 17 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 18 | + exit( 'This script cannot be accessed directly.' ); | |
| 19 | +} | |
| 20 | + | |
| 21 | +/** | |
| 22 | + * Define RTCL Content. | |
| 23 | + */ | |
| 24 | +define( 'RTSB_VERSION', '1.1.0' ); | |
| 25 | +define( 'RTSB_FILE', __FILE__ ); | |
| 26 | +define( 'RTSB_ACTIVE_FILE_NAME', plugin_basename( __FILE__ ) ); | |
| 27 | + | |
| 28 | +/** | |
| 29 | + * App Init. | |
| 30 | + */ | |
| 31 | +// require_once 'dev-helpers.php'; | |
| 32 | + | |
| 33 | +require_once 'app/ShopBuilder.php'; | |