summaryrefslogtreecommitdiff
path: root/lib/partials.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/partials.php')
-rw-r--r--lib/partials.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/partials.php b/lib/partials.php
index 042e5a8..1498425 100644
--- a/lib/partials.php
+++ b/lib/partials.php
@@ -14,4 +14,22 @@ function html_big_navbar()
</div>
</section>
<?php ;
+}
+
+function html_footer()
+{
+ $files = glob(FILE_DIRECTORY . "/*.*");
+ $file_size = 0;
+
+ foreach ($files as $file) {
+ $file_size += filesize($file);
+ }
+
+ $file_size /= 1024 * 1024;
+
+ echo '' ?>
+ <footer class="column justify-center align-center gap-8">
+ <p>Serving <?= count($files) ?> files and <?= sprintf("%.2f", $file_size) ?>MB of active content</p>
+ </footer>
+ <?php ;
} \ No newline at end of file