<?php
/**
 * Output of the single player thumbnail.
 *
 * @package cyberpress/templates
 */

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

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

$player = cyberpress()->get_the_player();
$url    = $player->get_url();

if ( '' !== $player->check_thumbnail() ) : ?>
    <div class="post-thumbnail">
        <a href="<?php echo esc_url( $url ); ?>">
            <?php echo wp_kses( $player->get_thumbnail( 'large' ), cyberpress()->get_kses_allowed_img() ); ?>
        </a>
    </div><!-- .post-thumbnail -->
<?php endif; ?>
