'home', 'setting' => 'setting', 'forum' => 'forum', 'group' => 'user', 'other' => 'other', 'health' => 'health', 'user' => 'user', 'thread' => 'thread', 'audit' => 'audit', 'attach' => 'attach', 'plugin' => 'plugin', 'theme' => 'theme', 'ai' => 'ai', 'api' => 'api', 'upgrade' => 'other', 'online_upgrade' => 'other', 'icon_preview' => 'icon_preview', 'log' => 'log', 'security' => 'security', 'notice' => 'notice', 'banned_ip' => 'security', 'banned_user' => 'security', ); if($route == 'plugin' && param(1) == 'scanner') { $active_nav = 'scanner'; } elseif($route == 'other' && param(1) == 'icon_preview') { $active_nav = 'icon_preview'; } else { $active_nav = isset($route_menu_map[$route]) ? $route_menu_map[$route] : 'home'; } $nav_section_map = array( 'setting' => 'general', 'forum' => 'content', 'thread' => 'content', 'audit' => 'content', 'attach' => 'content', 'user' => 'content', 'group' => 'content', 'security' => 'other', 'plugin' => 'extension', 'theme' => 'extension', 'ai' => 'extension', 'scanner' => 'extension', 'api' => 'extension', 'other' => 'other', 'health' => 'other', 'icon_preview' => 'other', 'log' => 'other', 'notice' => 'other', ); $nav_icon_map = array( 'home' => 'ti-dashboard', 'setting' => 'ti-settings', 'forum' => 'ti-message-circle', 'thread' => 'ti-file-text', 'audit' => 'ti-clipboard-check', 'attach' => 'ti-paperclip', 'user' => 'ti-users', 'group' => 'ti-shield-lock', 'security' => 'ti-shield-lock', 'plugin' => 'ti-puzzle', 'theme' => 'ti-palette', 'ai' => 'ti-robot', 'scanner' => 'ti-search', 'api' => 'ti-code', 'other' => 'ti-tool', 'health' => 'ti-heart-rate-monitor', 'icon_preview' => 'ti-icons', 'log' => 'ti-file-text', 'notice' => 'ti-bell', ); $nav_text_map = array( 'home' => lang('admin_dashboard'), 'setting' => lang('admin_site_setting'), 'forum' => lang('admin_forum_manage'), 'thread' => lang('admin_thread_manage'), 'audit' => lang('admin_content_audit'), 'attach' => lang('admin_attach_manage'), 'user' => lang('admin_user_manage'), 'group' => lang('admin_user_group'), 'security' => lang('admin_security_setting_short'), 'plugin' => lang('admin_plugin_manage'), 'theme' => lang('admin_theme_manage'), 'ai' => lang('admin_setting_ai'), 'scanner' => lang('admin_plugin_scanner'), 'notice' => lang('admin_system_notice'), 'api' => 'API', 'other' => lang('admin_system_tools'), 'health' => lang('admin_site_health'), 'icon_preview' => lang('admin_icon_preview'), 'log' => lang('admin_log_short'), ); ?>