__( 'General', 'ai-auto-seo' ),
'gpt' => __( 'GPT', 'ai-auto-seo' ),
'layout' => __( 'Layout', 'ai-auto-seo' ),
);
echo '
';
echo '';
// Show all tabs with Pro tooltips where needed
// Loop through each tab and output the HTML safely
foreach ( $tabs as $tab => $name ) {
// Determine the active class for the tab
$class = ( $tab === $active_tab ) ? ' nav-tab-active' : '';
// Output the tab without nonce
printf(
'%3$s',
esc_attr( $class ),
esc_url( add_query_arg(
array(
'post_type' => 'ws4agpt_gpt_post',
'page' => 'ws4agpt_gpt_settings',
'tab' => $tab,
),
admin_url( 'edit.php' )
) ),
esc_html( $name )
);
}
echo '
';
$ws4agpt = new WS4AGPT_Admin();
// Show the settings page content with Pro message for relevant tabs
switch ( $active_tab ) {
case 'general':
$ws4agpt->ws4agpt_general_settings();
break;
case 'gpt':
$ws4agpt->ws4agpt_gpt_settings();
break;
case 'layout':
$ws4agpt->ws4agpt_layout_settings();
break;
default:
$ws4agpt->ws4agpt_display_pro_message();
break;
}
?>