<?php
?>

<!-- Modal Content -->
<div class="idf-modal-content idf-scroll">
	<form method="POST" action="" id="<?php echo esc_attr( $modal_form_submission_key ); ?>" name="<?php echo esc_attr( $modal_form_submission_key ); ?>">
		<div class="idf-modal-body">
			<!-- Your form or content goes here -->
			<?php
			if ( ! empty( $modal_content_template_path ) ) {
				ob_start();
				include $modal_content_template_path;
				$content = ob_get_clean();
				echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
			}
			?>
		</div>
		<div class="idf-modal-footer">
			<input id="saveCloseBtn" type="submit" name="<?php echo esc_attr( $modal_form_submission_key ); ?>" class="button button-primary" value="<?php esc_attr_e('Save & Close', 'ignitiondeck'); ?>"/>
			<input id="cancelBtn" type="button" class="button button-secondary" value="<?php esc_attr_e('Cancel', 'ignitiondeck'); ?>"/>
		</div>
	</form>
</div>
