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