| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * @wordpress-plugin |
| 4 | 4 | * Plugin Name: ShopBuilder - WooCommerce Builder For Elementor |
| 5 | 5 | * Plugin URI: https://shopbuilderwp.com/ |
| 6 | 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: 3.3.0 | |
| 7 | + * Version: 3.4.0 | |
| 8 | 8 | * Author: RadiusTheme |
| 9 | 9 | * Author URI: https://radiustheme.com |
| 10 | 10 | * Text Domain: shopbuilder |
| 11 | 11 | * Domain Path: /languages |
| @@ -10,10 +10,10 @@ | ||
| 10 | 10 | * Text Domain: shopbuilder |
| 11 | 11 | * Domain Path: /languages |
| 12 | 12 | * WC requires at least: 3.2 |
| 13 | 13 | * WC tested up to: 10.4 |
| 14 | - * Elementor tested up to: 3.30 | |
| 15 | - * Elementor Pro tested up to: 3.30 | |
| 14 | + * Elementor tested up to: 4.2 | |
| 15 | + * Elementor Pro tested up to: 4.1 | |
| 16 | 16 | * License: GPLv3 |
| 17 | 17 | * License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 18 | 18 | * |
| 19 | 19 | * @package RadiusTheme\SB |
| @@ -28,17 +28,33 @@ | ||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Define Constants. |
| 31 | 31 | */ |
| 32 | -define( 'RTSB_VERSION', '3.3.0' ); | |
| 32 | +define( 'RTSB_VERSION', '3.4.0' ); | |
| 33 | 33 | define( 'RTSB_FILE', __FILE__ ); |
| 34 | 34 | define( 'RTSB_PATH', plugin_dir_path( __FILE__ ) ); |
| 35 | 35 | define( 'RTSB_ACTIVE_FILE_NAME', plugin_basename( __FILE__ ) ); |
| 36 | +define( 'RTSB_ABSPATH', __DIR__ . '/' ); | |
| 36 | 37 | |
| 38 | + | |
| 39 | +if ( ! defined( 'RTSB_URL' ) ) { | |
| 40 | + // Derive the URL from the actual folder name so asset URLs stay correct | |
| 41 | + // even when the plugin is symlinked from outside wp-content (where | |
| 42 | + // plugins_url( '', __FILE__ ) would leak the real filesystem path → 404). | |
| 43 | + $rtsb_dirname = basename( __DIR__ ); | |
| 44 | + define( 'RTSB_URL', plugins_url( $rtsb_dirname ) ); | |
| 45 | +} | |
| 46 | + | |
| 37 | 47 | /** |
| 38 | 48 | * App Init. |
| 49 | + * | |
| 50 | + * Always load the scoped autoloader. vendor_scoped/ is regenerated from | |
| 51 | + * vendor/ by PHP-Scoper on every Composer command (see tools/scoper/run.php) | |
| 52 | + * and is the only autoloader the plugin uses in both development and | |
| 53 | + * production. vendor/ is a temporary Composer/PHP-Scoper working directory | |
| 54 | + * and is never required at runtime. | |
| 39 | 55 | */ |
| 40 | -require_once RTSB_PATH . 'vendor/autoload.php'; | |
| 56 | +require_once RTSB_PATH . 'vendor_scoped/autoload.php'; | |
| 41 | 57 | |
| 42 | 58 | /** |
| 43 | 59 | * @return ShopBuilder|null |
| 44 | 60 | */ |