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

<div id="<?= 'biolink_block_id_' . $data->link->biolink_block_id ?>" data-biolink-block-id="<?= $data->link->biolink_block_id ?>" data-biolink-block-type="<?= $data->link->type ?>" class="col-12 my-<?= $data->biolink->settings->block_spacing ?? '2' ?> d-flex justify-content-center">
    <blockquote class="text-post-media" data-text-post-permalink="<?= $data->link->location_url ?>"></blockquote>

    <?php if(!\Altum\Event::exists_content_type_key('javascript', 'threads')): ?>
        <?php ob_start() ?>
        <script async src="https://www.threads.com/embed.js"></script>
        <?php \Altum\Event::add_content(ob_get_clean(), 'javascript', 'threads') ?>
    <?php endif ?>
</div>
