You should be able to just add our header/footer code back into your template and update the integration file.
The integration file is located at includes/functions/integrations/functions_xenforo_v2.php. You would just need to copy the contents of that file and place it in the includes/integration.php file.
It's possible that you may need to update database information in the includes/config.php as well.