inital template
This commit is contained in:
60
index.php
Normal file
60
index.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
#=========================
|
||||
#
|
||||
# name: index.php
|
||||
# version: 2.1.0
|
||||
# from: 2021-01-23
|
||||
# developer: 4nima
|
||||
# tested with: nginx, php7
|
||||
# requirements: php, bootstrap, jQuery, ajax
|
||||
#
|
||||
#=========================
|
||||
# Default index.php
|
||||
# includs all other
|
||||
#
|
||||
#=========================
|
||||
|
||||
session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<?php
|
||||
#> inlcude config
|
||||
include_once('sources/config.php');
|
||||
|
||||
#> include sidecontrol
|
||||
include_once('sources/sides.php');
|
||||
|
||||
echo '<title>'.$sideTitle.'</title>';
|
||||
|
||||
?>
|
||||
<!-- metadata -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewpoint" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- include style -->
|
||||
<link rel="stylesheet" href="<?php echo $cssPath; ?>lib/bootstrap/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?php echo $cssPath; ?>lib/font-awesome/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="<?php echo $cssPath; ?>custom.css">
|
||||
|
||||
<!-- set favicon -->
|
||||
<link rel="shortcut icon" type="image/png" href="<?php echo $imgPath; ?>favicon.ico">
|
||||
|
||||
<!-- include js -->
|
||||
<script src="<?php echo $jsPath; ?>lib/jquery.js"></script>
|
||||
<script src="<?php echo $jsPath; ?>lib/bootstrap/bootstrap.min.js"></script>
|
||||
<script src="<?php echo $jsPath; ?>functions.js"></script>
|
||||
<script src="<?php echo $jsPath; ?>custom.js"></script>
|
||||
|
||||
</head>
|
||||
<body class="bg-<?php echo $colorTwo; ?>">
|
||||
<?php
|
||||
include($structurePath.'nav.php');
|
||||
echo '<section id="window" class="pt-5 pb-3 mt-3 container mr-auto">';
|
||||
include($frontendPath.$side);
|
||||
echo '</section>';
|
||||
include($structurePath.'footer.php');
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user