site-proximo/includes/template.php

78 lines
3.3 KiB
PHP
Raw Normal View History

2019-07-31 20:37:37 +02:00
<?php
if (!isset($relativePath))
$relativePath = "";
if (!isset($pageScripts))
$pageScripts = "";
2019-08-01 00:09:20 +02:00
if (!isset($hasHeader))
$hasHeader = false;
2019-07-31 20:37:37 +02:00
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?= $pageTitle ?> | Proximo</title>
<link href="https://fonts.googleapis.com/css?family=Open+sans|Roboto" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
<link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/general.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/index.css" media="screen,projection"/>
2019-08-01 00:09:20 +02:00
<link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/hamburger.css"
media="screen,projection"/>
2019-07-31 20:37:37 +02:00
<link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/sidenav.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/bootstrapOverwrite.css"
media="screen,projection"/>
<link rel="icon" type="image/png" href="<?= $relativePath ?>assets/images/favicon.png">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<div id="mainContainer">
<?php
2019-08-01 00:09:20 +02:00
if (isset($header)) {
echo $header;
}
2019-07-31 20:37:37 +02:00
include($relativePath . "includes/navbar.php");
include($relativePath . "includes/sidenav.php");
?>
<div class="mt-4" id="contentContainer">
<?= $pageContent ?>
</div>
2019-08-01 00:09:20 +02:00
2019-07-31 20:37:37 +02:00
<?php include($relativePath . "includes/footer.php") ?>
</div>
<div id="scrollIndicator" style="display: none;">
<i class="fas fa-angle-double-down"></i>
</div>
<!--JavaScript at end of body for optimized loading-->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"
integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"
integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>
<script type="text/javascript" src="<?= $relativePath ?>assets/js/init.js"></script>
<script type="text/javascript" src="<?= $relativePath ?>assets/js/sidenav.js"></script>
<?= $pageScripts ?>
</body>
</html>