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 --- blank/index.php | 6 +- bookmarks/index.php | 6 +- calculators/index.php | 6 +- computers/index.php | 6 +- guestbook/index.php | 6 +- guestbook/submit.php | 6 +- 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 -------------- index.php | 167 +++++++++++--------------------------------------- me/index.php | 4 +- pics/index.php | 6 +- projects/index.php | 6 +- 16 files changed, 113 insertions(+), 213 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 diff --git a/blank/index.php b/blank/index.php index 3f2dfc0..ae08eb1 100755 --- a/blank/index.php +++ b/blank/index.php @@ -3,7 +3,7 @@ - + Bookmarks @@ -14,7 +14,7 @@
- +
@@ -22,7 +22,7 @@
diff --git a/bookmarks/index.php b/bookmarks/index.php index 7bdb1ea..cdfa7bc 100755 --- a/bookmarks/index.php +++ b/bookmarks/index.php @@ -3,7 +3,7 @@ - + Bookmarks @@ -14,7 +14,7 @@
- +
@@ -48,7 +48,7 @@
diff --git a/calculators/index.php b/calculators/index.php index 1a9a600..c320f46 100755 --- a/calculators/index.php +++ b/calculators/index.php @@ -2,7 +2,7 @@ - + Calculators @@ -13,7 +13,7 @@
- +
@@ -134,7 +134,7 @@
diff --git a/computers/index.php b/computers/index.php index 1c85924..ea2b683 100755 --- a/computers/index.php +++ b/computers/index.php @@ -3,7 +3,7 @@ - + Computers @@ -14,7 +14,7 @@
- +
@@ -266,7 +266,7 @@
diff --git a/guestbook/index.php b/guestbook/index.php index c608664..b3ca930 100755 --- a/guestbook/index.php +++ b/guestbook/index.php @@ -3,7 +3,7 @@ - + Guestbook @@ -14,7 +14,7 @@
- +
@@ -64,7 +64,7 @@
diff --git a/guestbook/submit.php b/guestbook/submit.php index ffaf4a6..6c377b3 100755 --- a/guestbook/submit.php +++ b/guestbook/submit.php @@ -3,7 +3,7 @@ - + Guestbook @@ -12,7 +12,7 @@
- +
@@ -49,7 +49,7 @@
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 diff --git a/index.php b/index.php index 54be31a..ff8e6ee 100755 --- a/index.php +++ b/index.php @@ -1,143 +1,48 @@ + - - - - - ~floppydisk - - - + + + + + ~floppydisk + + + +
- -
-
- -

Hi!

-

This is the personal homepage of floppydisk. Every now and then, I - dabble in software/hardware projects, take pictures, or write - blogposts. -

- -

Music (that I like)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Title:  Goodbye
-Album:  Inside (The Songs)
-Artist: Bo Burnham
-				
Title:  Enjoy the Silence
-Album:  The Singles 86>98
-Artist: Depeche Mode
-				
Title:  Bizarre Love Triangle
-Album:  album
-Artist: New Order
-				
Title:  Crying in the Rain
-Album:  album
-Artist: a-ha
-				
Title:  Drama!
-Album:  album
-Artist: Erasure
-				
Title:  Stop!
-Album:  album
-Artist: Erasure
-				
Title:  Is This Love?
-Album:  album
-Artist: Alisson Moyet
-				
Title:  Two Birds
-Album:  Far
-Artist: Regina Spektor
-				
Title:  Maid Of Orleans
-Album:  album
-Artist: Orchestral Manoeuvres in the Dark
-				
Title:  Go!
-Album:  The Race For Space
-Artist: Public Service Broadcasting
-				
- - - -

Contact

-

Mail: floppydisk05@aol.com
- IRC: floppydisk @ r-type
-

- -

Elsewhere

-

Twitter: @floppydisk__
- GitHub: floppydisk05
-

-
- +
+
+ +

Hi!

+

This is the personal homepage of floppydisk. Every now and then, I + dabble in software/hardware projects, take pictures, or write + blogposts. +

+ + + +

Contact

+

Mail: contact@diskfloppy.me
+ IRC: floppydisk @ r-type
+

+ +

Elsewhere

+

Twitter: @floppydisk__
+ GitHub: floppydisk05
+ SDF: floppydisk.sdf. +

+
+
diff --git a/me/index.php b/me/index.php index 3b634cd..7cfdff3 100755 --- a/me/index.php +++ b/me/index.php @@ -3,7 +3,7 @@ - + Calculators @@ -14,7 +14,7 @@
- +
diff --git a/pics/index.php b/pics/index.php index baca07a..7d578c2 100755 --- a/pics/index.php +++ b/pics/index.php @@ -3,7 +3,7 @@ - + Pictures @@ -14,7 +14,7 @@
- +
@@ -22,7 +22,7 @@
diff --git a/projects/index.php b/projects/index.php index cd58291..03483ec 100755 --- a/projects/index.php +++ b/projects/index.php @@ -3,7 +3,7 @@ - + Projects @@ -14,7 +14,7 @@
- +
@@ -39,7 +39,7 @@
-- cgit v1.2.3-54-g00ecf