| @@ 238-246 (lines=9) @@ | ||
| 235 | $data['button_label'] = $attrs['submitButtonText']; |
|
| 236 | } |
|
| 237 | $button_styles = array(); |
|
| 238 | if ( ! empty( $attrs['customBackgroundButtonColor'] ) ) { |
|
| 239 | array_push( |
|
| 240 | $button_styles, |
|
| 241 | sprintf( |
|
| 242 | 'background-color: %s', |
|
| 243 | sanitize_hex_color( $attrs['customBackgroundButtonColor'] ) |
|
| 244 | ) |
|
| 245 | ); |
|
| 246 | } |
|
| 247 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
| 248 | array_push( |
|
| 249 | $button_styles, |
|
| @@ 247-255 (lines=9) @@ | ||
| 244 | ) |
|
| 245 | ); |
|
| 246 | } |
|
| 247 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
| 248 | array_push( |
|
| 249 | $button_styles, |
|
| 250 | sprintf( |
|
| 251 | 'color: %s', |
|
| 252 | sanitize_hex_color( $attrs['customTextButtonColor'] ) |
|
| 253 | ) |
|
| 254 | ); |
|
| 255 | } |
|
| 256 | $button_styles = implode( $button_styles, ';' ); |
|
| 257 | add_thickbox(); |
|
| 258 | return sprintf( |
|
| @@ 62-70 (lines=9) @@ | ||
| 59 | ) |
|
| 60 | ); |
|
| 61 | } |
|
| 62 | if ( ! empty( $attr['customTextButtonColor'] ) ) { |
|
| 63 | array_push( |
|
| 64 | $button_styles, |
|
| 65 | sprintf( |
|
| 66 | 'color: %s', |
|
| 67 | sanitize_hex_color( $attr['customTextButtonColor'] ) |
|
| 68 | ) |
|
| 69 | ); |
|
| 70 | } |
|
| 71 | $button_styles = implode( $button_styles, ';' ); |
|
| 72 | ||
| 73 | ob_start(); |
|