PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
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/Hooks/BuilderHooks.php +5 -4 2.1.43.2.6 View file →
@@ -54,9 +54,8 @@
54 54 */
55 55 public function product_page_body_class( $classes ) {
56 56 $classes[] = 'rtsb-shopbuilder-plugin rtsb_theme_' . rtsb()->current_theme;
57 57 if ( Fns::is_woocommerce() || BuilderFns::is_builder_preview() ) {
58 - $classes[] = 'woocommerce';
59 58 $classes[] = 'woocommerce-page';
60 59 }
61 60
62 61 if ( BuilderFns::is_product() ) {
@@ -68,8 +67,10 @@
68 67 }
69 68
70 69 if ( BuilderFns::is_cart() ) {
71 70 $classes[] = 'woocommerce-cart';
71 + } else {
72 + $classes[] = 'woocommerce';
72 73 }
73 74
74 75 if ( BuilderFns::is_checkout() ) {
75 76 $classes[] = 'woocommerce-checkout ';
@@ -102,9 +103,9 @@
102 103 $this->page_edit_with = Fns::page_edit_with( $this->builder_page_id );
103 104 if ( $this->builder_page_id ) {
104 105 if ( did_action( 'elementor/loaded' ) && 'elementor' === $this->page_edit_with ) {
105 106 $this->elementor_frontend();
106 - } else {
107 + } elseif ( 'gutenberg' === $this->page_edit_with ) {
107 108 $this->gutenberg_frontend();
108 109 }
109 110 }
110 111 }
@@ -145,10 +146,10 @@
145 146 wp_enqueue_script( 'wc-checkout' );
146 147 } elseif ( BuilderFns::is_cart() ) {
147 148 $type = 'cart';
148 149 }
149 - wp_enqueue_style( 'rtsb-frontend' );
150 - wp_enqueue_script( 'rtsb-public' );
150 + wp_enqueue_style( Fns::optimized_handle( 'rtsb-frontend' ) );
151 + wp_enqueue_script( Fns::optimized_handle( 'rtsb-public' ) );
151 152
152 153 return apply_filters( 'rtsb/builder/set/current/page/type/external', $type );
153 154 }
154 155