← All changes
|
modules/atomic-widgets/elements/atomic-youtube/atomic-youtube.php
+3
-1
4.1.0-beta1
→
4.2.4
View file →
| @@ -52,9 +52,10 @@ | ||
| 52 | 52 | 'classes' => Classes_Prop_Type::make() |
| 53 | 53 | ->default( [] ), |
| 54 | 54 | |
| 55 | 55 | 'source' => String_Prop_Type::make() |
| 56 | - ->default( 'https://www.youtube.com/watch?v=XHOmBV4js_E' ), | |
| 56 | + ->default( 'https://www.youtube.com/watch?v=XHOmBV4js_E' ) | |
| 57 | + ->alias( 'url', 'video' ), | |
| 57 | 58 | |
| 58 | 59 | 'start' => String_Prop_Type::make()->meta( Dynamic_Prop_Type::ignore() ), |
| 59 | 60 | 'end' => String_Prop_Type::make()->meta( Dynamic_Prop_Type::ignore() ), |
| 60 | 61 | 'autoplay' => Boolean_Prop_Type::make()->default( false ), |
| @@ -73,8 +74,9 @@ | ||
| 73 | 74 | protected function define_atomic_controls(): array { |
| 74 | 75 | return [ |
| 75 | 76 | Section::make() |
| 76 | 77 | ->set_label( __( 'Content', 'elementor' ) ) |
| 78 | + ->set_id( 'content' ) | |
| 77 | 79 | ->set_items( [ |
| 78 | 80 | Text_Control::bind_to( 'source' ) |
| 79 | 81 | ->set_placeholder( esc_html__( 'Type or paste your URL', 'elementor' ) ) |
| 80 | 82 | ->set_label( esc_html__( 'YouTube URL', 'elementor' ) ), |