PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
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 | modules/atomic-widgets/elements/atomic-collection-loop/collection-loop-promotion.php +9 -1 4.2.0-beta1 → 4.3.1 View file →
@@ -3,8 +3,10 @@
3 3 namespace Elementor\Modules\AtomicWidgets\Elements\Atomic_Collection_Loop;
4 4
5 5 use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Element_Base;
6 6 use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Element_Template;
7 +use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer;
8 +use Elementor\Modules\AtomicWidgets\Elements\Promotions\Preserves_Children_Subtree;
7 9 use Elementor\Modules\AtomicWidgets\PropTypes\Classes_Prop_Type;
8 10 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type;
9 11 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
10 12 use Elementor\Modules\AtomicWidgets\Styles\Style_Variant;
@@ -14,8 +16,9 @@
14 16 }
15 17
16 18 class Collection_Loop_Promotion extends Atomic_Element_Base {
17 19 use Has_Element_Template;
20 + use Preserves_Children_Subtree;
18 21
19 22 const BASE_STYLE_KEY = 'base';
20 23
21 24 public function __construct( $data = [], $args = null ) {
@@ -20,8 +23,9 @@
20 23
21 24 public function __construct( $data = [], $args = null ) {
22 25 parent::__construct( $data, $args );
23 26 $this->meta( 'is_container', true );
27 + $this->meta( 'is_compound', true );
24 28 $this->meta( 'is_pro_promotion', true );
25 29 }
26 30
27 31 public static function get_type() {
@@ -36,9 +40,13 @@
36 40 return esc_html__( 'Loop', 'elementor' );
37 41 }
38 42
39 43 public function get_icon() {
40 - return 'eicon-loop-builder';
44 + return 'eicon-loop-widget';
45 + }
46 +
47 + public static function get_computed_html_tag( array $settings ): string {
48 + return Html_Tag_Computer::compute( $settings, 'div' );
41 49 }
42 50
43 51 protected static function define_props_schema(): array {
44 52 return [