| @@ 66-74 (lines=9) @@ | ||
| 63 | ) |
|
| 64 | ); |
|
| 65 | } |
|
| 66 | if ( ! empty( $attr['customTextButtonColor'] ) ) { |
|
| 67 | array_push( |
|
| 68 | $button_styles, |
|
| 69 | sprintf( |
|
| 70 | 'color: %s', |
|
| 71 | sanitize_hex_color( $attr['customTextButtonColor'] ) |
|
| 72 | ) |
|
| 73 | ); |
|
| 74 | } |
|
| 75 | $button_styles = implode( ';', $button_styles ); |
|
| 76 | $amp_form_action = sprintf( 'https://public-api.wordpress.com/rest/v1.1/sites/%s/email_follow/amp/subscribe/', $blog_id ); |
|
| 77 | $is_amp_request = class_exists( 'Jetpack_AMP_Support' ) && Jetpack_AMP_Support::is_amp_request(); |
|
| @@ 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; |
|