'1', 'footer_template' => 'Footer1' ); // Mock class for template rendering class MockFooterBase { public $aiautotool_footer_settings; public function __construct($settings) { $this->aiautotool_footer_settings = $settings; } } // Generate preview for each template for ($i = 1; $i <= 7; $i++) { $template_file = $template_dir . 'template-' . $i . '.php'; if (!file_exists($template_file)) { echo "Template $i not found: $template_file\n"; continue; } $mock = new MockFooterBase($mock_settings); // Capture template output ob_start(); include $template_file; $template_output = ob_get_clean(); // Create preview HTML $preview_html = <<