<?php
/**
 * Blog entry audio format media
 *
 * @package OceanWP WordPress theme
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Return if Ocean Extra is not active
if ( ! OCEAN_EXTRA_ACTIVE ) {
	return;
} ?>

<?php $audio = oceanwp_get_post_audio_html(); ?>

<?php if ( $audio ) : ?>
	
	<div class="thumbnail"><?php echo $audio; ?></div>

<?php
// Else display post thumbnail
else : ?>

	<?php get_template_part( 'partials/entry/media/blog-entry' ); ?>

<?php endif; ?>