PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.0-dev2
Elementor Website Builder – more than just a page builder v3.20.0-dev2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/controls/groups/background.php +3 -12 4.2.13.20.0-dev2 View file →
@@ -128,8 +128,11 @@
128 128 'default' => [
129 129 'unit' => '%',
130 130 ],
131 131 ];
132 + foreach ( $active_breakpoints as $breakpoint_name => $breakpoint ) {
133 + $location_device_args[ $breakpoint_name ] = $location_device_defaults;
134 + }
132 135
133 136 $angel_device_args = [];
134 137 $angel_device_defaults = [
135 138 'default' => [
@@ -135,18 +138,10 @@
135 138 'default' => [
136 139 'unit' => 'deg',
137 140 ],
138 141 ];
139 -
140 - $position_device_args = [];
141 - $position_device_defaults = [
142 - 'default' => 'center center',
143 - ];
144 -
145 142 foreach ( $active_breakpoints as $breakpoint_name => $breakpoint ) {
146 - $location_device_args[ $breakpoint_name ] = $location_device_defaults;
147 143 $angel_device_args[ $breakpoint_name ] = $angel_device_defaults;
148 - $position_device_args[ $breakpoint_name ] = $position_device_defaults;
149 144 }
150 145
151 146 $fields = [];
152 147
@@ -169,9 +164,8 @@
169 164 $fields['color'] = [
170 165 'label' => esc_html__( 'Color', 'elementor' ),
171 166 'type' => Controls_Manager::COLOR,
172 167 'default' => '',
173 - 'control_type' => 'content',
174 168 'title' => esc_html__( 'Background Color', 'elementor' ),
175 169 'selectors' => [
176 170 '{{SELECTOR}}' => 'background-color: {{VALUE}};',
177 171 ],
@@ -201,9 +195,8 @@
201 195 'label' => esc_html__( 'Second Color', 'elementor' ),
202 196 'type' => Controls_Manager::COLOR,
203 197 'default' => '#f2295b',
204 198 'render_type' => 'ui',
205 - 'control_type' => 'content',
206 199 'condition' => [
207 200 'background' => [ 'gradient' ],
208 201 ],
209 202 'of_type' => 'gradient',
@@ -275,10 +268,8 @@
275 268 'bottom left' => esc_html__( 'Bottom Left', 'elementor' ),
276 269 'bottom right' => esc_html__( 'Bottom Right', 'elementor' ),
277 270 ],
278 271 'default' => 'center center',
279 - 'device_args' => $position_device_args,
280 - 'responsive' => true,
281 272 'selectors' => [
282 273 '{{SELECTOR}}' => 'background-color: transparent; background-image: radial-gradient(at {{VALUE}}, {{color.VALUE}} {{color_stop.SIZE}}{{color_stop.UNIT}}, {{color_b.VALUE}} {{color_b_stop.SIZE}}{{color_b_stop.UNIT}})',
283 274 ],
284 275 'condition' => [