summaryrefslogtreecommitdiff
path: root/lib/partials.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-09-29 17:09:39 +0500
committerilotterytea <iltsu@alright.party>2025-09-29 17:09:39 +0500
commit30b012dcc983beffa67526341d291cfcad2b1d9f (patch)
treef14faee74cfb6b4342362b8ec12497054cd56a37 /lib/partials.php
parent70e511524b1f19aa221e2d47654c64c326054a95 (diff)
feat: statistics
Diffstat (limited to 'lib/partials.php')
-rw-r--r--lib/partials.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/partials.php b/lib/partials.php
index 288f660..5e187a5 100644
--- a/lib/partials.php
+++ b/lib/partials.php
@@ -159,7 +159,14 @@ function html_footer()
<p><a href="<?= $link ?>"><?= $title ?></a></p>
<?php endforeach; ?>
</div>
- <p>Serving <?= $file_count ?> files and <?= $file_size ?> of active content</p>
+ <p>
+ Serving <?= $file_count ?> files and <?= $file_size ?> of active content
+ <?php if (STATS_PUBLIC): ?>
+ <a href="/stats.php">
+ <img src="/static/img/icons/stats.png" alt="[Stats]">
+ </a>
+ <?php endif; ?>
+ </p>
</footer>
<?php ;
} \ No newline at end of file