PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.3.0
ShopBuilder – WooCommerce Builder For Elementor v3.3.0
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/Modules/QuickView/QuickViewFrontEnd.php +8 -3 3.2.63.3.0 View file →
@@ -188,11 +188,16 @@
188 188 if ( ! $product instanceof WC_Product && $product_id ) {
189 189 $product = wc_get_product( $product_id );
190 190 }
191 191
192 - $classes = [];
193 - $button_text = Fns::get_option( 'modules', 'quick_view', 'button_text', esc_html__( 'Quick View', 'shopbuilder' ) );
192 + $classes = [];
193 + $button_text = Fns::get_option( 'modules', 'quick_view', 'button_text', esc_html__( 'Quick View', 'shopbuilder' ) );
194 + $has_button_text = ! empty( Fns::get_option( 'modules', 'quick_view', 'button_text', '' ) );
194 195
196 + if ( $has_button_text ) {
197 + $classes[] = 'has-text';
198 + }
199 +
195 200 $icon_html = '<i class="rtsb-icon rtsb-icon-eye"></i>';
196 201 // get product type.
197 202 $product_type = $product->get_type();
198 203 $params = [
@@ -199,9 +204,9 @@
199 204 'classes' => $classes,
200 205 'product_id' => $product->get_id(),
201 206 'product_type' => $product_type,
202 207 'button_text' => $button_text,
203 - 'has_button_text' => ! empty( Fns::get_option( 'modules', 'quick_view', 'button_text', '' ) ),
208 + 'has_button_text' => $has_button_text,
204 209 'left_text' => apply_filters( 'rtsb/module/quick_view/button_left_text', '' ),
205 210 'right_text' => apply_filters( 'rtsb/module/quick_view/button_right_text', '' ),
206 211 ];
207 212 // let third party developer filter options.