- initial

This commit is contained in:
Ty Clifford
2026-04-24 08:41:52 -04:00
commit b57091e4ad
49 changed files with 7371 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title><?=e($pageTitle??'Discover Keyser WV')?></title>
<meta name="description" content="<?=e($pageDesc??'Discover Keyser, West Virginia — The Friendliest City in the U.S.A. Business directory, attractions, events and local information.')?>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Oswald:wght@400;500;600&family=Source+Sans+3:wght@300;400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/css/style.css">
<?=$headExtra??''?>
</head>
<body>
<nav class="navbar" id="navbar">
<div class="nav-wrap">
<a href="/index.php" class="nav-brand">
<span class="brand-mtn">⛰</span>
<div><span class="brand-city">KEYSER</span><span class="brand-wv">WEST VIRGINIA</span></div>
</a>
<button class="hamburger" id="ham" aria-label="Toggle navigation">
<span></span><span></span><span></span>
</button>
<ul class="nav-links" id="navLinks">
<li><a href="/index.php" class="nl<?=($activeNav??'')==='home'?' active':''?>">Home</a></li>
<li><a href="/directory.php" class="nl<?=($activeNav??'')==='dir'?' active':''?>">Directory</a></li>
<li><a href="/attractions.php" class="nl<?=($activeNav??'')==='attr'?' active':''?>">Attractions</a></li>
<li><a href="/events.php" class="nl<?=($activeNav??'')==='events'?' active':''?>">Events</a></li>
<li><a href="/about.php" class="nl<?=($activeNav??'')==='about'?' active':''?>">About</a></li>
<?php if (authed()): ?>
<?php if (isAdmin()): ?>
<li><a href="/admin/" class="nl nl-admin">⚙ Admin</a></li>
<?php else: ?>
<li><a href="/dashboard.php" class="nl">My Listings</a></li>
<?php endif; ?>
<li class="user-wrap">
<button class="user-btn" id="userBtn">👤 <?=e(uname())?> ▾</button>
<div class="user-dd" id="userDd">
<a href="/dashboard.php">Dashboard</a>
<a href="/account.php">Account Settings</a>
<hr>
<a href="/logout.php">Sign Out</a>
</div>
</li>
<?php else: ?>
<li><a href="/login.php" class="nl">Login</a></li>
<?php if (setting('registration_enabled','1') === '1'): ?>
<li><a href="/register.php" class="nl nl-join">Sign Up</a></li>
<?php endif; ?>
<?php endif; ?>
</ul>
</div>
</nav>
<?php foreach (getFlashes() as [$type,$msg]): ?>
<div class="flash f-<?=e($type)?>" role="alert">
<span><?=e($msg)?></span>
<button onclick="this.parentElement.remove()" aria-label="Dismiss">✕</button>
</div>
<?php endforeach; ?>
<main id="top">