aboutsummaryrefslogtreecommitdiff
path: root/views/partials/navigator.php
blob: a455be223ad4ca49700f019544f419a2c330f9c9 (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
80
81
<nav>
    <ul class="list-reset">

        <li class="my-4 mr-4 inline">
            <a class="inline-block text-grey-darker hover:text-black no-underline
            font-bold tracking-wide uppercase text-xs pb-1" href="/" title="Home">
            <div class="text-center">
                <?php echo file_get_contents($_SERVER['DOCUMENT_ROOT']
                    . '/..'
                    . '/public/icons/feathericons/user.svg') ?>
                    <p class="py-1
                    <?php echo $navigation->isActiveHome() ?? 'text-grey-darker' ?> hover:text-black">
                    Home
                </p>
            </div>
            </a>
        </li>

        <li class="my-4 mr-4 inline">
            <a class="inline-block text-grey-darker hover:text-black no-underline
            font-bold tracking-wide uppercase text-xs pb-1" href="/posts/" title="Home">
            <div class="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-grey-darker' ?> hover:text-black">
                    Journal
                </p>
            </div>
            </a>
        </li>

        <li class="my-4 mr-4 inline">
            <a class="inline-block text-grey-darker hover:text-black no-underline
            font-bold tracking-wide uppercase text-xs pb-1" href="/wall/" title="Wall">
            <div class="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-grey-darker' ?> hover:text-black">
                    Wall
                </p>
            </div>
            </a>
        </li>

        <li class="my-4 mr-4 inline">
            <a class="inline-block text-grey-darker hover:text-black no-underline
            font-bold tracking-wide uppercase text-xs pb-1" href="/about/" title="About">
            <div class="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-grey-darker' ?> hover:text-black">
                    About
                </p>
            </div>
            </a>
        </li>

        <li class="my-4 mr-4 inline">
            <a class="inline-block text-grey-darker hover:text-black no-underline
            font-bold tracking-wide uppercase text-xs pb-1" href="/contact/" title="Contact">
            <div class="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-grey-darker' ?> hover:text-black">
                    Contact
                </p>
            </div>
            </a>
        </li>


    </ul>
</nav>