From 41efcbfbe5be1aafea665332f55cce74b27d6a3d Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 15 Nov 2022 22:20:35 +0000 Subject: Move header and footer to .inc.php --- inc/footer.inc.php | 5 +++++ inc/footer.php | 5 ----- inc/head.html | 4 ---- inc/header.inc.php | 4 ++++ inc/nav.inc.php | 42 ++++++++++++++++++++++++++++++++++++++++++ inc/nav.php | 47 ----------------------------------------------- 6 files changed, 51 insertions(+), 56 deletions(-) create mode 100644 inc/footer.inc.php delete mode 100644 inc/footer.php delete mode 100644 inc/head.html create mode 100644 inc/header.inc.php create mode 100644 inc/nav.inc.php delete mode 100644 inc/nav.php (limited to 'inc') diff --git a/inc/footer.inc.php b/inc/footer.inc.php new file mode 100644 index 0000000..adc7fc4 --- /dev/null +++ b/inc/footer.inc.php @@ -0,0 +1,5 @@ +
+
+    Valid CSS! Valid HTML 4.01!
+ Last Modified GMT +
diff --git a/inc/footer.php b/inc/footer.php deleted file mode 100644 index 13644a5..0000000 --- a/inc/footer.php +++ /dev/null @@ -1,5 +0,0 @@ -
-
-    Valid CSS! Valid HTML 4.01!
- Last Modified GMT -
diff --git a/inc/head.html b/inc/head.html deleted file mode 100644 index 93953e9..0000000 --- a/inc/head.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/inc/header.inc.php b/inc/header.inc.php new file mode 100644 index 0000000..93953e9 --- /dev/null +++ b/inc/header.inc.php @@ -0,0 +1,4 @@ + + + + diff --git a/inc/nav.inc.php b/inc/nav.inc.php new file mode 100644 index 0000000..7fa3348 --- /dev/null +++ b/inc/nav.inc.php @@ -0,0 +1,42 @@ + +
+ +
+ + ~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 diff --git a/inc/nav.php b/inc/nav.php deleted file mode 100644 index d0cc29c..0000000 --- a/inc/nav.php +++ /dev/null @@ -1,47 +0,0 @@ - -
- -
- - ~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