initial commit

This commit is contained in:
jan.skoda
2024-01-10 12:26:54 +01:00
commit c65052e5c4
62 changed files with 4307 additions and 0 deletions

43
page.php Normal file
View File

@@ -0,0 +1,43 @@
<?php
include_once 'models/Database.php';
include_once 'models/Pages.php';
include_once 'models/Menu.php';
include_once './Config.php';
$database = new Database();
$db = $database->getConnection();
$page = new Pages($db);
$menu = new Menu($db);
$page->link = $_GET['link'];
$post = $page->getPageByLink();
include('template/header.php');
?>
<title><?php echo $post['title']; ?> - <?= Config::WEBSITE_NAME ?></title>
<link href="css/style.css" rel="stylesheet" id="bootstrap-css">
<?php include('template/container.php');?>
<div class="container">
<?php include('template/topmenu.php');?>
<?php
$content = str_replace("\n\r", "<br><br>", $post['content']);
?>
<div class="col-md-10 blogShort">
<h2><?php echo $post['title']; ?></h2>
<br><br>
<article>
<p><?php echo $content; ?> </p>
</article>
</div>
<div class="col-md-12 gap10"></div>
</div>
<?php include('template/footer.php');?>