diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-01 00:13:40 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-01 00:13:40 +0400 |
| commit | 618ad3e3c9f453e033eaa3fca60eeb5ebfef0344 (patch) | |
| tree | 2cfd24ad28cf2eb667ad7b63e927b8ef7586a68f /lib | |
| parent | 0ac128d6a2df3a84f49a4d86cfbf501bbbb52a43 (diff) | |
feat: donation button
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/partials.php | 18 |
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 ; |
