| @@ 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 '; |
|
| @@ 357-365 (lines=9) @@ | ||
| 354 | : __( 'Your contribution', 'jetpack' ); |
|
| 355 | ||
| 356 | $button_styles = array(); |
|
| 357 | if ( ! empty( $attrs['customBackgroundButtonColor'] ) ) { |
|
| 358 | array_push( |
|
| 359 | $button_styles, |
|
| 360 | sprintf( |
|
| 361 | 'background-color: %s', |
|
| 362 | sanitize_hex_color( $attrs['customBackgroundButtonColor'] ) |
|
| 363 | ) |
|
| 364 | ); |
|
| 365 | } |
|
| 366 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
| 367 | array_push( |
|
| 368 | $button_styles, |
|
| @@ 366-374 (lines=9) @@ | ||
| 363 | ) |
|
| 364 | ); |
|
| 365 | } |
|
| 366 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
| 367 | array_push( |
|
| 368 | $button_styles, |
|
| 369 | sprintf( |
|
| 370 | 'color: %s', |
|
| 371 | sanitize_hex_color( $attrs['customTextButtonColor'] ) |
|
| 372 | ) |
|
| 373 | ); |
|
| 374 | } |
|
| 375 | $button_styles = implode( ';', $button_styles ); |
|
| 376 | ||
| 377 | return sprintf( |
|