router = new WP108_CP_Router(); } /** * Render admin page */ public function render() { $current_route = $this->router->get_current_route(); $view_file = $this->router->get_current_view(); // Include admin wrapper include WP108_CP_PLUGIN_DIR . 'includes/views/admin-wrapper.php'; } /** * Get dashboard statistics (for lite - show upgrade prompt) */ public function get_dashboard_stats() { return array( 'total_blocks' => 0, 'active_protections' => $this->get_active_protections_count(), 'is_lite' => true, ); } /** * Get active protections count */ private function get_active_protections_count() { $options = get_option('wp108_cp_options', array()); $count = 0; // Count all enabled protections foreach ($options as $key => $value) { if ($value) { $count++; } } return $count; } }