'dashboard', 'name' => __('Dashboard', 'aio-tools'), 'icon' => 'ph-squares-four', 'module' => '' ], [ 'id' => 'utility', 'name' => __('Utility', 'aio-tools'), 'icon' => 'ph-wrench', 'module' => 'opt-module-utility' ], [ 'id' => 'security', 'name' => __('Security', 'aio-tools'), 'icon' => 'ph-shield-check', 'module' => 'opt-module-security' ], [ 'id' => 'seo', 'name' => __('SEO', 'aio-tools'), 'icon' => 'ph-magnifying-glass', 'module' => 'opt-module-optimizer' ], [ 'id' => 'performance', 'name' => __('Speed & Optimize', 'aio-tools'), 'icon' => 'ph-lightning', 'module' => 'opt-module-performance' ], [ 'id' => 'db_cleaner', 'name' => __('Database Cleaner', 'aio-tools'), 'icon' => 'ph-broom', 'module' => 'opt-module-db-cleaner' ], [ 'id' => 'contact', 'name' => __('Contact Express', 'aio-tools'), 'icon' => 'ph-address-book', 'module' => 'opt-module-contact' ], [ 'id' => 'messenger', 'name' => __('Messenger', 'aio-tools'), 'icon' => 'ph-chat-circle-dots', 'module' => 'opt-module-messenger' ], [ 'id' => 'login_ui', 'name' => __('Login UI', 'aio-tools'), 'icon' => 'ph-paint-brush-broad', 'module' => 'opt-module-login-ui' ], [ 'id' => 'social_login', 'name' => __('Social Login', 'aio-tools'), 'icon' => 'ph-users', 'module' => 'opt-module-social-login' ], [ 'id' => 'smtp', 'name' => __('SMTP Settings', 'aio-tools'), 'icon' => 'ph-envelope-simple', 'module' => 'opt-module-smtp' ], [ 'id' => 'header_footer', 'name' => __('Header & Footer', 'aio-tools'), 'icon' => 'ph-code', 'module' => 'opt-module-header-footer' ] ]; if ( class_exists( 'WooCommerce' ) ) { $tabs[] = [ 'id' => 'woocommerce', 'name' => __('WooCommerce', 'aio-tools'), 'icon' => 'ph-shopping-cart', 'module' => 'opt-module-woocommerce' ]; } $tabs[] = [ 'id' => 'import_export', 'name' => __('Import / Export', 'aio-tools'), 'icon' => 'ph-arrows-left-right', 'module' => '' ]; // Determine active tab from URL or default $active_tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'dashboard'; // Make sure active tab is valid $valid_tabs = array_column($tabs, 'id'); if (!in_array($active_tab, $valid_tabs)) { $active_tab = 'dashboard'; } ?>