Got header, footer, and navbar all working with php

This commit is contained in:
2026-09-30 16:45:52 -06:00
parent f4b4a8ad76
commit 9a54dc351e
5 changed files with 417 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php $srv_root = __DIR__; $dots = "";
$slash_count = substr_count($srv_root, '/');
for ($i = 1; $i < $slash_count; $i++) {$dots .= "../";};?>
<?php include_once("$dots/includes/all.php"); ?>
<!DOCTYPE html>
<html lang="en">
<?php echo head("test"); ?>
<body>
<?php echo footer(); ?>
</body>
</html>