a basic skeleton is coming together...\nadded a header and footer to be used on all the pages

This commit is contained in:
hayden 2019-06-25 15:38:09 -05:00
parent 6b313a8ead
commit fbf666fea9
4 changed files with 52 additions and 0 deletions

12
core/footer.php Normal file
View File

@ -0,0 +1,12 @@
# - # - # - # - # - # - # - #
# #
# ~chan #
# - #
# by stilbruch #
# #
# - # - # - # - # - # - # - #
# this is such a lonely file...
</body>
</html>

21
core/header.php Normal file
View File

@ -0,0 +1,21 @@
<?php
# - # - # - # - # - # - # - #
# #
# ~chan #
# - #
# by stilbruch #
# #
# - # - # - # - # - # - # - #
// Load in display variables
$title = $title ?? '~chan';
?>
<html>
<head>
<link rel="stylesheet" href="/css/main.css">
<title><?php echo $title; ?></title>
</head>
<body>

3
css/main.css Normal file
View File

@ -0,0 +1,3 @@
body {
font-family: monospace;
}

View File

@ -1,3 +1,19 @@
<?php
# - # - # - # - # - # - # - #
# #
# ~chan #
# - #
# by stilbruch #
# #
# - # - # - # - # - # - # - #
$path = $_SERVER['DOCUMENT_ROOT'];
include($path . '/core/header.php');
echo "Hello World!1!"
?>
<?php
include($path . '/core/footer.php');
# the end...
?>