Implemented fallbacks to PHP templates for header and footer.