' . esc_html(__('Import failed:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '

'; } else { $analysis = $result; $notice = '

' . esc_html(__('The Design Reference project has been imported.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Detected', 'ai-webmaster-studio')) . ' ' . intval($analysis['counts']['files'] ?? 0) . ' ' . esc_html(__('files,', 'ai-webmaster-studio')) . ' ' . intval($analysis['counts']['components'] ?? 0) . ' ' . esc_html(__('components and', 'ai-webmaster-studio')) . ' ' . intval($analysis['counts']['pages'] ?? 0) . ' ' . esc_html(__('pages/views. The reference has been saved in AI Webmaster Studio memory.', 'ai-webmaster-studio')) . '

'; } } if ($action === 'clear_import') { delete_option('aiwest_lovable_last_zip'); delete_option('aiwest_lovable_last_extract_dir'); delete_option('aiwest_lovable_last_analysis'); if (class_exists('AIWEST_Memory')) { AIWEST_Memory::set('lovable_project_summary', '', 'lovable'); } $analysis = []; $notice = '

' . esc_html(__('The Design Reference has been removed from AI Webmaster Studio memory.', 'ai-webmaster-studio')) . '

'; } } ?>

Site Builder and enter an instruction, for example:', 'ai-webmaster-studio')); ?>