aboutsummaryrefslogtreecommitdiff
path: root/views/partials/navigator.php
blob: 78bb138750be485aad1f018a394601c41863eba1 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<nav class="flex -mx-2">

<a class="w-1/5 px-2 py-4 text-center" href="/" title="Home">

            <div class="inline-block text-gray-700 hover:text-gray-900 no-underline
            font-bold tracking-wider uppercase text-xs pb-1 text-center">
                <?php echo file_get_contents($_SERVER['DOCUMENT_ROOT']
                    . '/..'
                    . '/public/icons/feathericons/user.svg') ?>
                    <p class="py-1
                    <?php echo $navigation->isActiveHome() ?? 'text-gray-700' ?> hover:text-gray-900">
                    Home
                    </p>
            </div>

</a>

<a class="w-1/5 px-2 py-4 text-center" href="/posts/" title="Journal">

            <div class="inline-block text-gray-700 hover:text-gray-900 no-underline
            font-bold tracking-wider uppercase text-xs pb-1 text-center">
            <?php echo file_get_contents($_SERVER['DOCUMENT_ROOT']
                . '/..'
                . '/public/icons/feathericons/book-open.svg') ?>
                <p class="py-1
                <?php echo $navigation->isActive('/posts/') ?? 'text-gray-700' ?> hover:text-gray-900">
                Journal
                </p>
            </div>

</a>

<a class="w-1/5 px-2 py-4 text-center" href="/wall/" title="Wall">

        <div class="inline-block text-gray-700 hover:text-gray-900 no-underline
        font-bold tracking-wider uppercase text-xs pb-1 text-center">
            <?php echo file_get_contents($_SERVER['DOCUMENT_ROOT']
                . '/..'
                . '/public/icons/feathericons/message-square.svg') ?>
                <p class="py-1
                <?php echo $navigation->isActive('/wall/') ?? 'text-gray-700' ?> hover:text-gray-900">
                Wall
                </p>
        </div>

</a>

<a class="w-1/5 px-2 py-4 text-center" href="/about/" title="About">

        <div class="inline-block text-gray-700 hover:text-gray-900 no-underline
        font-bold tracking-wider uppercase text-xs pb-1 text-center">
            <?php echo file_get_contents($_SERVER['DOCUMENT_ROOT']
                . '/..'
                . '/public/icons/feathericons/help-circle.svg') ?>
                <p class="py-1
                <?php echo $navigation->isActive('/about/') ?? 'text-gray-700' ?> hover:text-gray-900">
                About
                </p>
        </div>

</a>

<a class="w-1/5 px-2 py-4 text-center" href="/contact/" title="Contact">

        <div class="inline-block text-gray-700 hover:text-gray-900 no-underline
        font-bold tracking-wider uppercase text-xs pb-1 text-center">
            <?php echo file_get_contents($_SERVER['DOCUMENT_ROOT']
                . '/..'
                . '/public/icons/feathericons/mail.svg') ?>
                <p class="py-1
                <?php echo $navigation->isActive('/contact/') ?? 'text-gray-700' ?> hover:text-gray-900">
                Contact
                </p>
       </div>

</a>

</nav>