<?php defined('ALTUMCODE') || die() ?>

<?php if(in_array($data->embed_type, ['show', 'episode'])): ?>
    <div data-biolink-block-id="<?= $data->link->biolink_block_id ?>" class="col-12 my-2">
        <div class="link-iframe-round">
            <iframe class="embed-responsive-item" src="https://open.spotify.com/embed/<?= $data->embed_type ?>/<?= $data->embed_value ?>" width="100%" height="232" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
        </div>
    </div>
<?php else: ?>
    <div data-biolink-block-id="<?= $data->link->biolink_block_id ?>" class="col-12 my-2">
        <div class=" embed-responsive embed-responsive-16by9 link-iframe-round">
            <iframe class="embed-responsive-item" scrolling="no" frameborder="no" src="https://open.spotify.com/embed/<?= $data->embed_type ?>/<?= $data->embed_value ?>"></iframe>
        </div>
    </div>
<?php endif ?>


