<?php

/**
 * Navigation tabs for Speed in China admin.
 *
 * Expects $speeinch_current_tab to be set before including this file.
 *
 * @package SpeedInChina
 */
if ( !defined( 'ABSPATH' ) ) {
    exit;
}
// Backwards-compat: older PRO templates set $current_tab; honor it as a fallback.
if ( !isset( $speeinch_current_tab ) ) {
    $speeinch_current_tab = ( isset( $current_tab ) ? $current_tab : '' );
}
?>
<nav class="nav-tab-wrapper">
	<a href="<?php 
echo esc_url( admin_url( 'admin.php?page=speed-in-china' ) );
?>" class="nav-tab <?php 
echo esc_attr( ( empty( $speeinch_current_tab ) ? 'nav-tab-active' : '' ) );
?>">
		<?php 
esc_html_e( 'Speed Test', 'speed-in-china' );
?>
	</a>
	<a href="<?php 
echo esc_url( admin_url( 'admin.php?page=speed-in-china&tab=optimizations' ) );
?>" class="nav-tab <?php 
echo esc_attr( ( 'optimizations' === $speeinch_current_tab ? 'nav-tab-active' : '' ) );
?>">
		<?php 
esc_html_e( 'Optimizations', 'speed-in-china' );
?>
	</a>
<?php 
// is__premium_only
?>
</nav>
