Add separate PHP files for template hooks and processing