34853-vm/footer.php
2025-10-12 22:40:55 +00:00

48 lines
2.2 KiB
PHP

</main>
<footer class="py-4 bg-dark text-white">
<div class="container">
<div class="row">
<div class="col-md-4">
<h5>Quick Links</h5>
<ul class="list-unstyled">
<li><a href="index.php#hero" class="text-white">Home</a></li>
<li><a href="index.php#plans" class="text-white">Plans</a></li>
<li><a href="support.php" class="text-white">Support</a></li>
<li><a href="index.php#about" class="text-white">About</a></li>
<li><a href="index.php#contact" class="text-white">Contact</a></li>
</ul>
</div>
<div class="col-md-4">
<h5>Our Pages</h5>
<ul class="list-unstyled">
<?php
require_once __DIR__ . '/db/config.php';
try {
$pdo = db();
$stmt = $pdo->query("SELECT * FROM pages WHERE is_published = 1 ORDER BY title");
$pages = $stmt->fetchAll();
} catch (PDOException $e) {
error_log($e->getMessage());
$pages = [];
}
foreach ($pages as $page) {
echo '<li><a href="page.php?slug=' . htmlspecialchars($page['slug']) . '" class="text-white">' . htmlspecialchars($page['title']) . '</a></li>';
}
?>
</ul>
</div>
<div class="col-md-4">
<h5>Connect</h5>
<p>&copy; <?php echo date('Y'); ?> Australia Broadband Internet. All Rights Reserved.</p>
<p><a href="privacy.php" class="text-white">Privacy Policy</a></p>
</div>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>