| @@ 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;  | 
                                |
| @@ 87-95 (lines=9) @@ | ||
| 84 | )  | 
                                |
| 85 | );  | 
                                |
| 86 | }  | 
                                |
| 87 | 	if ( ! empty( $attr['customTextButtonColor'] ) ) { | 
                                |
| 88 | array_push(  | 
                                |
| 89 | $button_styles,  | 
                                |
| 90 | sprintf(  | 
                                |
| 91 | 'color: %s',  | 
                                |
| 92 | sanitize_hex_color( $attr['customTextButtonColor'] )  | 
                                |
| 93 | )  | 
                                |
| 94 | );  | 
                                |
| 95 | }  | 
                                |
| 96 | $button_styles = implode( ';', $button_styles );  | 
                                |
| 97 | $amp_form_action = sprintf( 'https://public-api.wordpress.com/rest/v1.1/sites/%s/email_follow/amp/subscribe/', $blog_id );  | 
                                |
| 98 | $is_amp_request = class_exists( 'Jetpack_AMP_Support' ) && Jetpack_AMP_Support::is_amp_request();  | 
                                |