diff options
| author | ilotterytea <iltsu@alright.party> | 2025-03-23 04:25:46 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-03-23 04:25:46 +0500 |
| commit | 83db2ca649ee7d4068b070a032800037caf2e116 (patch) | |
| tree | 23c27c3c580ee70f9afff74d498899be055900e3 /lib | |
| parent | edfdd86ceb66211edb17f1a57930887beab01f32 (diff) | |
feat: footer
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 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 |
