| @@ 63-71 (lines=9) @@ | ||
| 60 | ) |
|
| 61 | ); |
|
| 62 | } |
|
| 63 | if ( ! empty( $attr['customTextButtonColor'] ) ) { |
|
| 64 | array_push( |
|
| 65 | $button_styles, |
|
| 66 | sprintf( |
|
| 67 | 'color: %s', |
|
| 68 | sanitize_hex_color( $attr['customTextButtonColor'] ) |
|
| 69 | ) |
|
| 70 | ); |
|
| 71 | } |
|
| 72 | $button_styles = implode( ';', $button_styles ); |
|
| 73 | $amp_form_action = sprintf( 'https://public-api.wordpress.com/rest/v1.1/sites/%s/email_follow/amp/subscribe/', $blog_id ); |
|
| 74 | $is_amp_request = class_exists( 'Jetpack_AMP_Support' ) && Jetpack_AMP_Support::is_amp_request(); |
|
| @@ 245-253 (lines=9) @@ | ||
| 242 | $data['button_label'] = $attrs['submitButtonText']; |
|
| 243 | } |
|
| 244 | $button_styles = array(); |
|
| 245 | if ( ! empty( $attrs['customBackgroundButtonColor'] ) ) { |
|
| 246 | array_push( |
|
| 247 | $button_styles, |
|
| 248 | sprintf( |
|
| 249 | 'background-color: %s', |
|
| 250 | sanitize_hex_color( $attrs['customBackgroundButtonColor'] ) |
|
| 251 | ) |
|
| 252 | ); |
|
| 253 | } |
|
| 254 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
| 255 | array_push( |
|
| 256 | $button_styles, |
|
| @@ 254-262 (lines=9) @@ | ||
| 251 | ) |
|
| 252 | ); |
|
| 253 | } |
|
| 254 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
| 255 | array_push( |
|
| 256 | $button_styles, |
|
| 257 | sprintf( |
|
| 258 | 'color: %s', |
|
| 259 | sanitize_hex_color( $attrs['customTextButtonColor'] ) |
|
| 260 | ) |
|
| 261 | ); |
|
| 262 | } |
|
| 263 | $button_styles = implode( ';', $button_styles ); |
|
| 264 | add_thickbox(); |
|
| 265 | return sprintf( |
|