summaryrefslogtreecommitdiff
path: root/includes/components/footer.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-07-20 18:29:09 +0200
committerRaindropsSys <contact@minteck.org>2023-07-20 18:29:09 +0200
commit46251292b5c8b431de66aeff473594ccec60e04c (patch)
treec9f2c196e50f064a66625813660148379212d9d7 /includes/components/footer.inc
parent93c96fd1d89782570de9478c26f17b406e9dd7a0 (diff)
downloadpluralconnect-46251292b5c8b431de66aeff473594ccec60e04c.tar.gz
pluralconnect-46251292b5c8b431de66aeff473594ccec60e04c.tar.bz2
pluralconnect-46251292b5c8b431de66aeff473594ccec60e04c.zip
Updated 19 files and added 26 files (automated)
Diffstat (limited to 'includes/components/footer.inc')
-rw-r--r--includes/components/footer.inc10
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 + ")"));