<?php

$current_url = "//" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

$tab = "fields";

if (array_key_exists('tab', $_GET)) {
	$tab = ($_GET['tab']);
}

?>
<div class="wrap">
	<h2 class="nav-tab-wrapper">
        <a href="<?= $current_url . '&tab=fields' ?>"
           class="nav-tab <?php echo ('fields' == $tab) ? 'nav-tab-active' : ''; ?>"> <?php _e('Fields', 'woo2app'); ?> </a>
        <a href="<?= $current_url . '&tab=setting' ?>"
           class="nav-tab <?php echo ('setting' == $tab) ? 'nav-tab-active' : ''; ?>"> <?php _e('Setting', 'woo2app'); ?> </a>
	</h2>
	<?php
	if($tab == 'fields'){
		require_once  "fields.php";
	}
	elseif ($tab == 'setting'){
		require_once 'setting.php';
	}

	?>

</div>

