PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.2.2
ShopBuilder – WooCommerce Builder For Elementor v2.2.2
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Controllers/AssetsController.php +21 -10 2.1.132.2.2 View file →
@@ -349,9 +349,19 @@
349 349 * Styles.
350 350 */
351 351 wp_register_style( 'rtsb-admin-app', rtsb()->get_assets_uri( 'css/backend/admin-settings.css' ), '', $this->version );
352 352 wp_register_style( 'rtsb-fonts', rtsb()->get_assets_uri( 'css/frontend/rtsb-fonts.css' ), '', $this->version );
353 - // wp_register_style( 'rtsb-admin-global', rtsb()->get_assets_uri( 'css/backend/admin-global.css' ), '', $this->version );
353 +
354 + $current_screen = get_current_screen();
355 +
356 + if ( 'edit-rtsb_builder' === $current_screen->id ) {
357 + if ( ! function_exists( 'woocommerce_get_asset_url' ) ) {
358 + include_once WC_ABSPATH . 'includes/wc-template-functions.php';
359 + }
360 +
361 + wp_deregister_style( 'select2' );
362 + wp_register_style( 'select2', plugins_url( 'assets/css/select2.css', WC_PLUGIN_FILE ) ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
363 + }
354 364 wp_register_style( 'rtsb-templatebuilder', rtsb()->get_assets_uri( 'css/backend/template-builder.css' ), '', $this->version );
355 365
356 366 /**
357 367 * Scripts.
@@ -417,17 +427,18 @@
417 427 wp_localize_script(
418 428 'rtsb-admin-app',
419 429 'rtsbParams',
420 430 [
421 - 'ajaxurl' => esc_url( self::$ajaxurl ),
422 - 'homeurl' => home_url(),
423 - 'adminLogo' => rtsb()->get_assets_uri( 'images/icon/ShopBuilder-Logo.svg' ),
424 - 'restApiUrl' => esc_url_raw( rest_url() ),
425 - 'rest_nonce' => wp_create_nonce( 'wp_rest' ),
426 - 'nonce' => wp_create_nonce( rtsb()->nonceText ),
427 - 'sections' => Settings::instance()->get_sections(),
428 - 'pages' => Fns::get_pages(),
429 - 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no',
431 + 'ajaxurl' => esc_url( self::$ajaxurl ),
432 + 'homeurl' => home_url(),
433 + 'adminLogo' => rtsb()->get_assets_uri( 'images/icon/ShopBuilder-Logo.svg' ),
434 + 'restApiUrl' => esc_url_raw( rest_url() ),
435 + 'rest_nonce' => wp_create_nonce( 'wp_rest' ),
436 + 'nonce' => wp_create_nonce( rtsb()->nonceText ),
437 + 'sections' => Settings::instance()->get_sections(),
438 + 'pages' => Fns::get_pages(),
439 + 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no',
440 + 'updateRates' => esc_html__( 'Update All Rates', 'shopbuilder' ),
430 441 ]
431 442 );
432 443 } else {
433 444 $current_screen = get_current_screen();