PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.0.2
ShopBuilder – WooCommerce Builder For Elementor v2.0.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/PluginsSupport/RtwpvgSupport.php +3 -15 3.4.22.0.2 View file →
@@ -30,11 +30,9 @@
30 30 * Construct function
31 31 */
32 32 private function __construct() {
33 33 add_action( 'wp_enqueue_scripts', [ $this, 'support_assets' ], -1 );
34 - //add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 16 );
35 34 add_filter( 'rtsb/elements/elementor/widget/selectors/rtsb-product-image', [ $this, 'rtsb_product_image_selectors' ] );
36 -
37 35 }
38 36 /**
39 37 * Undocumented function
40 38 *
@@ -39,20 +37,8 @@
39 37 * Undocumented function
40 38 *
41 39 * @return void
42 40 */
43 - public function enqueue_scripts() {
44 - // wp_dequeue_script( 'rtwpvg' );
45 - // wp_dequeue_script( 'swiper' );
46 -
47 - // wp_enqueue_script( 'rtwpvg' );
48 - }
49 -
50 - /**
51 - * Undocumented function
52 - *
53 - * @return void
54 - */
55 41 public function support_assets() {
56 42 if ( ! BuilderFns::is_builder_preview() ) {
57 43 return;
58 44 }
@@ -62,8 +48,10 @@
62 48 ];
63 49 foreach ( $hooks as $hook ) {
64 50 add_filter( $hook, '__return_false', 20 );
65 51 }
52 + wp_enqueue_style( 'rtwpvg' );
53 + wp_enqueue_script( 'rtwpvg' );
66 54 }
67 55
68 56 /**
69 57 * Product Image Selector
@@ -72,9 +60,9 @@
72 60 * @return array
73 61 */
74 62 public function rtsb_product_image_selectors( $selectors ) {
75 63 $selectors['image_width'] = $selectors['image_width'] . ',{{WRAPPER}} .rtsb-product-images .rtwpvg-single-image-container img';
76 - $selectors['image_border_radius'] = $selectors['image_width'] . ',{{WRAPPER}} .rtsb-product-images .rtwpvg-single-image-container img,{{WRAPPER}} .rtwpvg-wrapper .rtwpvg-slider-wrapper';
64 + $selectors['image_border_radius'] = $selectors['image_width'] . ',{{WRAPPER}} .rtsb-product-images .rtwpvg-single-image-container img';
77 65 return $selectors;
78 66 }
79 67
80 68