diff options
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 ; |
