<?php

/**
 * Accordion: Distribution.
 *
 * @link    https://aiopodcasting.com
 * @since   1.0.0
 *
 * @package AiO_Podcast_Studio
 */

// Exit if accessed directly
if ( ! defined( 'WPINC' ) ) {
	die;
}

$is_blocked = isset( $post_meta['is_blocked'] ) ? $post_meta['is_blocked'][0] : 0;
?>
<div class="aiopod-form-controls">
    <!-- Field: Block from Directories -->
    <div id="aiopod-form-control-is_blocked" class="aiopod-form-control">
        <label for="aiopod-field-is_blocked" class="aiopod-form-label">
            <?php esc_html_e( 'Block from Directories', 'aio-podcast-studio' ); ?>
        </label>
        
        <label class="aiopod-form-field">
            <input type="checkbox" name="is_blocked" id="aiopod-field-is_blocked" value="1" <?php checked( $is_blocked, 1 ); ?> />
            <?php esc_html_e( 'Prevent this episode from appearing in directories like Apple Podcasts, Spotify, and others.', 'aio-podcast-studio' ); ?>
        </label>							
    </div>
</div>