meta( 'permanently_locked', true ); } public static function get_type() { return 'e-background-video-content'; } public static function get_element_type(): string { return 'e-background-video-content'; } public function get_title() { return esc_html__( 'Content Area', 'elementor' ); } public function get_keywords() { return [ 'ato', 'atom', 'atoms', 'atomic', 'background', 'video', 'content' ]; } public function get_icon() { return 'eicon-layout'; } public function should_show_in_panel() { return false; } public static function get_computed_html_tag( array $settings ): string { return Html_Tag_Computer::compute( $settings, 'div' ); } protected static function define_props_schema(): array { return [ 'classes' => Classes_Prop_Type::make()->default( [] ), 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ), ]; } protected function define_atomic_controls(): array { return [ Section::make() ->set_label( __( 'Settings', 'elementor' ) ) ->set_id( 'settings' ) ->set_items( [] ), ]; } protected function define_base_styles(): array { return [ static::BASE_STYLE_KEY => Style_Definition::make() ->add_variant( Style_Variant::make() ->add_props( [ 'display' => String_Prop_Type::generate( 'flex' ), 'flex-direction' => String_Prop_Type::generate( 'column' ), 'position' => String_Prop_Type::generate( 'relative' ), 'z-index' => Number_Prop_Type::generate( 1 ), // Root owns the default container padding (Flexbox parity); keep content // padding at 0 so spacing is not doubled and empty-state outlines align. 'padding' => Size_Prop_Type::generate( [ 'size' => 0, 'unit' => 'px', ] ), 'width' => Size_Prop_Type::generate( [ 'size' => 100, 'unit' => '%', ] ), 'flex' => Flex_Prop_Type::generate( [ 'flexGrow' => Number_Prop_Type::generate( 1 ), 'flexShrink' => Number_Prop_Type::generate( 1 ), 'flexBasis' => Size_Prop_Type::generate( [ 'size' => 'auto', 'unit' => 'custom', ] ), ] ), ] ) ), ]; } protected function get_templates(): array { return [ 'elementor/elements/atomic-background-video-content' => __DIR__ . '/atomic-background-video-content.html.twig', ]; } }