@@ 232-240 (lines=9) @@ | ||
229 | $data['button_label'] = $attrs['submitButtonText']; |
|
230 | } |
|
231 | $button_styles = array(); |
|
232 | if ( ! empty( $attrs['customBackgroundButtonColor'] ) ) { |
|
233 | array_push( |
|
234 | $button_styles, |
|
235 | sprintf( |
|
236 | 'background-color: %s', |
|
237 | sanitize_hex_color( $attrs['customBackgroundButtonColor'] ) |
|
238 | ) |
|
239 | ); |
|
240 | } |
|
241 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
242 | array_push( |
|
243 | $button_styles, |
|
@@ 241-249 (lines=9) @@ | ||
238 | ) |
|
239 | ); |
|
240 | } |
|
241 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
242 | array_push( |
|
243 | $button_styles, |
|
244 | sprintf( |
|
245 | 'color: %s', |
|
246 | sanitize_hex_color( $attrs['customTextButtonColor'] ) |
|
247 | ) |
|
248 | ); |
|
249 | } |
|
250 | $button_styles = implode( ';', $button_styles ); |
|
251 | add_thickbox(); |
|
252 | global $wp; |
@@ 243-251 (lines=9) @@ | ||
240 | ); |
|
241 | } |
|
242 | ||
243 | if ( ! empty( $attr['customTextButtonColor'] ) ) { |
|
244 | array_push( |
|
245 | $button_styles, |
|
246 | sprintf( |
|
247 | 'color: %s', |
|
248 | sanitize_hex_color( $attr['customTextButtonColor'] ) |
|
249 | ) |
|
250 | ); |
|
251 | } |
|
252 | ||
253 | $button_styles = implode( ';', $button_styles ); |
|
254 | $button_classes = 'components-button is-button is-primary '; |