jimsite/index.php
2023-06-04 08:43:55 -04:00

48 lines
1.7 KiB
PHP

<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<script src="scripts/vendor/jquery-3.6.0.min.js"></script>
<script src="https://kit.fontawesome.com/09beb7ae4a.js" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="styles/reset.css">
<link rel="stylesheet" type="text/css" href="styles/common.css">
<link rel="stylesheet" type="text/css" href="styles/layout.css">
<link rel="stylesheet" type="text/css" href="styles/theme.css">
<?php include 'scripts/query_handler.php';?>
<title><?php
echo $page->name." | Jim Shepich";
?></title>
</head>
<body>
<header id="main-header" class="no-highlight">
<span class="silver-text">Jim Shepich III</span>
</header>
<nav id="main-navbar" class="no-highlight">
<?php include 'scripts/nav.php';?>
</nav>
<main>
<?php
if(isset($page->link)){
echo "<script>window.location.href = '".$page->link."'</script>";
//If the directory assigns the page to an external link, redirect to that location.
}
if(isset($page->iframe)){
echo "<iframe id='content' src='pages/".$page->file."'></iframe>";
//If the directory says to embed the page in an iframe, then do that.
} else {
echo file_get_contents(__DIR__ ."/pages/".$page->file);
//Otherwise, just write the HTML of the page in the content area.
}
?>
</main>
<footer>
<div id="socials" class="silver-text"><?php include 'scripts/footer.php';?></div>
</footer>
</body>
<script src="scripts/resize.js"></script>
</html>