summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-27 15:01:38 +0500
committerilotterytea <iltsu@alright.party>2025-05-27 15:01:38 +0500
commitb16ba03a742c596566fa222a17127e597bd0221d (patch)
tree0ed7f63746cafb7251e4a209242ca1beb4b0f5a1
parent7dee6883e21e2faa03226a955d0a326071595f42 (diff)
feat: mirrors
-rw-r--r--lib/partials.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/partials.php b/lib/partials.php
index 1498425..25c6632 100644
--- a/lib/partials.php
+++ b/lib/partials.php
@@ -29,6 +29,19 @@ function html_footer()
echo '' ?>
<footer class="column justify-center align-center gap-8">
+ <?php if (array_key_exists(INSTANCE_URL, INSTANCE_MIRRORS)): ?>
+ <p>You are using a mirror for <?= INSTANCE_MIRRORS[INSTANCE_URL] ?>. <a href="<?= INSTANCE_ORIGINAL_URL ?>">[ Check
+ out the origin website ]</a></p>
+ <?php elseif (!empty(INSTANCE_MIRRORS)): ?>
+ <div class="row gap-8">
+ <p>Mirrors:</p>
+ <ul class="row gap-4" style="list-style: none;">
+ <?php foreach (INSTANCE_MIRRORS as $url => $name): ?>
+ <li><a href="<?= $url ?>"><?= $name ?></a></li>
+ <?php endforeach; ?>
+ </ul>
+ </div>
+ <?php endif; ?>
<p>Serving <?= count($files) ?> files and <?= sprintf("%.2f", $file_size) ?>MB of active content</p>
</footer>
<?php ;