- [index.php](/Users/tyemeclifford/Documents/GH/MyKeyser/index.php): events now appear before featured businesses, plus forum pretty-route fallback.

[events.php](/Users/tyemeclifford/Documents/GH/MyKeyser/events.php) and 
[admin/events.php](/Users/tyemeclifford/Documents/GH/MyKeyser/admin/events.php): 
event image uploads.
[menu.php](/Users/tyemeclifford/Documents/GH/MyKeyser/menu.php), 
[admin/menus.php](/Users/tyemeclifford/Documents/GH/MyKeyser/admin/menus.php), 
and 
[business.php](/Users/tyemeclifford/Documents/GH/MyKeyser/business.php): 
one configurable menu item image slot.
[account.php](/Users/tyemeclifford/Documents/GH/MyKeyser/account.php): 
circular avatar upload and crop controls.
[forum.php](/Users/tyemeclifford/Documents/GH/MyKeyser/forum.php), 
[admin/forum.php](/Users/tyemeclifford/Documents/GH/MyKeyser/admin/forum.php), 
[.htaccess](/Users/tyemeclifford/Documents/GH/MyKeyser/.htaccess), and 
[forum/index.php](/Users/tyemeclifford/Documents/GH/MyKeyser/forum/index.php): 
forum, categories, topic/reply uploads, permalinks, toggle/moderation.
[includes/db.php](/Users/tyemeclifford/Documents/GH/MyKeyser/includes/db.php) 
and 
[includes/functions.php](/Users/tyemeclifford/Documents/GH/MyKeyser/includes/functions.php): 
schema upgrades and shared upload/image helpers.
[assets/css/style.css](/Users/tyemeclifford/Documents/GH/MyKeyser/assets/css/style.css): 
neon styling for forum, images, avatars, attachments.
This commit is contained in:
Ty Clifford
2026-06-19 10:49:48 -04:00
parent 2ce3eec65d
commit 25327e3302
21 changed files with 1363 additions and 74 deletions
+8 -2
View File
@@ -136,7 +136,7 @@ $pageTitle = e($b['name']).' — Keyser, WV';
$activeNav = 'dir';
$reviews = qall("
SELECT r.*, u.username
SELECT r.*, u.username, u.avatar_path
FROM reviews r JOIN users u ON u.id = r.user_id
WHERE r.business_id = ? AND r.is_approved = 1
ORDER BY r.created_at DESC
@@ -403,6 +403,9 @@ include __DIR__.'/includes/header.php';
<?php endif; ?>
<?php foreach ($mitems[$s['id']] as $mi): ?>
<div class="menu-item">
<?php if (!empty($mi['image_path'])): ?>
<img src="<?=e($mi['image_path'])?>" alt="<?=e($mi['name'] ?? 'Menu item')?>" class="mi-image">
<?php endif; ?>
<div class="mi-info">
<div class="mi-name"><?=e($mi['name'] ?? '')?></div>
<?php if (!empty($mi['description'])): ?>
@@ -461,9 +464,12 @@ include __DIR__.'/includes/header.php';
<?php foreach ($reviews as $r): ?>
<div class="rev-card">
<div class="rev-hdr">
<div>
<div class="rev-user">
<?=userAvatarHtml($r, 'avatar-sm')?>
<div>
<div class="rev-author"><?=e($r['username'] ?? 'Anonymous')?></div>
<?=starDisplay((float)($r['rating'] ?? 0))?>
</div>
</div>
<div class="flex-row" style="gap:.5rem">
<span class="rev-date"><?=ago($r['created_at'] ?? '')?></span>