diff options
Diffstat (limited to 'includes/header.php')
-rw-r--r-- | includes/header.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/includes/header.php b/includes/header.php index fabbd60..42f3843 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,4 +1,12 @@ -<?php global $title; ?> +<?php global $title; + +$newBranding = false; + +if (time() > 1682240400) $newBranding = true; +if (isset($_GET["new"])) $newBranding = true; +if (isset($_COOKIE["new"])) $newBranding = true; + +?> <!DOCTYPE html> <html lang="en"> @@ -7,10 +15,10 @@ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> - <title><?= isset($title) ? $title . " | horsies" : "horsies" ?></title> + <title><?= $newBranding ? (isset($title) ? $title . " | Equestria.dev" : "Equestria.dev") : (isset($title) ? $title . " | horsies" : "horsies") ?></title> <link rel="stylesheet" href="/assets/bootstrap/main.css"> <link rel="stylesheet" href="/assets/main.css"> - <link rel="icon" href="/assets/favicon.svg"> + <link rel="icon" href="/assets/favicon<?= $newBranding ? "2" : "" ?>.svg"> <script src="/assets/bootstrap/main.js"></script> <script src="/assets/constellation.js"></script> </head> |