28 lines
720 B
PHP
28 lines
720 B
PHP
<?php
|
|
require_once 'header.php';
|
|
require_once __DIR__ . '/db/config.php';
|
|
|
|
$db = db();
|
|
$stmt = $db->prepare("SELECT * FROM pages WHERE page_key = :page_key");
|
|
$stmt->bindValue(':page_key', 'about_us');
|
|
$stmt->execute();
|
|
$page = $stmt->fetch();
|
|
|
|
?>
|
|
|
|
<div class="container mt-5">
|
|
<div class="row">
|
|
<div class="col-lg-8 offset-lg-2">
|
|
<?php if ($page): ?>
|
|
<?php echo $page['content']; ?>
|
|
<?php else: ?>
|
|
<h1 class="text-center mb-4">About Us</h1>
|
|
<p class="lead">Content not found. Please set up the 'About Us' page in the admin dashboard.</p>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
require_once 'footer.php';
|
|
?>
|