aboutsummaryrefslogtreecommitdiff
path: root/app/views/partials/navigator.php
blob: e3f259ea91a824042d38eade3c41eb33cd848a76 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
    <nav id="navbar" class="navbar is-fixed-top" aria-label="main navigation">

        <div class="container">

            <div class="navbar-brand navbar__mobile__compact">

                <a href="/" class="navbar-item navbar__icon
                <?php echo $navigation->isActiveHome() ?? 'has-text-gray' ?>">
                    <div class="has-text-centered">
                    <?php echo file_get_contents(
                        $_SERVER['DOCUMENT_ROOT']
                            . '/..' . '/public/css/fonts/feather-icons/user.svg'
                    ) ?>
                    <p class="is-size-7 navbar__icon__align">Home</p>
                    </div>
                </a>

                <a href="/posts/" class="navbar-item navbar__icon
                <?php echo $navigation->isActive('posts') ?? 'has-text-gray' ?>">
                    <div class="has-text-centered">
                    <?php echo file_get_contents(
                        $_SERVER['DOCUMENT_ROOT']
                        . '/..' . '/public/css/fonts/feather-icons/book-open.svg'
                    ) ?>
                    <p class="is-size-7 navbar__icon__align">Posts</p>
                    </div>
                </a>

                <a href="/projects/" class="navbar-item navbar__icon
                <?php echo $navigation->isActive('projects') ?? 'has-text-gray' ?>">
                    <div class="has-text-centered">
                    <?php echo file_get_contents(
                        $_SERVER['DOCUMENT_ROOT']
                        . '/..' . '/public/css/fonts/feather-icons/briefcase.svg'
                    ) ?>
                    <p class="is-size-7 navbar__icon__align">Projects</p>
                    </div>
                </a>

                <a href="/contact/" class="navbar-item navbar__icon
                <?php echo $navigation->isActive('contact') ?? 'has-text-gray' ?>">
                    <div class="has-text-centered">
                    <?php echo file_get_contents(
                        $_SERVER['DOCUMENT_ROOT']
                        . '/..' . '/public/css/fonts/feather-icons/mail.svg'
                    ) ?>
                    <p class="is-size-7 navbar__icon__align">Contact</p>
                    </div>
                </a>

                <div id="navBurgerCompact"
                class="navbar-burger burger navbar__icon has-text-dark"
                data-target="navMenu">
                <a href="javascript:void(0)" class="navbar-item navbar__icon__menu">
                    <div class="has-text-centered">
                    <?php echo file_get_contents(
                        $_SERVER['DOCUMENT_ROOT']
                        . '/..' . '/public/css/fonts/feather-icons/menu.svg'
                    ) ?>
                    <p class="is-size-7 navbar__icon__align">Menu</p>
                    </div>
                </a>
                </div>

            </div>

            <div class="navbar-brand navbar__tablet__compact">

                <?php require $_SERVER['DOCUMENT_ROOT']
                . '/..' . '/app/views/partials/navigator.home.php'; ?>

                <?php require $_SERVER['DOCUMENT_ROOT']
                . '/..' . '/app/views/partials/navigator.links.php'; ?>

                <div id="navBurger"
                class="navbar-burger burger has-text-dark" data-target="navMenu">
                <a href="javascript:void(0)" class="navbar-item navbar__icon__menu">
                    <div class="has-text-centered">
                    <?php echo file_get_contents(
                        $_SERVER['DOCUMENT_ROOT']
                        . '/..' . '/public/css/fonts/feather-icons/menu.svg'
                    ) ?>
                    <p class="is-size-7 navbar__icon__align">Menu</p>
                    </div>
                </a>
                </div>

            </div>

            <div class="navbar-brand is-hidden-touch"></div>


            <div class="navbar-menu">

                <div class="columns is-centered has-margin-bottom-none">

                    <div class="navbar__left column">
                        <a title="Go to Website Repository"
                        href="https://www.thedroneely.com/git/explore/repos"
                        class="brand__custom is-inline-block">
                          Git Repo
                        </a>

                        <div class="navbar__separator is-inline-block"></div>

                        <div class ="is-inline-block theme-toggle">
                        <form method="get"
                        action="<?php echo $_SERVER['REQUEST_URI']; ?>">

                                <?php if ($theme->color() === 'dark') { ?>

                                <button title="Switch to Light Theme"
                                class="theme-toggle-button button is-text"
                                name="theme" type="submit" value="light">

                                <span class="theme-toggle-sun">
                                    <?php echo file_get_contents(
                                        $_SERVER['DOCUMENT_ROOT']
                                        . '/..'
                                        . '/public/css/fonts/feather-icons/sun.svg'
                                    ) ?>
                                </span>

                                <?php } else { ?>

                                <button title="Switch to Dark Theme"
                                class="theme-toggle-button button is-text"
                                name="theme" type="submit" value="dark">

                                <span class="theme-toggle-moon">
                                    <?php echo file_get_contents(
                                        $_SERVER['DOCUMENT_ROOT']
                                        . '/..'
                                        . '/public/css/fonts/feather-icons/moon.svg'
                                    ) ?>
                                </span>

                                <?php } ?>

                            </button>
                        </form>
                        </div>

                    </div>

                    <div class="navbar__left column is-2">
                        <?php require $_SERVER['DOCUMENT_ROOT']
                        . '/..' . '/app/views/partials/navigator.home.php'; ?>
                    </div>

                    <div class="navbar__right column is-5">
                        <?php require $_SERVER['DOCUMENT_ROOT']
                        . '/..' . '/app/views/partials/navigator.links.php'; ?>
                    </div>

                     <div class="navbar__right column">
                        <a title="Coffee"
                        href ="https://ko-fi.com/thedroneely"
                        class="navbar-item coffee button is-success
                        is-outlined is-inline-flex">
                        <?php echo file_get_contents(
                            $_SERVER['DOCUMENT_ROOT']
                            . '/..' . '/public/css/fonts/feather-icons/coffee.svg'
                        ) ?>
                        <span>Coffee</span>
                        </a>
                    </div>

                </div>

            </div>

        </div>
    </nav>

    <nav id="navMenu" class="navbar-menu is-hidden-desktop">
        <div id="navMenuContainer" class="navbar-end">

            <?php require $_SERVER['DOCUMENT_ROOT']
            . '/..' . '/app/views/partials/navigator.home.php'; ?>

            <?php require $_SERVER['DOCUMENT_ROOT']
            . '/..' . '/app/views/partials/navigator.links.php'; ?>

            <div class ="theme-toggle">
                <form method="get" action="<?php echo $_SERVER['REQUEST_URI']; ?>">

                    <?php if ($theme->color() === 'dark') { ?>

                    <button class="theme-toggle-button button is-text has-text-left is-block"
                    name="theme" type="submit" value="light">

                        <span class="theme-toggle-moon">Light</span>

                    <?php } else { ?>

                    <button class="theme-toggle-button button is-text has-text-left is-block"
                    name="theme" type="submit" value="dark">

                        <span class="theme-toggle-moon">Dark</span>

                    <?php } ?>

                    </button>
                </form>
            </div>

        </div>
    </nav>