diff options
author | Thedro Neely <thedroneely@gmail.com> | 2021-04-30 03:51:13 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2021-04-30 15:31:01 -0400 |
commit | 9d39a7ba3de79e27029bb5c9c2d72e114d8fa795 (patch) | |
tree | 226696a3c635e5f91b1ca97edff49b7f34663f58 /app/views/components/context.menu.php | |
parent | fbd112c924190b1f622c59ff480f0cd2a2433249 (diff) | |
download | thedroneely.com-9d39a7ba3de79e27029bb5c9c2d72e114d8fa795.tar.gz thedroneely.com-9d39a7ba3de79e27029bb5c9c2d72e114d8fa795.tar.bz2 thedroneely.com-9d39a7ba3de79e27029bb5c9c2d72e114d8fa795.zip |
app/views/partials/navigator: Unify
Diffstat (limited to 'app/views/components/context.menu.php')
-rw-r--r-- | app/views/components/context.menu.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app/views/components/context.menu.php b/app/views/components/context.menu.php new file mode 100644 index 0000000..59f6610 --- /dev/null +++ b/app/views/components/context.menu.php @@ -0,0 +1,38 @@ +<div class="dropdown <?php echo $type ?? null ?>"> + <input + class="is-hidden dropdown-input" + type="checkbox" + id="dropdown-menu__<?php echo $id ?? null ?>" + /> + + <label class="dropdown-label" for="dropdown-menu__<?php echo $id ?? 'none' ?>"> + <?php echo $label ?? null ?> + </label> + + <div class="dropdown-menu"> + <div class="dropdown-content"> + <?php + + echo $content ?? null; + + if ($links ?? null === true) { + + $route = '/'; $label = 'Home'; include views('components', 'navigator.link.dropdown'); + $route = '/posts/'; $label = 'Posts'; include views('components', 'navigator.link.dropdown'); + $route = '/projects/'; $label = 'Projects'; include views('components', 'navigator.link.dropdown'); + $route = '/about/'; $label = 'Profile'; include views('components', 'navigator.link.dropdown'); + $route = '/contact/'; $label = 'Contact'; include views('components', 'navigator.link.dropdown'); + $route = '/git/'; $label = 'Repository'; include views('components', 'navigator.link.dropdown'); + $route = 'https://ko-fi.com/thedroneely'; $label = 'Coffee'; include views('components', 'navigator.link.dropdown'); + + $formClass = 'theme-toggle'; + $iconClass = 'is-hidden'; + $buttonClass ='navbar-item button theme-toggle-button is-text has-text-left'; + include views('components', 'theme.toggle'); + } + ?> + </div> + </div> +</div> + +<?php $type = $id = $label = $content = $links = null; ?> |