<?php
// Don't load directly
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

$post_type = Tribe__Events__Main::POSTTYPE;
$active = $this->get_active_tab();

?>
<style type="text/css">
	div.tribe_settings {
		width: 90%;
	}
</style>
<div class="tribe_settings wrap">
	<?php screen_icon(); ?><h1><?php esc_html_e( 'Legacy Events Import', 'the-events-calendar' ) ?></h1>

	<?php do_action( 'tribe_import_under_heading' ); ?>

	<h2 class="nav-tab-wrapper">
		<?php
		foreach ( $this->get_available_tabs() as $_label => $_tab ) {
			if ( $_tab == $active ) {
				$class = 'nav-tab nav-tab-active';
			} else {
				$class = 'nav-tab';
			}
			?>
			<a class="<?php echo esc_attr( $class ); ?>" href="?post_type=<?php echo esc_attr( $post_type ); ?>&amp;page=events-importer&amp;tab=<?php echo esc_attr( $_tab ); ?>">
				<?php echo $_label; ?>
			</a>
			<?php
		}
		?>
	</h2>

	<div class="form">
