PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.2
Elementor Website Builder – more than just a page builder v4.3.2
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-background-video/atomic-background-video.php +13 -4 4.3.0-beta1 → 4.3.2 View file →
@@ -67,9 +67,9 @@
67 67 return esc_html__( 'Background Video', 'elementor' );
68 68 }
69 69
70 70 public function get_keywords() {
71 - return [ 'ato', 'atom', 'atoms', 'atomic', 'video', 'background', 'media' ];
71 + return [ 'ato', 'atom', 'atoms', 'atomic', 'video', 'background', 'bg', 'media', 'autoplay', 'hero', 'film', 'mp4' ];
72 72 }
73 73
74 74 public function get_icon() {
75 75 return 'eicon-background-video';
@@ -75,9 +75,9 @@
75 75 return 'eicon-background-video';
76 76 }
77 77
78 78 public static function get_computed_html_tag( array $settings ): string {
79 - return Html_Tag_Computer::compute( $settings, 'div' );
79 + return Utils::validate_html_tag( Html_Tag_Computer::compute( $settings, 'div' ) );
80 80 }
81 81
82 82 protected static function define_props_schema(): array {
83 83 // The States control is design-time only and directly tied to the controls. A prop dependency
@@ -94,11 +94,11 @@
94 94
95 95 return [
96 96 'classes' => Classes_Prop_Type::make()->default( [] ),
97 97 'tag' => String_Prop_Type::make()
98 - ->enum( [ 'div', 'header', 'section', 'article', 'aside', 'footer' ] )
98 + ->enum( [ 'div', 'header', 'section', 'article', 'aside', 'footer', 'main', 'nav' ] )
99 99 ->default( 'div' )
100 - ->description( 'The HTML tag for the background video container. Could be div, header, section, article, aside, or footer.' ),
100 + ->description( 'The HTML tag for the background video container. Could be div, header, section, article, aside, footer, main, or nav.' ),
101 101 'source' => Video_Src_Prop_Type::make()->alias( 'video', 'src' ),
102 102 'start_time' => Number_Prop_Type::make()
103 103 ->default( null )
104 104 ->meta( Dynamic_Prop_Type::ignore() )
@@ -150,8 +150,9 @@
150 150 'playing' => [ 'title' => esc_html__( 'Play', 'elementor' ) ],
151 151 'paused' => [ 'title' => esc_html__( 'Pause', 'elementor' ) ],
152 152 ] )
153 153 ->set_exclusive( true )
154 + ->set_allow_empty( true )
154 155 ->set_convert_options( true )
155 156 ->set_size( 'tiny' )
156 157 ->set_full_width( true ),
157 158 ] ),
@@ -183,8 +184,16 @@
183 184 ],
184 185 [
185 186 'value' => 'footer',
186 187 'label' => 'Footer',
188 + ],
189 + [
190 + 'value' => 'main',
191 + 'label' => 'Main',
192 + ],
193 + [
194 + 'value' => 'nav',
195 + 'label' => 'Nav',
187 196 ],
188 197 ] )
189 198 ->set_label( esc_html__( 'HTML Tag', 'elementor' ) ),
190 199 Text_Control::bind_to( '_cssid' )