summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-06-01 00:13:40 +0400
committerilotterytea <iltsu@alright.party>2025-06-01 00:13:40 +0400
commit618ad3e3c9f453e033eaa3fca60eeb5ebfef0344 (patch)
tree2cfd24ad28cf2eb667ad7b63e927b8ef7586a68f
parent0ac128d6a2df3a84f49a4d86cfbf501bbbb52a43 (diff)
feat: donation button
-rw-r--r--lib/partials.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/partials.php b/lib/partials.php
index 8a7824e..2a33bd4 100644
--- a/lib/partials.php
+++ b/lib/partials.php
@@ -52,6 +52,24 @@ 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; ?>
<p>Serving <?= count($files) ?> files and <?= $file_size ?> of active content</p>
</footer>
<?php ;