blob: b4c7dad4a7705ee3cc45f1729383b5c58f00827d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php // Base HTML layout: header with navigation, content slot, and footer.?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Camagru</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<nav>
<a href="/" class="logo">Camagru</a>
<div class="nav-links">
<a href="/gallery">Gallery</a>
<?php if (isset($_SESSION['user_id'])): ?>
<a href="/editor">Editor</a>
<a href="/profile">Profile</a>
<a href="/logout">Logout</a>
<?php else: ?>
<a href="/login">Login</a>
<a href="/register">Register</a>
<?php endif; ?>
</div>
</nav>
</header>
<main>
<?php include $content; ?>
</main>
<footer>
<p>Camagru © <?= date('Y') ?></p>
</footer>
<script src="/js/app.js"></script>
</body>
</html>
|