| @@ -150,10 +150,8 @@ | ||
| 150 | 150 | wp_enqueue_script( $script ); |
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - public function register_frontend_handlers() {} | |
| 155 | - | |
| 156 | 154 | /** |
| 157 | 155 | * Get style dependencies. |
| 158 | 156 | * |
| 159 | 157 | * Retrieve the list of style dependencies the element requires. |
| @@ -326,28 +324,8 @@ | ||
| 326 | 324 | |
| 327 | 325 | return $this->children; |
| 328 | 326 | } |
| 329 | 327 | |
| 330 | - public function render_markdown(): string { | |
| 331 | - $children = $this->get_children(); | |
| 332 | - | |
| 333 | - if ( empty( $children ) ) { | |
| 334 | - return ''; | |
| 335 | - } | |
| 336 | - | |
| 337 | - $parts = []; | |
| 338 | - | |
| 339 | - foreach ( $children as $child ) { | |
| 340 | - $md = $child->render_markdown(); | |
| 341 | - | |
| 342 | - if ( ! empty( trim( $md ) ) ) { | |
| 343 | - $parts[] = $md; | |
| 344 | - } | |
| 345 | - } | |
| 346 | - | |
| 347 | - return implode( "\n\n", $parts ); | |
| 348 | - } | |
| 349 | - | |
| 350 | 328 | /** |
| 351 | 329 | * Get default arguments. |
| 352 | 330 | * |
| 353 | 331 | * Retrieve the element default arguments. Used to return all the default |
| @@ -789,9 +767,8 @@ | ||
| 789 | 767 | 'elementor-element-' . $id, |
| 790 | 768 | ], |
| 791 | 769 | 'data-id' => $id, |
| 792 | 770 | 'data-element_type' => $this->get_type(), |
| 793 | - 'data-e-type' => $this->get_type(), | |
| 794 | 771 | ] ); |
| 795 | 772 | |
| 796 | 773 | $class_settings = []; |
| 797 | 774 | |
| @@ -1602,9 +1579,9 @@ | ||
| 1602 | 1579 | * |
| 1603 | 1580 | * @param array $data Optional. Element data. Default is an empty array. |
| 1604 | 1581 | * @param array|null $args Optional. Element default arguments. Default is null. |
| 1605 | 1582 | **/ |
| 1606 | - public function __construct( array $data = [], ?array $args = null ) { | |
| 1583 | + public function __construct( array $data = [], array $args = null ) { | |
| 1607 | 1584 | if ( $data ) { |
| 1608 | 1585 | $this->is_type_instance = false; |
| 1609 | 1586 | } elseif ( $args ) { |
| 1610 | 1587 | $this->default_args = $args; |