Refactor header PHP inclusion and fix typo in index.php

Moved PHP includes inside the `<head>` tag in `header.php` for proper structure and readability. Fixed a typo in variable name `$URLsorrection` in `index.php` to ensure correct script inclusion.
This commit is contained in:
Mark 2025-05-09 10:26:26 +01:00
parent 38f87cd598
commit 5be4001ee2
2 changed files with 7 additions and 8 deletions

View File

@ -1,13 +1,12 @@
<?php
include_once "meta/meta.php";
include_once "meta/config.php";
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<?php
include_once "meta/meta.php";
include_once "meta/config.php";
?>
<title>Warmseal - The Roofing Specialist</title> <title>Warmseal - The Roofing Specialist</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View File

@ -8,7 +8,7 @@ $PageDescription = "Trusted roofing specialists in the UK, Warmseal Roofing offe
include_once $URLcorrection . "includes/header.php"; include_once $URLcorrection . "includes/header.php";
include_once $URLcorrection . "includes/nav.php"; include_once $URLcorrection . "includes/nav.php";
include_once $URLcorrection . "includes/index-hero.php"; include_once $URLcorrection . "includes/index-hero.php";
include_once $URLsorrection . "sections/about-us.php"; include_once $URLcorrection . "sections/about-us.php";
include_once $URLcorrection . "sections/counter.php"; include_once $URLcorrection . "sections/counter.php";
include_once $URLcorrection . "sections/services.php"; include_once $URLcorrection . "sections/services.php";
include_once $URLcorrection . "sections/projectsphp"; include_once $URLcorrection . "sections/projectsphp";