| @@ -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' => [ |