summaryrefslogtreecommitdiff
path: root/lib/partials.php
blob: 14984253b6b4fe2d871b0546d0c363d7a2788103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/../config.php';

function html_big_navbar()
{
    echo '' ?>
    <section class="column justify-center align-center navbar">
        <div class="column justify-center grow">
            <h1><img src="/static/img/brand/big.webp" alt="<?= INSTANCE_NAME ?>"></h1>
        </div>

        <div class="row justify-center">

        </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 ;
}