extensions/blocks/revue/revue.php 1 location
|
@@ 218-225 (lines=8) @@
|
215 |
|
} elseif ( $has_custom_gradient ) { |
216 |
|
$styles[] = sprintf( 'background: %s;', $attributes['customGradient'] ); |
217 |
|
} |
218 |
|
if ( |
219 |
|
$has_custom_background_color && |
220 |
|
! $has_named_background_color && |
221 |
|
! $has_named_gradient && |
222 |
|
! $has_custom_gradient |
223 |
|
) { |
224 |
|
$styles[] = sprintf( 'background-color: %s;', $attributes['customBackgroundColor'] ); |
225 |
|
} |
226 |
|
|
227 |
|
if ( $has_border_radius ) { |
228 |
|
// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison |
extensions/blocks/button/button.php 1 location
|
@@ 155-162 (lines=8) @@
|
152 |
|
$styles[] = sprintf( 'background: %s;', $attributes['customGradient'] ); |
153 |
|
} |
154 |
|
|
155 |
|
if ( |
156 |
|
$has_custom_background_color && |
157 |
|
! $has_named_background_color && |
158 |
|
! $has_named_gradient && |
159 |
|
! $has_custom_gradient |
160 |
|
) { |
161 |
|
$styles[] = sprintf( 'background-color: %s;', $attributes['customBackgroundColor'] ); |
162 |
|
} |
163 |
|
|
164 |
|
// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison |
165 |
|
if ( $has_border_radius && 0 != $attributes['borderRadius'] ) { |