Initial commit
This commit is contained in:
27
app/Views/layouts/main.phtml
Normal file
27
app/Views/layouts/main.phtml
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title><?= $title ?? 'My PHP App' ?></title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
<?php if (\App\Core\Auth::check()): ?>
|
||||
<span>Welcome, <?= htmlspecialchars(\App\Core\Auth::user()) ?></span>
|
||||
<a href="/logout">Logout</a>
|
||||
<?php else: ?>
|
||||
<a href="/login">Login</a>
|
||||
<?php endif; ?>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
<!-- This is where the page content goes -->
|
||||
<?= $content ?>
|
||||
</main>
|
||||
|
||||
<footer>© <?= date('Y') ?> My Vanilla App</footer>
|
||||
<script src="/js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user