summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-06-20 00:34:50 +0500
committerilotterytea <iltsu@alright.party>2025-06-20 00:34:50 +0500
commit9c0365b6523de38dd9c449b46b238c0dc642d6ef (patch)
tree7f10cf74321fce323442ca271addbda1d05ed27b
parent063b21f28fd70bb04524e04a489804e04293b900 (diff)
upd: use INSTANCE_FOOTER_LINKS instead of three different variables
-rw-r--r--lib/partials.php26
1 files changed, 5 insertions, 21 deletions
diff --git a/lib/partials.php b/lib/partials.php
index 64b12bd..6e1a182 100644
--- a/lib/partials.php
+++ b/lib/partials.php
@@ -115,27 +115,11 @@ function html_footer()
</ul>
</div>
<?php endif; ?>
- <?php if (!empty(INSTANCE_DONATIONS) && is_array(INSTANCE_DONATIONS)): ?>
- <div class="row gap-8">
- <details>
- <summary>Donate</summary>
-
- <table class="vertical">
- <?php foreach (INSTANCE_DONATIONS as $k => $v): ?>
- <tr>
- <th><?= $k ?></th>
- <td><?= $v ?></td>
- </tr>
- <?php endforeach; ?>
- </table>
- </details>
- </div>
- <?php elseif (!empty(INSTANCE_DONATIONS) && is_string(INSTANCE_DONATIONS)): ?>
- <p><a href="<?= INSTANCE_DONATIONS ?>">[Donate]</a></p>
- <?php endif; ?>
- <?php if (!empty(INSTANCE_TOR)): ?>
- <p><a href="<?= INSTANCE_TOR ?>">[Tor]</a></p>
- <?php endif; ?>
+ <div class="row gap-8">
+ <?php foreach (INSTANCE_FOOTER_LINKS as $title => $link): ?>
+ <p><a href="<?= $link ?>"><?= $title ?></a></p>
+ <?php endforeach; ?>
+ </div>
<p>Serving <?= $file_count ?> files and <?= $file_size ?> of active content</p>
</footer>
<?php ;