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