<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

	require_once \Discountify::core_dir() . 'admin/settings/settings-fields.php';
	$discountify_disable = class_exists( 'DiscountifyPro' ) ? false : true;
	extract( Discountify\Utils\Helper::get_settings() );

	$discountify_tabs = array(
		'style' => esc_html__( 'Style', 'discountify' ),
	);
	?>
<div class="settings_message d-none"></div>
<form id="save_settings">
	<div class="content-header">
		<div class="title-wrap">
			<?php esc_html_e( 'Settings', 'discountify' ); ?>
		</div>
	</div>
	<div class="content-wrapper">
	<div class="settings_tab">
		<ul class="settings_tab_pan">
			<?php
			foreach ( $discountify_tabs as $discountify_key => $discountify_value ) {
				$discountify_active = $discountify_key === 'style' ? 'active' : '';
				?>
				<li class="<?php echo esc_attr( $discountify_active ); ?>" data-item="<?php echo esc_attr( $discountify_key ); ?>"><?php echo esc_html( $discountify_value ); ?></li>
			<?php } ?>
		</ul>
		<div class="tab-content">
			<div id="style" class="active">
				<?php
					require_once \Discountify::core_dir() . 'admin/settings/tab-content/style.php';
				?>
			</div>
		</div>
	</div>
	<input type="hidden" id="discountify_settings" name="discountify_settings" value="discountify_settings"/>
	<button class="button button-primary admin-button"><?php esc_html_e( 'Save Changes', 'discountify' ); ?></button>
	</div>
</form>