- Introduced meta.php to handle meta tags dynamically based on the presence of values in the $ometa array. - Set default values for meta tags using predefined variables if $ometa values are not set. - Included essential meta tags for SEO and social media sharing, including Open Graph and Twitter cards. - Ensured compatibility with various devices by adding viewport and charset meta tags.
52 lines
3.3 KiB
PHP
52 lines
3.3 KiB
PHP
<?php
|
|
|
|
//PAGE VARIABLES GLOBALS USER OVERIDES TO REPLACE DEFAULTS
|
|
$metatitle = "Warmseal Roofing - $PageTitle";
|
|
$metadescription = "Trusted roofing specialists in the UK, Warmseal Roofing offers expert roof repairs, installations, and maintenance with quality workmanship and guaranteed results.";
|
|
$metakeywords = "roofing, roof repairs, roof installation, roofing specialists, roofing maintenance, quality workmanship, guaranteed results, UK roofing, Warmseal Roofing";
|
|
$metarobots = "index, follow";
|
|
$metalanguage = "en";
|
|
$metarevisit = "7 days";
|
|
$metaauthor = "Warmseal Roofing";
|
|
$metaappleicon = "$URLcorrection/meta/favicons/apple-touch-icon.png";
|
|
$metaicon32 = "$URLcorrection/meta/favicons/favicon-32x32.png";
|
|
$metaicon16 = "$URLcorrection/meta/favicons/favicon-16x16.png";
|
|
$metamanifest = "$URLcorrection/meta/favicons/site.webmanifest";
|
|
$metaogtype = "website";
|
|
$metaogurl = "https://warmseal-roofing.co.uk";
|
|
$metaogtitle = "Warmseal Roofing - $PageTitle";
|
|
$metaogdescription = "Trusted roofing specialists in the UK, Warmseal Roofing offers expert roof repairs, installations, and maintenance with quality workmanship and guaranteed results.";
|
|
$metaogimage = "$URLcorrection/meta/favicons/android-chrome-512x512.png";
|
|
$metatwitterurl = "https://warmseal-roofing.co.uk";
|
|
$metatwittercard = "summary_large_image";
|
|
$metatwittertitle = "Warmseal Roofing - $PageTitle";
|
|
$metatwitterdescription = "Trusted roofing specialists in the UK, Warmseal Roofing offers expert roof repairs, installations, and maintenance with quality workmanship and guaranteed results.";
|
|
$metatwitterimage = "$URLcorrection/media/favicons/android-chrome-512x512.png";
|
|
|
|
|
|
|
|
//overide code example:
|
|
|
|
// $ometa['title'] = "Acorn Media - $PageTitle";
|
|
// $ometa['description'] = "Acorn Media: Your hub for business web hosting, website design, and digital media services, including advertising and social media management.";
|
|
// $ometa['keywords'] = "business hosting, web design, digital services, advertising solutions, social media management, online presence, marketing strategies, media solutions, domain registration, domain, hosting, logo design, branding";
|
|
// $ometa['robots'] = "index, follow";
|
|
// $ometa['language'] = "English";
|
|
// $ometa['revisit-after'] = "7 days";
|
|
// $ometa['author'] = "Acorn Media";
|
|
// $ometa['apple-touch-icon'] = "$URLcorrection/media/favicons/apple-touch-icon.png";
|
|
// $ometa['icon32'] = "$URLcorrection/media/favicons/favicon-32x32.png";
|
|
// $ometa['icon16'] = "$URLcorrection/media/favicons/favicon-16x16.png";
|
|
// $ometa['site.webmanifest'] = "$URLcorrection/media/favicons/site.webmanifest";
|
|
// $ometa['ogtype'] = "website";
|
|
// $ometa['ogurl'] = "https://acorn-media.co.uk/";
|
|
// $ometa['ogtitle'] = "Acorn Media - $PageTitle";
|
|
// $ometa['ogdescription'] = "Acorn Media: Your hub for business web hosting, website design, and digital media services, including advertising and social media management.";
|
|
// $ometa['ogimage'] = "$URLcorrection/media/favicons/android-chrome-512x512.png";
|
|
// $ometa['twittercard'] = "summary_large_image";
|
|
// $ometa['twittertitle'] = "Acorn Media - $PageTitle";
|
|
// $ometa['twitterdescription'] = "Acorn Media: Your hub for business web hosting, website design, and digital media services, including advertising and social media management.";
|
|
// $ometa['twitterimage'] = "$URLcorrection/media/favicons/android-chrome-512x512.png";
|
|
|
|
|