# formidable/trunk/classes/views/dashboard/templates/youtube-video.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version trunk. 18 lines.

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/dashboard/templates/youtube-video.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/classes/views/dashboard/templates/youtube-video.php
- Modified: 2026-05-27T15:12:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/dashboard/templates/youtube-video.php#L10-L20`.

```php
<?php
/**
 * Dashboard YouTube video widget.
 *
 * @package Formidable
 *
 * @var string $classes  CSS classes for the outer wrapper.
 * @var array  $template Widget data with 'id' (YouTube video ID).
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<div class="<?php echo esc_attr( $classes ); ?>">
	<iframe src="https://www.youtube.com/embed/<?php echo esc_attr( $template['id'] ); ?>" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture;" allowfullscreen></iframe>
</div>

```
