Got header, footer, and navbar all working with php
This commit is contained in:
@@ -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">
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user