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
|
@@ 188-195 (lines=8) @@
|
185 |
|
$styles[] = sprintf( 'background: %s;', $attributes['customGradient'] ); |
186 |
|
} |
187 |
|
|
188 |
|
if ( |
189 |
|
$has_custom_background_color && |
190 |
|
! $has_named_background_color && |
191 |
|
! $has_named_gradient && |
192 |
|
! $has_custom_gradient |
193 |
|
) { |
194 |
|
$styles[] = sprintf( 'background-color: %s;', $attributes['customBackgroundColor'] ); |
195 |
|
} |
196 |
|
|
197 |
|
// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison |
198 |
|
if ( $has_border_radius && 0 != $attributes['borderRadius'] ) { |