HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/plugins/events-calendar-pro/src/views/single/video-embed.php
<?php
/**
 * Video embed for a virtual event.
 *
 * Override this template in your own theme by creating a file at:
 * [your-theme]/tribe/events-virtual/single/video-embed.php
 *
 * See more documentation about our views templating system.
 *
 * @link http://evnt.is/1aiy
 *
 * @version 1.0.0
 *
 * @var WP_Post $event The event post object with properties added by the `tribe_get_event` function.
 *
 * @see tribe_get_event() For the format of the event object.
 */

// Don't print anything when the event isn't embedding or is not ready.
if ( ! $event->virtual_embed_video || ! $event->virtual_should_show_embed ) {
	return;
}

$video_html = wp_oembed_get( $event->virtual_url );

if ( empty( $video_html ) ) {
	return;
}
?>
<div class="tribe-events-virtual-single-video-embed">
	<?php echo $video_html // phpcs:ignore ?>
</div>