<?php 
if (!defined('ABSPATH')) exit; // Exit if accessed directly 
?>

<?php if (!empty($file_id)) : ?>
    <div class="iwbvel-modal-custom-field-file-item">
        <button type="button" class="iwbvel-button iwbvel-button-flat iwbvel-custom-field-files-sortable-btn" title="<?php esc_html_e('Drag', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>">
            <i class=" iwbvel-icon-menu1"></i>
        </button>
        <input type="text" class="iwbvel-inline-edit-file-name" placeholder="File Name ..." value="<?php echo (!empty($file['name'])) ? esc_attr($file['name']) : ''; ?>">
        <input type="hidden" id="id-<?php echo esc_attr($file_id); ?>">
        <input type="text" class="iwbvel-inline-edit-file-url iwbvel-w60p" name="file_url" id="id-<?php echo esc_attr($file_id); ?>-url" placeholder="File Url ..." value="<?php echo (!empty($file['url'])) ? esc_attr($file['url']) : ''; ?>">
        <button type="button" class="iwbvel-button iwbvel-button-white iwbvel-open-uploader iwbvel-inline-edit-choose-file" data-type="single" data-target="#id-<?php echo esc_attr($file_id); ?>"><?php esc_html_e('Choose File', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></button>
        <button type="button" class="iwbvel-button iwbvel-button-white iwbvel-custom-field-file-remove-item">x</button>
    </div>
<?php endif; ?>