From 199be00b8ce144ff1018ed00a4d69543115a93d2 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Mon, 19 Sep 2022 21:21:41 +0000 Subject: Move global head to file and split between page-specific and global --- inc/nav.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 inc/nav.php (limited to 'inc/nav.php') diff --git a/inc/nav.php b/inc/nav.php new file mode 100644 index 0000000..3f14fff --- /dev/null +++ b/inc/nav.php @@ -0,0 +1,44 @@ + +
+ +
+ + ~floppydisk / '; + $currentDir = basename(getcwd()); + foreach($uriArr as $page) { + if ($page !== $currentDir) { + if ($link !== '/') $link = $link . '/' . $page; + else $link = $link . $page; + $links = $links . '' . $page . ' / '; + } + } + $links = substr($links, 0, -3) . ' / ' . $currentDir; + echo $links; + } + } + ?> + + +
dark / light mode
+
+
\ No newline at end of file -- cgit v1.2.3-54-g00ecf