'py-12', 'normal' => 'py-20', 'spacious' => 'py-32' ]; $aspect_map = [ '16-9' => 'aspect-video', '4-3' => 'aspect-4/3', '1-1' => 'aspect-square' ]; $width_map = [ '2xl' => 'max-w-2xl', '4xl' => 'max-w-4xl', '6xl' => 'max-w-6xl', 'full' => 'max-w-full' ]; $spacing = slbuild_get_field( 'spacing', 'attr' ) ?: 'normal'; $aspect_ratio = slbuild_get_field( 'aspect_ratio', 'attr' ) ?: '16-9'; $max_width = slbuild_get_field( 'max_width', 'attr' ) ?: '4xl'; $cs = slbuild_get_color_scheme( slbuild_get_field( 'color_scheme', 'attr' ) ?: 'white' ); $pad = $spacing_map[ $spacing ] ?? 'py-20'; $aspect_cls = $aspect_map[ $aspect_ratio ] ?? 'aspect-video'; $width_cls = $width_map[ $max_width ] ?? 'max-w-4xl'; $video_url = slbuild_get_field( 'video_url', 'url' ); $poster_url = slbuild_get_field( 'poster', 'url' ); $poster_alt = slbuild_get_field( 'poster_alt' ); $caption = slbuild_get_field( 'caption' ); $eyebrow = slbuild_get_field( 'eyebrow' ); $headline = slbuild_get_field( 'headline' ); $tag = slbuild_meta( 'heading_level' ) ?: 'h2'; // Build embed HTML via wp_oembed_get; falls back to empty string if URL is invalid/unsupported. $embed_html = ''; if ( $video_url ) { $embed_html = wp_oembed_get( $video_url, [ 'width' => 1280 ] ); } ?>

< class="text-3xl font-semibold tracking-tight ">>
<?php echo esc_attr( $poster_alt ); ?>

Add a video URL in the editor to embed a video here.