|
@@ 63-65 (lines=3) @@
|
| 60 |
|
$classes = implode( $classes, ' ' ); |
| 61 |
|
|
| 62 |
|
$button_styles = array(); |
| 63 |
|
if ( isset( $attr['customBackgroundButtonColor'] ) && strlen( $attr['customBackgroundButtonColor'] ) ) { |
| 64 |
|
array_push( $button_styles, sprintf( 'background-color: %s', $attr['customBackgroundButtonColor'] ) ); |
| 65 |
|
} |
| 66 |
|
if ( isset( $attr['customTextButtonColor'] ) && strlen( $attr['customTextButtonColor'] ) ) { |
| 67 |
|
array_push( $button_styles, sprintf( 'color: %s', $attr['customTextButtonColor'] ) ); |
| 68 |
|
} |
|
@@ 66-68 (lines=3) @@
|
| 63 |
|
if ( isset( $attr['customBackgroundButtonColor'] ) && strlen( $attr['customBackgroundButtonColor'] ) ) { |
| 64 |
|
array_push( $button_styles, sprintf( 'background-color: %s', $attr['customBackgroundButtonColor'] ) ); |
| 65 |
|
} |
| 66 |
|
if ( isset( $attr['customTextButtonColor'] ) && strlen( $attr['customTextButtonColor'] ) ) { |
| 67 |
|
array_push( $button_styles, sprintf( 'color: %s', $attr['customTextButtonColor'] ) ); |
| 68 |
|
} |
| 69 |
|
$button_styles = implode( $button_styles, ';' ); |
| 70 |
|
|
| 71 |
|
ob_start(); |