| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | |
| 4 | 4 | use Elementor\Controls_Stack; |
| 5 | 5 | use Elementor\Core\DynamicTags\Dynamic_CSS; |
| 6 | 6 | use Elementor\Core\Kits\Manager; |
| 7 | -use Elementor\Core\Frontend\Widget_Content_Render_Mode; | |
| 8 | 7 | use Elementor\Element_Base; |
| 9 | 8 | use Elementor\Plugin; |
| 10 | 9 | |
| 11 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -218,9 +217,9 @@ | ||
| 218 | 217 | * @param array $placeholders Placeholders. |
| 219 | 218 | * @param array $replacements Replacements. |
| 220 | 219 | * @param array $all_controls All controls. |
| 221 | 220 | */ |
| 222 | - public function add_controls_stack_style_rules( Controls_Stack $controls_stack, array $controls, array $values, array $placeholders, array $replacements, ?array $all_controls = null ) { | |
| 221 | + public function add_controls_stack_style_rules( Controls_Stack $controls_stack, array $controls, array $values, array $placeholders, array $replacements, array $all_controls = null ) { | |
| 223 | 222 | parent::add_controls_stack_style_rules( $controls_stack, $controls, $values, $placeholders, $replacements, $all_controls ); |
| 224 | 223 | |
| 225 | 224 | if ( $controls_stack instanceof Element_Base ) { |
| 226 | 225 | foreach ( $controls_stack->get_children() as $child_element ) { |
| @@ -281,12 +280,8 @@ | ||
| 281 | 280 | * |
| 282 | 281 | * @param Element_Base $element The element. |
| 283 | 282 | */ |
| 284 | 283 | protected function render_styles( Element_Base $element ) { |
| 285 | - if ( Widget_Content_Render_Mode::is( Widget_Content_Render_Mode::MARKDOWN ) ) { | |
| 286 | - return; | |
| 287 | - } | |
| 288 | - | |
| 289 | 284 | /** |
| 290 | 285 | * Before element parse CSS. |
| 291 | 286 | * |
| 292 | 287 | * Fires before the CSS of the element is parsed. |