← All changes
|
modules/atomic-widgets/elements/atomic-background-video/atomic-background-video.php
+11
-3
4.3.0
→
4.3.2
View file →
| @@ -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() ) |
| @@ -184,8 +184,16 @@ | ||
| 184 | 184 | ], |
| 185 | 185 | [ |
| 186 | 186 | 'value' => 'footer', |
| 187 | 187 | 'label' => 'Footer', |
| 188 | + ], | |
| 189 | + [ | |
| 190 | + 'value' => 'main', | |
| 191 | + 'label' => 'Main', | |
| 192 | + ], | |
| 193 | + [ | |
| 194 | + 'value' => 'nav', | |
| 195 | + 'label' => 'Nav', | |
| 188 | 196 | ], |
| 189 | 197 | ] ) |
| 190 | 198 | ->set_label( esc_html__( 'HTML Tag', 'elementor' ) ), |
| 191 | 199 | Text_Control::bind_to( '_cssid' ) |