PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.4
Elementor Website Builder – more than just a page builder v3.28.4
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/base/element-base.php +2 -15 4.0.73.28.4 View file →
@@ -119,12 +119,8 @@
119 119 public function get_script_depends() {
120 120 return $this->depended_scripts;
121 121 }
122 122
123 - public function get_global_scripts() {
124 - return [ 'elementor-frontend' ];
125 - }
126 -
127 123 /**
128 124 * Enqueue scripts.
129 125 *
130 126 * Registers all the scripts defined as element dependencies and enqueues
@@ -144,16 +140,10 @@
144 140 }
145 141
146 142 wp_enqueue_script( $script );
147 143 }
148 -
149 - foreach ( $this->get_global_scripts() as $script ) {
150 - wp_enqueue_script( $script );
151 - }
152 144 }
153 145
154 - public function register_frontend_handlers() {}
155 -
156 146 /**
157 147 * Get style dependencies.
158 148 *
159 149 * Retrieve the list of style dependencies the element requires.
@@ -453,11 +443,9 @@
453 443 public function print_element() {
454 444 $element_type = $this->get_type();
455 445
456 446 if ( $this->should_render_shortcode() ) {
457 - $unique_id = apply_filters( 'elementor/element_cache/unique_id', '' );
458 -
459 - echo '[elementor-element k="' . esc_attr( $unique_id ) . '" data="' . esc_attr( base64_encode( wp_json_encode( $this->get_raw_data() ) ) ) . '"]';
447 + echo '[elementor-element data="' . esc_attr( base64_encode( wp_json_encode( $this->get_raw_data() ) ) ) . '"]';
460 448 return;
461 449 }
462 450
463 451 /**
@@ -769,9 +757,8 @@
769 757 'elementor-element-' . $id,
770 758 ],
771 759 'data-id' => $id,
772 760 'data-element_type' => $this->get_type(),
773 - 'data-e-type' => $this->get_type(),
774 761 ] );
775 762
776 763 $class_settings = [];
777 764
@@ -1582,9 +1569,9 @@
1582 1569 *
1583 1570 * @param array $data Optional. Element data. Default is an empty array.
1584 1571 * @param array|null $args Optional. Element default arguments. Default is null.
1585 1572 **/
1586 - public function __construct( array $data = [], ?array $args = null ) {
1573 + public function __construct( array $data = [], array $args = null ) {
1587 1574 if ( $data ) {
1588 1575 $this->is_type_instance = false;
1589 1576 } elseif ( $args ) {
1590 1577 $this->default_args = $args;