- Replace inc/facebook-stats.php with inc/google-reviews.php: fetches
average star rating + review count from the Places API (New) instead
of Facebook's Graph API, same cache-to-JSON/fallback-on-failure shape
as before.
- index.php: stat card now shows the native star rating ("4.8★ average
rating") instead of a recommend %, sourced from Google. Drops the
Facebook-followers line entirely — Google's API has no equivalent and
showing a stale/static number wasn't worth keeping. "Follow on
Facebook" links elsewhere on the site are untouched.
- config.example.php: swap FB_PAGE_ID/FB_PAGE_ACCESS_TOKEN/
FB_STATS_CACHE_TTL/FB_FALLBACK_* for GOOGLE_PLACE_ID/
GOOGLE_PLACES_API_KEY/GOOGLE_STATS_CACHE_TTL/GOOGLE_FALLBACK_RATING/
GOOGLE_FALLBACK_REVIEW_COUNT (set to the pub's actual 4.8★/71 reviews),
with setup instructions in comments. config.php (gitignored) updated
to match.
- Remove the now-dead .stat-row CSS that only existed for the dropped
followers line; rebuild styles.css.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
291 lines
14 KiB
PHP
291 lines
14 KiB
PHP
<?php
|
||
require __DIR__ . '/config.php';
|
||
require __DIR__ . '/inc/google-reviews.php';
|
||
require __DIR__ . '/inc/announcements.php';
|
||
require __DIR__ . '/inc/hours.php';
|
||
$googleReviews = fritz_google_reviews();
|
||
$activeAnnouncements = get_active_announcements();
|
||
$hoursByDay = get_all_hours();
|
||
$siteUrl = rtrim(SITE_URL, '/');
|
||
?>
|
||
<!doctype html>
|
||
<html lang="en">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>The Old Fitz Public House</title>
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link rel="stylesheet" href="styles.css">
|
||
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Karla:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||
|
||
<meta name="description" content="The Old Fitz Public House — a traditional Irish pub in Marion, Indiana. Open Thursday through Saturday, 4–10pm. Family friendly, no reservations.">
|
||
<link rel="canonical" href="https://theoldfitz.daviddyer.me">
|
||
<meta name="color-scheme" content="light dark">
|
||
|
||
<!-- Social sharing (Open Graph / Twitter Card) -->
|
||
<meta property="og:type" content="website">
|
||
<meta property="og:site_name" content="The Old Fitz Public House">
|
||
<meta property="og:title" content="The Old Fitz Public House | Traditional Irish Pub in Marion, Indiana">
|
||
<meta property="og:description" content="A traditional Irish pub in Marion, Indiana. Open Thursday through Saturday, 4–10pm. Family friendly, no reservations.">
|
||
<meta property="og:url" content="<?= $siteUrl ?>/">
|
||
<meta property="og:image" content="<?= $siteUrl ?>/assets/og-image.png">
|
||
<meta property="og:image:width" content="1200">
|
||
<meta property="og:image:height" content="630">
|
||
<meta property="og:image:alt" content="The Old Fitz Public House">
|
||
<meta property="og:locale" content="en_US">
|
||
|
||
<meta name="twitter:card" content="summary_large_image">
|
||
<meta name="twitter:title" content="The Old Fitz Public House | Traditional Irish Pub in Marion, Indiana">
|
||
<meta name="twitter:description" content="A traditional Irish pub in Marion, Indiana. Open Thursday through Saturday, 4–10pm. Family friendly, no reservations.">
|
||
<meta name="twitter:image" content="<?= $siteUrl ?>/assets/og-image.png">
|
||
</head>
|
||
|
||
<body>
|
||
|
||
<a class="skip-link" href="#main">Skip to content</a>
|
||
|
||
<header class="site">
|
||
<div class="container nav-inner">
|
||
<a class="brand" href="./">
|
||
<img class="knot" src="./assets/knot.png" alt="">
|
||
<span>THE OLD FITZ</span>
|
||
</a>
|
||
<button type="button" class="nav-toggle" id="nav-toggle" aria-label="Toggle menu" aria-expanded="false" aria-controls="primary-nav">
|
||
<svg class="icon-menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round">
|
||
<line x1="3" y1="6" x2="21" y2="6" />
|
||
<line x1="3" y1="12" x2="21" y2="12" />
|
||
<line x1="3" y1="18" x2="21" y2="18" />
|
||
</svg>
|
||
<svg class="icon-close" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round">
|
||
<line x1="5" y1="5" x2="19" y2="19" />
|
||
<line x1="19" y1="5" x2="5" y2="19" />
|
||
</svg>
|
||
</button>
|
||
<nav class="links" id="primary-nav" aria-label="Primary">
|
||
<a href="#about">About</a>
|
||
<a href="#visit">Hours & Visit</a>
|
||
<a href="#music">Live Music</a>
|
||
<a href="menu.php">Menu</a>
|
||
<a href="#contact">Contact</a>
|
||
</nav>
|
||
<a class="nav-cta" href="https://www.google.com/maps/search/?api=1&query=100+N+Washington+St+Marion+IN" target="_blank" rel="noopener">Get Directions</a>
|
||
</div>
|
||
</header>
|
||
|
||
<?php
|
||
$bannerAnnouncements = array_filter($activeAnnouncements, function ($a) {
|
||
return !empty($a['show_banner']);
|
||
});
|
||
?>
|
||
<?php if (!empty($bannerAnnouncements)): ?>
|
||
<?php foreach ($bannerAnnouncements as $banner): ?>
|
||
<div class="announcement-banner banner-<?= htmlspecialchars($banner['type']) ?>" role="region" aria-label="Important Announcement">
|
||
<div class="container announcement-inner">
|
||
<span class="announcement-tag"><?= htmlspecialchars($banner['headline']) ?></span>
|
||
<span class="announcement-sep wrap-sep" aria-hidden="true">·</span>
|
||
<span class="announcement-text"><?= htmlspecialchars($banner['message']) ?></span>
|
||
</div>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
<?php endif; ?>
|
||
|
||
<main id="main">
|
||
|
||
<section class="hero">
|
||
<div class="hero-media" aria-hidden="true">
|
||
<div class="hero-scrim"></div>
|
||
</div>
|
||
<div class="container hero-inner">
|
||
<h1 class="hero-brand">
|
||
<img class="hero-logo" src="./assets/hero-logo.png" alt="The Old Fitz Public House">
|
||
</h1>
|
||
<p class="eyebrow">Marion, Indiana</p>
|
||
<!-- <h1>The Old Fitz</h1> -->
|
||
<!-- <p class="sub">Public House</p> -->
|
||
<div class="tagline-row">
|
||
<span>Traditional Irish Pub</span><span class="tag-sep wrap-sep" aria-hidden="true">·</span><span>Family Friendly</span><span class="tag-sep wrap-sep" aria-hidden="true">·</span><span>No Reservations</span>
|
||
</div>
|
||
<div class="hero-ctas">
|
||
<a class="btn btn-primary" href="https://www.google.com/maps/search/?api=1&query=100+N+Washington+St+Marion+IN" target="_blank" rel="noopener">Get Directions</a>
|
||
<a class="btn btn-outline" href="mailto:info@theoldfitzpub.com">Say Hello</a>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="about">
|
||
<div class="container">
|
||
<div class="about-grid">
|
||
<div class="reveal">
|
||
<p class="eyebrow">About the Pub</p>
|
||
<h2>A proper Irish pub, right on Washington Street.</h2>
|
||
<p class="lede">The Old Fitz Public House pours a traditional Irish pub experience in the middle of Marion — no pretense, no reservations, just a good pint and a warm room. Walk in Thursday through Saturday evening, grab a seat at the bar or a table for the family, and settle in.</p>
|
||
<p class="lede">The kitchen runs until 9, the bar stays open later for snacks, and regulars and first-timers get treated the same.</p>
|
||
</div>
|
||
<div class="stat-card reveal">
|
||
<span class="eyebrow">As the Regulars See It</span>
|
||
<div class="stat-big"><?= number_format((float) $googleReviews['rating'], 1) ?>★</div>
|
||
<p class="stat-label">average rating</p>
|
||
<p class="stat-source">Source: Google reviews (<?= (int) $googleReviews['review_count'] ?>)</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="visit" class="visit">
|
||
<div class="container">
|
||
<div class="section-head reveal">
|
||
<p class="eyebrow">Hours & Visit</p>
|
||
<h2>Three nights a week, doors open.</h2>
|
||
</div>
|
||
<div class="visit-grid">
|
||
<div class="card reveal">
|
||
<h3>On Tap Thu–Sat</h3>
|
||
<?php
|
||
$hoursAnnouncements = array_filter($activeAnnouncements, function ($a) {
|
||
return !empty($a['show_in_hours']);
|
||
});
|
||
?>
|
||
<?php foreach ($hoursAnnouncements as $hoursNotice): ?>
|
||
<div class="hours-alert alert-<?= htmlspecialchars($hoursNotice['type']) ?>">
|
||
<strong><?= htmlspecialchars($hoursNotice['headline']) ?>:</strong>
|
||
<span><?= htmlspecialchars($hoursNotice['message']) ?></span>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
<dl class="hours-list">
|
||
<?php foreach (hours_card_rows($hoursByDay) as $row): ?>
|
||
<div class="hours-row">
|
||
<dt><?= htmlspecialchars($row['label']) ?></dt>
|
||
<dd><?= htmlspecialchars($row['text']) ?></dd>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
</dl>
|
||
<?php $kitchenNote = hours_kitchen_note($hoursByDay); ?>
|
||
<p class="note"><?php if ($kitchenNote): ?><strong><?= htmlspecialchars($kitchenNote) ?></strong> — bar snacks stay out later. <?php endif; ?>Holiday hours may vary; check our Facebook page for the latest.</p>
|
||
</div>
|
||
<div class="card find-us reveal" id="contact">
|
||
<svg class="pin" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
||
<path d="M12 2C7.86 2 4.5 5.36 4.5 9.5c0 5.5 6.2 11.16 7.06 11.92a.7.7 0 0 0 .88 0C13.3 20.66 19.5 15 19.5 9.5 19.5 5.36 16.14 2 12 2Z" stroke="var(--gold)" stroke-width="1.4" />
|
||
<circle cx="12" cy="9.5" r="2.6" stroke="var(--gold)" stroke-width="1.4" />
|
||
</svg>
|
||
<h3>Find Us</h3>
|
||
<address>
|
||
100 N Washington Street<br>
|
||
Marion, Indiana
|
||
</address>
|
||
<div class="contact-list">
|
||
<a href="https://www.google.com/maps/search/?api=1&query=100+N+Washington+St+Marion+IN" target="_blank" rel="noopener">Get Directions →</a>
|
||
<a href="mailto:info@theoldfitzpub.com">info@theoldfitzpub.com</a>
|
||
</div>
|
||
<div class="social-row">
|
||
<a href="https://www.instagram.com/theoldfitzpub/?hl=en" target="_blank" rel="noopener" aria-label="The Old Fitz on Instagram">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6">
|
||
<rect x="3" y="3" width="18" height="18" rx="5" />
|
||
<circle cx="12" cy="12" r="4.2" />
|
||
<circle cx="17.2" cy="6.8" r="1" />
|
||
</svg>
|
||
</a>
|
||
<a href="https://www.facebook.com/profile.php?id=100086635646712" target="_blank" rel="noopener" aria-label="The Old Fitz on Facebook">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6">
|
||
<path d="M15 4h-2.2C10.7 4 9.5 5.3 9.5 7.3V10H7v3.2h2.5V21h3.3v-7.8h2.6l.4-3.2h-3V7.6c0-.8.4-1.3 1.4-1.3H15V4Z" />
|
||
</svg>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="music" class="music">
|
||
<div class="container">
|
||
<div class="rule-row reveal"><span class="line"></span><img class="knot" src="./assets/knot.png" alt=""><span class="line"></span></div>
|
||
|
||
<div class="music-grid">
|
||
<div class="music-photo-wrap reveal">
|
||
<img src="./assets/jesse-hart.jpg" alt="Jesse Hart performing live acoustic music" class="music-photo" loading="lazy">
|
||
</div>
|
||
|
||
<div class="music-content reveal">
|
||
<div class="section-head">
|
||
<p class="eyebrow">Live Music</p>
|
||
<h2>Some nights, there's music.</h2>
|
||
</div>
|
||
<p class="body">The Old Fitz brings in live acoustic sets on select evenings, featuring resident musician <strong>Jesse Hart</strong> alongside guest performers. Because dates are announced as they are booked, the best way to catch an upcoming set is to follow along on Facebook or Instagram, where new dates get posted first.</p>
|
||
<div class="hero-ctas">
|
||
<a class="btn btn-outline" href="https://www.facebook.com/profile.php?id=100086635646712" target="_blank" rel="noopener">Follow on Facebook</a>
|
||
<a class="btn btn-outline" href="https://www.instagram.com/theoldfitzpub/?hl=en" target="_blank" rel="noopener">Follow on Instagram</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="menu" class="menu-band">
|
||
<div class="container">
|
||
<div class="rule-row reveal"><span class="line"></span><img class="knot" src="./assets/knot.png" alt=""><span class="line"></span></div>
|
||
<div class="section-head reveal">
|
||
<p class="eyebrow">The Menu</p>
|
||
<h2>Pub food and a full bar, Thursday through Saturday.</h2>
|
||
</div>
|
||
<p class="body reveal">We serve traditional Irish staples, shareable plates, and hearty comfort food until 9 PM, with bar snacks staying out later. Explore our full kitchen menu or check Facebook for weekend chalkboard features.</p>
|
||
<div class="hero-ctas reveal">
|
||
<a class="btn btn-primary" href="menu.php">Explore Full Menu →</a>
|
||
<a class="btn btn-outline" href="https://www.facebook.com/profile.php?id=100086635646712" target="_blank" rel="noopener">Daily Specials on Facebook</a>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
</main>
|
||
|
||
<footer>
|
||
<div class="container">
|
||
<div class="footer-grid">
|
||
<div>
|
||
<a class="footer-brand" href="#main">
|
||
<img class="knot" src="./assets/knot.png" alt="">
|
||
<span>THE OLD FITZ PUBLIC HOUSE</span>
|
||
</a>
|
||
<address>
|
||
100 N Washington Street<br>
|
||
Marion, Indiana
|
||
</address>
|
||
</div>
|
||
<div>
|
||
<p class="col-title">Hours</p>
|
||
<div class="hours-mini">
|
||
<?php foreach (hours_footer_lines($hoursByDay) as $line): ?>
|
||
<span><?= htmlspecialchars($line) ?></span>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<p class="col-title">Get in Touch</p>
|
||
<a class="email" href="mailto:info@theoldfitzpub.com">info@theoldfitzpub.com</a>
|
||
<div class="social-row">
|
||
<a href="https://www.instagram.com/theoldfitzpub/?hl=en" target="_blank" rel="noopener" aria-label="Instagram">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6">
|
||
<rect x="3" y="3" width="18" height="18" rx="5" />
|
||
<circle cx="12" cy="12" r="4.2" />
|
||
<circle cx="17.2" cy="6.8" r="1" />
|
||
</svg>
|
||
</a>
|
||
<a href="https://www.facebook.com/profile.php?id=100086635646712" target="_blank" rel="noopener" aria-label="Facebook">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6">
|
||
<path d="M15 4h-2.2C10.7 4 9.5 5.3 9.5 7.3V10H7v3.2h2.5V21h3.3v-7.8h2.6l.4-3.2h-3V7.6c0-.8.4-1.3 1.4-1.3H15V4Z" />
|
||
</svg>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="footer-bottom">
|
||
<span>© 2026 The Old Fitz Public House</span>
|
||
<span>A neighborhood pub in Marion, Indiana</span>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<script src="main.js" defer></script>
|
||
</body>
|
||
|
||
</html>
|