- Added minified versions of JavaScript files including main, script, google-map, bootstrap-datepicker, and jquery.easing. - Implemented a datepicker for appointment dates and a timepicker for appointment times. - Introduced a carousel feature for image display with automatic sliding and responsive behavior. - Updated package.json to include scripts for minifying CSS and JS files, along with necessary dependencies.
298 lines
9.3 KiB
PHP
298 lines
9.3 KiB
PHP
<?php
|
|
|
|
$Ometa = array();
|
|
$meta = array();
|
|
|
|
include_once $URLcorrection . "meta/config.php";
|
|
include_once $URLcorrection . "meta/schema.php";
|
|
|
|
if (isset($ometa['title'])) {
|
|
$meta['title'] = $ometa['title'];
|
|
} else {
|
|
$meta['title'] = $metatitle;
|
|
}
|
|
if (isset($ometa['description'])) {
|
|
$meta['description'] = $ometa['description'];
|
|
} else {
|
|
$meta['description'] = $metadescription;
|
|
}
|
|
if (isset($ometa['keywords'])) {
|
|
$meta['keywords'] = $ometa['keywords'];
|
|
} else {
|
|
$meta['keywords'] = $metakeywords;
|
|
}
|
|
if (isset($ometa['robots'])) {
|
|
$meta['robots'] = $ometa['robots'];
|
|
} else {
|
|
$meta['robots'] = $metarobots;
|
|
}
|
|
if (isset($ometa['language'])) {
|
|
$meta['language'] = $ometa['language'];
|
|
} else {
|
|
$meta['language'] = $metalanguage;
|
|
}
|
|
if (isset($ometa['revisit-after'])) {
|
|
$meta['revisit-after'] = $ometa['revisit-after'];
|
|
} else {
|
|
$meta['revisit-after'] = $metarevisit;
|
|
}
|
|
if (isset($ometa['author'])) {
|
|
$meta['author'] = $ometa['author'];
|
|
} else {
|
|
$meta['author'] = $metaauthor;
|
|
}
|
|
if (isset($ometa['apple-touch-icon'])) {
|
|
$meta['apple-touch-icon'] = $ometa['apple-touch-icon'];
|
|
} else {
|
|
$meta['apple-touch-icon'] = $metaappleicon;
|
|
}
|
|
if (isset($ometa['icon32'])) {
|
|
$meta['icon32'] = $ometa['icon32'];
|
|
} else {
|
|
$meta['icon32'] = $metaicon32;
|
|
}
|
|
if (isset($ometa['icon16'])) {
|
|
$meta['icon16'] = $ometa['icon16'];
|
|
} else {
|
|
$meta['icon16'] = $metaicon16;
|
|
}
|
|
if (isset($ometa['site.webmanifest'])) {
|
|
$meta['site.webmanifest'] = $ometa['site.webmanifest'];
|
|
} else {
|
|
$meta['site.webmanifest'] = $metamanifest;
|
|
}
|
|
if (isset($ometa['ogtype'])) {
|
|
$meta['ogtype'] = $ometa['ogtype'];
|
|
} else {
|
|
$meta['ogtype'] = $metaogtype;
|
|
}
|
|
if (isset($ometa['ogurl'])) {
|
|
$meta['ogurl'] = $ometa['ogurl'];
|
|
} else {
|
|
$meta['ogurl'] = $metaogurl;
|
|
}
|
|
if (isset($ometa['ogtitle'])) {
|
|
$meta['ogtitle'] = $ometa['ogtitle'];
|
|
} else {
|
|
$meta['ogtitle'] = $metaogtitle;
|
|
}
|
|
if (isset($ometa['ogdescription'])) {
|
|
$meta['ogdescription'] = $ometa['ogdescription'];
|
|
} else {
|
|
$meta['ogdescription'] = $metaogdescription;
|
|
}
|
|
if (isset($ometa['ogimage'])) {
|
|
$meta['ogimage'] = $ometa['ogimage'];
|
|
} else {
|
|
$meta['ogimage'] = $metaogimage;
|
|
}
|
|
if (isset($ometa['twittercard'])) {
|
|
$meta['twittercard'] = $ometa['twittercard'];
|
|
} else {
|
|
$meta['twittercard'] = $metatwittercard;
|
|
}
|
|
if (isset($ometa['twitterurl'])) {
|
|
$meta['twitterurl'] = $ometa['twitterurl'];
|
|
} else {
|
|
$meta['twitterurl'] = $metatwitterurl;
|
|
}
|
|
if (isset($ometa['twittertitle'])) {
|
|
$meta['twittertitle'] = $ometa['twittertitle'];
|
|
} else {
|
|
$meta['twittertitle'] = $metatwittertitle;
|
|
}
|
|
if (isset($ometa['twitterdescription'])) {
|
|
$meta['twitterdescription'] = $ometa['twitterdescription'];
|
|
} else {
|
|
$meta['twitterdescription'] = $metatwitterdescription;
|
|
}
|
|
if (isset($ometa['twitterimage'])) {
|
|
$meta['twitterimage'] = $ometa['twitterimage'];
|
|
} else {
|
|
$meta['twitterimage'] = $metatwitterimage;
|
|
}
|
|
|
|
?>
|
|
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title><?= $meta['title'] ?></title>
|
|
|
|
<meta name="title" content="<?= $meta['title'] ?>">
|
|
<meta name="description" content="<?= $meta['description'] ?>">
|
|
<meta name="keywords" content="<?= $meta['keywords'] ?>">
|
|
<meta name="robots" content="<?= $meta['robots'] ?>">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="language" content="<?= $meta['language'] ?>">
|
|
<meta name="revisit-after" content="<?= $meta['revisit-after'] ?>">
|
|
<meta name="author" content="<?= $meta['author'] ?>">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="<?= $meta['apple-touch-icon'] ?>">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="<?= $meta['icon32'] ?>">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="<?= $meta['icon16'] ?>">
|
|
<!--<link rel="manifest" href="--><?php //=$meta['manifest']
|
|
?><!--">-->
|
|
<link rel="mask-icon" href="/meta/favicons/safari-pinned-tab.svg" color="#5bbad5">
|
|
<link rel="shortcut icon" href="/meta/favicons/favicon.ico">
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
<meta name="msapplication-config" content="/meta/favicons/browserconfig.xml">
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
<!-- Canonical URL -->
|
|
<link rel="canonical" href="https://warmseal-roofing.co.uk<?php echo $_SERVER['REQUEST_URI']; ?>" />
|
|
|
|
<!-- Open Graph / Facebook -->
|
|
<meta property="og:type" content="<?= $meta['ogtype'] ?>" />
|
|
<meta property="og:url" content="<?= $meta['ogurl'] ?>" />
|
|
<meta property="og:title" content="<?= $meta['ogtitle'] ?>" />
|
|
<meta property="og:description" content="<?= $meta['ogdescription'] ?>" />
|
|
<meta property="og:image" content="<?= $meta['ogimage'] ?>" />
|
|
|
|
<!-- Twitter -->
|
|
<meta property="twitter:card" content="<?= $meta['twittercard'] ?>" />
|
|
<meta property="twitter:url" content="<?= $meta['twitterurl'] ?>" />
|
|
<meta property="twitter:title" content="<?= $meta['twittertitle'] ?>" />
|
|
<meta property="twitter:description" content="<?= $meta['twitterdescription'] ?>" />
|
|
<meta property="twitter:image" content="<?= $meta['twitterimage'] ?>" />
|
|
|
|
<!-- Schema.org Structured Data -->
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "RoofingContractor",
|
|
"name": "Warmseal Roofing",
|
|
"alternateName": "Warmseal",
|
|
"description": "Professional roofer in Accrington, Lancashire providing expert roof repairs, installations, maintenance, guttering, and roofline services.",
|
|
"url": "https://warmseal-roofing.co.uk",
|
|
"logo": "https://warmseal-roofing.co.uk/images/logo/Warmseal-Blue.svg",
|
|
"image": "https://warmseal-roofing.co.uk/images/logo/Warmseal-Blue.svg",
|
|
"telephone": "+44-1254-123456",
|
|
"email": "info@warmseal-roofing.co.uk",
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"addressLocality": "Accrington",
|
|
"addressRegion": "Lancashire",
|
|
"addressCountry": "GB"
|
|
},
|
|
"geo": {
|
|
"@type": "GeoCoordinates",
|
|
"latitude": 53.7532,
|
|
"longitude": -2.3610
|
|
},
|
|
"areaServed": [{
|
|
"@type": "City",
|
|
"name": "Accrington"
|
|
},
|
|
{
|
|
"@type": "City",
|
|
"name": "Blackburn"
|
|
},
|
|
{
|
|
"@type": "City",
|
|
"name": "Preston"
|
|
},
|
|
{
|
|
"@type": "AdministrativeArea",
|
|
"name": "Lancashire"
|
|
}
|
|
],
|
|
"serviceType": [
|
|
"Roof Repairs",
|
|
"Roof Installation",
|
|
"Roof Maintenance",
|
|
"Emergency Roof Repairs",
|
|
"Gutter Installation",
|
|
"Gutter Cleaning",
|
|
"Roof Cleaning",
|
|
"Moss Removal",
|
|
"UPVC Roofline",
|
|
"Fascias and Soffits",
|
|
"Chimney Repairs",
|
|
"Leadwork",
|
|
"Storm Damage Repair"
|
|
],
|
|
"priceRange": "££",
|
|
"paymentAccepted": ["Cash", "Check", "Credit Card", "Bank Transfer"],
|
|
"currenciesAccepted": "GBP",
|
|
"openingHoursSpecification": [{
|
|
"@type": "OpeningHoursSpecification",
|
|
"dayOfWeek": [
|
|
"Monday",
|
|
"Tuesday",
|
|
"Wednesday",
|
|
"Thursday",
|
|
"Friday"
|
|
],
|
|
"opens": "08:00",
|
|
"closes": "18:00"
|
|
},
|
|
{
|
|
"@type": "OpeningHoursSpecification",
|
|
"dayOfWeek": "Saturday",
|
|
"opens": "08:00",
|
|
"closes": "16:00"
|
|
}
|
|
],
|
|
"hasOfferCatalog": {
|
|
"@type": "OfferCatalog",
|
|
"name": "Roofing Services",
|
|
"itemListElement": [{
|
|
"@type": "Offer",
|
|
"itemOffered": {
|
|
"@type": "Service",
|
|
"name": "Roof Repairs",
|
|
"description": "Expert roof repair services including leak repairs, tile replacement, and storm damage restoration."
|
|
}
|
|
},
|
|
{
|
|
"@type": "Offer",
|
|
"itemOffered": {
|
|
"@type": "Service",
|
|
"name": "New Roof Installation",
|
|
"description": "Complete new roof installations using quality materials with professional workmanship."
|
|
}
|
|
},
|
|
{
|
|
"@type": "Offer",
|
|
"itemOffered": {
|
|
"@type": "Service",
|
|
"name": "Gutter Services",
|
|
"description": "Gutter installation, cleaning, and maintenance services."
|
|
}
|
|
},
|
|
{
|
|
"@type": "Offer",
|
|
"itemOffered": {
|
|
"@type": "Service",
|
|
"name": "UPVC Roofline",
|
|
"description": "Fascias, soffits, and roofline installation and replacement services."
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"aggregateRating": {
|
|
"@type": "AggregateRating",
|
|
"ratingValue": "4.9",
|
|
"reviewCount": "47"
|
|
},
|
|
"sameAs": [
|
|
"https://www.facebook.com/profile.php?id=61576598612133",
|
|
"https://www.instagram.com/warmsealroofing"
|
|
]
|
|
}
|
|
</script>
|
|
|
|
<!-- Page-Specific Schema -->
|
|
<script type="application/ld+json">
|
|
<?php
|
|
$currentPage = isset($Page) ? $Page : 'index';
|
|
echo generatePageSchema($currentPage, $URLcorrection);
|
|
?>
|
|
</script>
|
|
|
|
<!-- Breadcrumb Schema -->
|
|
<script type="application/ld+json">
|
|
<?php
|
|
$currentPageTitle = isset($PageTitle) ? $PageTitle : 'Home';
|
|
echo generateBreadcrumbSchema($currentPage, $currentPageTitle);
|
|
?>
|
|
</script>
|