| @@ -274,15 +274,9 @@ | ||
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | // get product type. |
| 277 | 277 | $product_type = $product->get_type(); |
| 278 | - $show_button_text = ! empty( Fns::get_option( 'modules', 'compare', 'button_text', '' ) ); | |
| 279 | - | |
| 280 | - if ( $show_button_text ) { | |
| 281 | - $classes[] = 'has-text'; | |
| 282 | - } | |
| 283 | - | |
| 284 | - $params = [ | |
| 278 | + $params = [ | |
| 285 | 279 | 'exists' => $exists, |
| 286 | 280 | 'classes' => $classes, |
| 287 | 281 | 'product_id' => $product->get_id(), |
| 288 | 282 | 'parent_product_id' => $product_parent ?: $product->get_id(), |
| @@ -287,9 +281,9 @@ | ||
| 287 | 281 | 'product_id' => $product->get_id(), |
| 288 | 282 | 'parent_product_id' => $product_parent ?: $product->get_id(), |
| 289 | 283 | 'product_type' => $product_type, |
| 290 | 284 | 'button_text' => $button_text, |
| 291 | - 'show_button_text' => $show_button_text, | |
| 285 | + 'show_button_text' => ! empty( Fns::get_option( 'modules', 'compare', 'button_text', '' ) ), | |
| 292 | 286 | 'left_text' => apply_filters( 'rtsb/module/compare/button_left_text', '' ), |
| 293 | 287 | 'right_text' => apply_filters( 'rtsb/module/compare/button_right_text', '' ), |
| 294 | 288 | ]; |
| 295 | 289 | $atts = apply_filters( 'rtsb/module/compare/button_params', $params ); |