| @@ -188,16 +188,11 @@ | ||
| 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' ) ); | |
| 194 | - $has_button_text = ! empty( Fns::get_option( 'modules', 'quick_view', 'button_text', '' ) ); | |
| 192 | + $classes = []; | |
| 193 | + $button_text = Fns::get_option( 'modules', 'quick_view', 'button_text', esc_html__( 'Quick View', 'shopbuilder' ) ); | |
| 195 | 194 | |
| 196 | - if ( $has_button_text ) { | |
| 197 | - $classes[] = 'has-text'; | |
| 198 | - } | |
| 199 | - | |
| 200 | 195 | $icon_html = '<i class="rtsb-icon rtsb-icon-eye"></i>'; |
| 201 | 196 | // get product type. |
| 202 | 197 | $product_type = $product->get_type(); |
| 203 | 198 | $params = [ |
| @@ -204,9 +199,9 @@ | ||
| 204 | 199 | 'classes' => $classes, |
| 205 | 200 | 'product_id' => $product->get_id(), |
| 206 | 201 | 'product_type' => $product_type, |
| 207 | 202 | 'button_text' => $button_text, |
| 208 | - 'has_button_text' => $has_button_text, | |
| 203 | + 'has_button_text' => ! empty( Fns::get_option( 'modules', 'quick_view', 'button_text', '' ) ), | |
| 209 | 204 | 'left_text' => apply_filters( 'rtsb/module/quick_view/button_left_text', '' ), |
| 210 | 205 | 'right_text' => apply_filters( 'rtsb/module/quick_view/button_right_text', '' ), |
| 211 | 206 | ]; |
| 212 | 207 | // let third party developer filter options. |