diff options
Diffstat (limited to 'includes/components/footer.inc')
-rw-r--r-- | includes/components/footer.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/components/footer.inc b/includes/components/footer.inc index 7cce7d4..26114a5 100644 --- a/includes/components/footer.inc +++ b/includes/components/footer.inc @@ -3,10 +3,12 @@ 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> @@ -22,9 +24,15 @@ global $pageFile; ?> © 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; if (($isLoggedIn || $isLowerLoggedIn) && !$use2023UI && isset($_COOKIE["enable2023UIcta"]) && $_COOKIE["enable2023UIcta"] === "yes") { ?> + <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> <script> let tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) @@ -32,11 +40,13 @@ global $pageFile; 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 + ")")); |