_inc/lib/functions.jetpack-button-helper.php 1 location
|
@@ 88-95 (lines=8) @@
|
| 85 |
|
$styles[] = sprintf( 'background: %s;', $attributes['customButtonGradient'] ); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
if ( |
| 89 |
|
$has_custom_background_color && |
| 90 |
|
! $has_named_background_color && |
| 91 |
|
! $has_named_gradient && |
| 92 |
|
! $has_custom_gradient |
| 93 |
|
) { |
| 94 |
|
$styles[] = sprintf( 'background-color: %s;', $attributes['customButtonBackgroundColor'] ); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison |
| 98 |
|
if ( $has_border_radius && 0 != $attributes['buttonBorderRadius'] ) { |
extensions/blocks/revue/revue.php 1 location
|
@@ 166-173 (lines=8) @@
|
| 163 |
|
} elseif ( $has_custom_gradient ) { |
| 164 |
|
$styles[] = sprintf( 'background: %s;', $attributes['customGradient'] ); |
| 165 |
|
} |
| 166 |
|
if ( |
| 167 |
|
$has_custom_background_color && |
| 168 |
|
! $has_named_background_color && |
| 169 |
|
! $has_named_gradient && |
| 170 |
|
! $has_custom_gradient |
| 171 |
|
) { |
| 172 |
|
$styles[] = sprintf( 'background-color: %s;', $attributes['customBackgroundColor'] ); |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
if ( $has_border_radius ) { |
| 176 |
|
// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison |