aboutsummaryrefslogtreecommitdiff
path: root/header.php
diff options
context:
space:
mode:
authorFrankie B <floppydisk05@aol.com>2022-09-19 20:55:29 +0000
committerFrankie B <floppydisk05@aol.com>2022-09-19 20:55:29 +0000
commit222d3303b4a9e53969ef224c245e028e6a31f989 (patch)
tree3cbccf76cf62599fc9a933939bd6e61998dfe102 /header.php
parent336095b59604771b456defdbe5c6240397e7245d (diff)
It's nav not header
Diffstat (limited to 'header.php')
-rw-r--r--header.php43
1 files changed, 0 insertions, 43 deletions
diff --git a/header.php b/header.php
deleted file mode 100644
index b9807a4..0000000
--- a/header.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="header">
- <nav>
- <div>
- <!--<a href="/me/">about</a> |
- <a href="/projects/">projects</a> |
- <a href="/pics/">pics</a> |-->
- <a href="/dog/">dog</a> |
- <a href="https://github.com/floppydisk05?tab=repositories">repos</a> |
- <a href="/calculators/">calculators</a> |
- <a href="/computers/">computers</a> |
- <a href="/bookmarks/">bookmarks</a> |
- <a href="https://blog.diskfloppy.me/">blog</a>
- </div>
- </nav>
- <div class="pagetree">
- <span class="title">
- <?php
- $uri = $_SERVER['REQUEST_URI'];
- if ($uri === '/') { echo '~floppydisk'; }
- else {
- $uri = substr(substr($uri, 1), 0, -1);
- if (!strpos($uri, '/')) {
- $uriArr = explode('/', $uri);
- $link = "/";
- $links = '<a href="/">~floppydisk</a> / ';
- $currentDir = basename(getcwd());
- foreach($uriArr as $page) {
- if ($page !== $currentDir) {
- if ($link !== '/') $link = $link . '/' . $page;
- else $link = $link . $page;
- $links = $links . '<a href="' . $link . '">' . $page . '</a> / ';
- }
- }
- $links = substr($links, 0, -3) . ' / ' . $currentDir;
- echo $links;
- }
- }
- ?>
-
- </span>
- <div style="float: right;"><a onclick="javascript:toggleTheme()">dark / light mode</a></div>
- </div>
-</div> <!-- header --> \ No newline at end of file