| @@ 243-251 (lines=9) @@ | ||
| 240 | ); | |
| 241 | } | |
| 242 | ||
| 243 | 	if ( ! empty( $attr['customTextButtonColor'] ) ) { | |
| 244 | array_push( | |
| 245 | $button_styles, | |
| 246 | sprintf( | |
| 247 | 'color: %s', | |
| 248 | sanitize_hex_color( $attr['customTextButtonColor'] ) | |
| 249 | ) | |
| 250 | ); | |
| 251 | } | |
| 252 | ||
| 253 | $button_styles = implode( ';', $button_styles ); | |
| 254 | $button_classes = 'components-button is-button is-primary '; | |
| @@ 271-279 (lines=9) @@ | ||
| 268 | : __( 'Your contribution', 'jetpack' ); | |
| 269 | ||
| 270 | $button_styles = array(); | |
| 271 | 		if ( ! empty( $attrs['customBackgroundButtonColor'] ) ) { | |
| 272 | array_push( | |
| 273 | $button_styles, | |
| 274 | sprintf( | |
| 275 | 'background-color: %s', | |
| 276 | sanitize_hex_color( $attrs['customBackgroundButtonColor'] ) | |
| 277 | ) | |
| 278 | ); | |
| 279 | } | |
| 280 | 		if ( ! empty( $attrs['customTextButtonColor'] ) ) { | |
| 281 | array_push( | |
| 282 | $button_styles, | |
| @@ 280-288 (lines=9) @@ | ||
| 277 | ) | |
| 278 | ); | |
| 279 | } | |
| 280 | 		if ( ! empty( $attrs['customTextButtonColor'] ) ) { | |
| 281 | array_push( | |
| 282 | $button_styles, | |
| 283 | sprintf( | |
| 284 | 'color: %s', | |
| 285 | sanitize_hex_color( $attrs['customTextButtonColor'] ) | |
| 286 | ) | |
| 287 | ); | |
| 288 | } | |
| 289 | $button_styles = implode( ';', $button_styles ); | |
| 290 | ||
| 291 | return sprintf( | |