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
+6 -8
View File
@@ -1,14 +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">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
</head>
<html>
<?php echo head("Home"); ?>
<body class="dark:bg-neutral-950">
<header id="_header_icon_nav_h10_001" class="relative bg-white dark:bg-neutral-950 border-b border-slate-100 dark:border-neutral-900">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
+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>