'opt-module-contact', 'name' => __('Contact Express', 'aio'), 'desc' => __('Floating contact buttons', 'aio')], ['id' => 'opt-module-performance', 'name' => __('Speed & Optimize', 'aio'), 'desc' => __('Speed up your site', 'aio')], ['id' => 'opt-module-optimizer', 'name' => __('SEO Pro', 'aio'), 'desc' => __('Automate On-page SEO', 'aio')], ['id' => 'opt-module-security', 'name' => __('Security Pro', 'aio'), 'desc' => __('Protect your site', 'aio')], ['id' => 'opt-module-db-cleaner', 'name' => __('Database Cleaner', 'aio'), 'desc' => __('Clean junk data', 'aio')], ['id' => 'opt-module-smtp', 'name' => __('SMTP Settings', 'aio'), 'desc' => __('Configure email delivery', 'aio')], ['id' => 'opt-module-messenger', 'name' => __('Messenger', 'aio'), 'desc' => __('Chat & Notifications', 'aio')], ]; if ( class_exists('WooCommerce') ) { $modules[] = ['id' => 'opt-module-woocommerce', 'name' => __('WooCommerce', 'aio'), 'desc' => __('Optimized Woo checkout', 'aio')]; } foreach ($modules as $mod) { // By default, modules are considered ENABLED if the setting is not strictly false/empty. // We'll set a default of 'checked' unless explicitly turned off. $is_checked = !isset($settings[$mod['id']]) || !empty($settings[$mod['id']]); ?>