@@ 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(); |
@@ 227-235 (lines=9) @@ | ||
224 | $data['button_label'] = $attrs['submitButtonText']; |
|
225 | } |
|
226 | $button_styles = array(); |
|
227 | if ( ! empty( $attrs['customBackgroundButtonColor'] ) ) { |
|
228 | array_push( |
|
229 | $button_styles, |
|
230 | sprintf( |
|
231 | 'background-color: %s', |
|
232 | sanitize_hex_color( $attrs['customBackgroundButtonColor'] ) |
|
233 | ) |
|
234 | ); |
|
235 | } |
|
236 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
237 | array_push( |
|
238 | $button_styles, |
|
@@ 236-244 (lines=9) @@ | ||
233 | ) |
|
234 | ); |
|
235 | } |
|
236 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
237 | array_push( |
|
238 | $button_styles, |
|
239 | sprintf( |
|
240 | 'color: %s', |
|
241 | sanitize_hex_color( $attrs['customTextButtonColor'] ) |
|
242 | ) |
|
243 | ); |
|
244 | } |
|
245 | $button_styles = implode( $button_styles, ';' ); |
|
246 | add_thickbox(); |
|
247 | return sprintf( |