<?php
/**
 * Output of the single match videos.
 *
 * @package cyberpress/templates
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound

$match        = cyberpress()->get_the_match();
$match_videos = $match->get_videos();

if ( $match_videos ) : ?>
    <h3><?php echo esc_html__( 'Videos', 'cyberpress' ); ?></h3>
    <div class="cyberpress-videos">
        <?php
        foreach ( $match_videos as $video ) {
            ?>
            <div class="cyberpress-video">
                <?php
                // phpcs:ignore
                echo wp_oembed_get( $video );
                ?>
            </div>
            <?php
        }
        ?>
    </div>
<?php endif; ?>
