<?php
/**
 * This file is used to markup the plugin settings modal popup.
 *
 * @since      1.0
 *
 * @package    SiteEase_Smart_Product_Filtering_Engine
 * @subpackage SiteEase_Smart_Product_Filtering_Engine/admin/partials
 */

// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
$popup_id = "ifqpf_popup_".$setting['id'];
?>
<div id="<?php echo esc_attr($popup_id); ?>" class="ifqpf-popup-main ifqpf-popup-overlay">
	<div class="ifqpf-popup">
		<div class="ifqpf-popup-header">
			<?php if(!empty($popup_heading)){ ?>
				<h2><?php echo esc_html($popup_heading); ?></h2>
			<?php } ?>
			<span class="ifqpf-popup-close dashicons dashicons-dismiss"></span>
		</div>
		<div class="ifqpf-popup-content">
			<table class="form-table" role="presentation">
				<tbody>
					<?php if( !empty( $fields ) ) { ?>
						<?php foreach ($fields as $f_key => $field) { ?>
							<?php
							ifqpf_get_admin_field_markup($field);
							?>
						<?php } ?>
					<?php } ?>
				</tbody>
			</table>
		</div>
		<div class="ifqpf-popup-footer">
			<button type="button" class="button-primary ifqpf-popup-close"><?php echo esc_html__('Save Changes', 'siteease-smart-product-filtering-engine'); ?></button>
			<button type="button" class="button-primary ifqpf-popup-reset"><?php echo esc_html__('Reset', 'siteease-smart-product-filtering-engine'); ?></button>
		</div>
	</div>
</div>