diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-18 11:34:36 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-18 11:34:36 +0100 |
commit | 9337aae8b1c87fad34884dacd5cd79d9591c60db (patch) | |
tree | 5340f9fa67cd6236e4c879f0057d51d0b1e21361 /includes/components/footer.inc | |
parent | 953ddd82e48dd206cef5ac94456549aed13b3ad5 (diff) | |
download | pluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.tar.gz pluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.tar.bz2 pluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.zip |
Updated 39 files, added 86 files, deleted 40 files and renamed 2 files (automated)
Diffstat (limited to 'includes/components/footer.inc')
-rw-r--r-- | includes/components/footer.inc | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/includes/components/footer.inc b/includes/components/footer.inc index a348ce4..c062436 100644 --- a/includes/components/footer.inc +++ b/includes/components/footer.inc @@ -2,37 +2,11 @@ global $start; $GLOBALS["ColdHazePerformance"]["page"] = (microtime(true) - $start) * 1000; $start = microtime(true); -global $pageFile; -global $use2023UI; ?> <script src="/assets/editor/ua-parser.js"></script> -<?php if (!$use2023UI): ?> -<div id="footer-pre"></div> -<div id="footer"> - <hr> - <div class="container text-muted"> - <?php - - $refresh = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/refresh.json"), true); - $version = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/version.json"), true); - - global $lang; global $pages; - - $time = microtime(true) - $GLOBALS["ColdHazeStart"]; - - ?> - © 2022-<?= date("Y") ?> <a href="https://equestria.dev" target="_blank" class="text-muted"><?= $lang["footer"]["copyright"] ?></a> · build <?= $version["build"] ?>.<?= $version["revision"] ?>, took <?= round($time * 1000, 2) ?> ms - <?php global $use2023UI; global $isLoggedIn; global $isLowerLoggedIn; global $_PROFILE; if (($isLoggedIn || $isLowerLoggedIn) && !$use2023UI && ((isset($_COOKIE["enable2023UIcta"]) && $_COOKIE["enable2023UIcta"] === "yes") || ($_PROFILE["login"] === "raindrops"))) { ?> - <br> - <a class="text-muted" href="#" data-bs-toggle="modal" data-bs-target="#new-ui-cta" onclick="newShape();">Enable Cold Haze's experimental new shape</a> - <?php } ?> - <br><br><br><br><br> - </div> -</div> -<?php else: ?><br><br><?php endif; ?> -</main> +<br><br></main> <script> let tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) @@ -40,15 +14,7 @@ global $use2023UI; return new bootstrap.Tooltip(tooltipTriggerEl) }); - <?php if (!$use2023UI): ?> - Array.from(document.querySelectorAll('[data-bs-toggle="tooltip"]')).forEach((item) => { - if (!item.classList.contains("tooltip-nohelp")) { - item.style.cursor = "help"; - } - }); - <?php endif; ?> - - //window.fetch("/api/rename?name=" + encodeURIComponent("Cold Haze Web (" + UAParser().browser.name + " on " + UAParser().os.name + ")")); + window.fetch("/api/rename?name=" + encodeURIComponent("Cold Haze Web (" + UAParser().browser.name + " on " + UAParser().os.name + ")")); if (document.createElement("canvas").getContext("webgl") === null) { let style = document.createElement("style"); @@ -62,7 +28,5 @@ global $use2023UI; <pre><?php $GLOBALS["ColdHazePerformance"]["footer"] = (microtime(true) - $start) * 1000; var_dump($GLOBALS["ColdHazePerformance"]); ?></pre> <?php endif; ?> -<?php global $isLoggedIn; global $isLowerLoggedIn; if ($isLoggedIn || $isLowerLoggedIn) require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/components/explicit.php"; ?> - </body> </html>
\ No newline at end of file |