From 938ce4e15e043f68919d47d52a9b161b3d1adc95 Mon Sep 17 00:00:00 2001 From: twotalesanimation <80506065+twotalesanimation@users.noreply.github.com> Date: Wed, 3 Dec 2025 16:46:41 +0200 Subject: [PATCH] Feat: Create unified header template (header.php) - Single source of truth for header code (consolidates header01.php and header02.php) - Configurable styling via $headerStyle variable ('dark' or 'light') - Conditional CSS and asset loading based on style - Logo and text colors automatically switch based on style - Eliminates 95% code duplication between two header files - JavaScript consolidated for profile menu and dropdowns - Navigation menu maintained in one place for easier updates Usage: $headerStyle = 'dark'; // Dark header with white text require_once("header.php"); OR $headerStyle = 'light'; // Light header with dark text require_once("header.php"); Next: Update all pages from header01.php/header02.php to use this new template --- header.php | 367 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 367 insertions(+) create mode 100644 header.php diff --git a/header.php b/header.php new file mode 100644 index 00000000..50b2bb91 --- /dev/null +++ b/header.php @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + 4WDCSA - The Four Wheel Drive Club of Southern Africa + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+ + +
+ +
+
+ +
+
+ +
+ + + + + + +
+
+
+ +
+ +