| @@ 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 '; |
|
| @@ 301-309 (lines=9) @@ | ||
| 298 | : __( 'Your contribution', 'jetpack' ); |
|
| 299 | ||
| 300 | $button_styles = array(); |
|
| 301 | if ( ! empty( $attrs['customBackgroundButtonColor'] ) ) { |
|
| 302 | array_push( |
|
| 303 | $button_styles, |
|
| 304 | sprintf( |
|
| 305 | 'background-color: %s', |
|
| 306 | sanitize_hex_color( $attrs['customBackgroundButtonColor'] ) |
|
| 307 | ) |
|
| 308 | ); |
|
| 309 | } |
|
| 310 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
| 311 | array_push( |
|
| 312 | $button_styles, |
|
| @@ 310-318 (lines=9) @@ | ||
| 307 | ) |
|
| 308 | ); |
|
| 309 | } |
|
| 310 | if ( ! empty( $attrs['customTextButtonColor'] ) ) { |
|
| 311 | array_push( |
|
| 312 | $button_styles, |
|
| 313 | sprintf( |
|
| 314 | 'color: %s', |
|
| 315 | sanitize_hex_color( $attrs['customTextButtonColor'] ) |
|
| 316 | ) |
|
| 317 | ); |
|
| 318 | } |
|
| 319 | $button_styles = implode( ';', $button_styles ); |
|
| 320 | ||
| 321 | return sprintf( |
|