<?php
/**
 * Snax Image Card
 *
 * @package snax 1.11
 * @subpackage FrontendSubmission
 */

// Prevent direct script access.
if ( ! defined( 'ABSPATH' ) ) {
	die( 'No direct script access allowed' );
}
?>

<div class="snax-embed snax-object" data-snax-id="<?php the_ID(); ?>">

	<div class="snax-object-container">

		<?php do_action( 'snax_before_card_media' ); ?>

		<?php snax_the_card_embed_code(); ?>

		<?php do_action( 'snax_after_card_media' ); ?>

	</div>

	<div class="snax-object-actions">
		<?php snax_render_item_delete_link( array(
			'classes' => array(
				'snax-object-action',
				'snax-embed-action',
				'snax-embed-action-delete',
                snax_is_item() ? 'snax-item-embed-action-delete' : 'snax-code-embed-action-delete',
			),
		) ); ?>
	</div>
</div>
