PluginProbe
Elementor Website Builder – more than just a page builder / 3.29.0-beta4
Elementor Website Builder – more than just a page builder v3.29.0-beta4
4.3.2 4.3.1 4.3.0 4.3.0-beta3 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 All 455 releases
← All changes | includes/base/element-base.php +2 -27 4.1.0-dev3 → 3.29.0-beta4 View file →
@@ -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
@@ -473,11 +451,9 @@
473 451 public function print_element() {
474 452 $element_type = $this->get_type();
475 453
476 454 if ( $this->should_render_shortcode() ) {
477 - $unique_id = apply_filters( 'elementor/element_cache/unique_id', '' );
478 -
479 - echo '[elementor-element k="' . esc_attr( $unique_id ) . '" data="' . esc_attr( base64_encode( wp_json_encode( $this->get_raw_data() ) ) ) . '"]';
455 + echo '[elementor-element data="' . esc_attr( base64_encode( wp_json_encode( $this->get_raw_data() ) ) ) . '"]';
480 456 return;
481 457 }
482 458
483 459 /**
@@ -789,9 +765,8 @@
789 765 'elementor-element-' . $id,
790 766 ],
791 767 'data-id' => $id,
792 768 'data-element_type' => $this->get_type(),
793 - 'data-e-type' => $this->get_type(),
794 769 ] );
795 770
796 771 $class_settings = [];
797 772
@@ -1602,9 +1577,9 @@
1602 1577 *
1603 1578 * @param array $data Optional. Element data. Default is an empty array.
1604 1579 * @param array|null $args Optional. Element default arguments. Default is null.
1605 1580 **/
1606 - public function __construct( array $data = [], ?array $args = null ) {
1581 + public function __construct( array $data = [], array $args = null ) {
1607 1582 if ( $data ) {
1608 1583 $this->is_type_instance = false;
1609 1584 } elseif ( $args ) {
1610 1585 $this->default_args = $args;