| @@ -10,10 +10,13 @@ | ||
| 10 | 10 | |
| 11 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | 12 | die( 'You are not allowed to call this page directly.' ); |
| 13 | 13 | } |
| 14 | - | |
| 15 | -$button_class = str_contains( $attributes['class'], 'frm-gradient' ) ? 'frm-button-secondary' : 'frm-button-primary'; | |
| 14 | +if ( false === strpos( $attributes['class'], 'frm-gradient' ) ) { | |
| 15 | + $button_class = 'frm-button-primary'; | |
| 16 | +} else { | |
| 17 | + $button_class = 'frm-button-secondary'; | |
| 18 | +} | |
| 16 | 19 | ?> |
| 17 | 20 | <div <?php FrmAppHelper::array_to_html_params( $attributes, true ); ?>> |
| 18 | 21 | <?php |
| 19 | 22 | if ( ! empty( $args['icon'] ) ) { |