Initial dev export (exclude uploads/runtime)

This commit is contained in:
AudioCore Bot
2026-03-04 20:46:11 +00:00
commit b2afadd539
120 changed files with 20410 additions and 0 deletions

32
views/partials/footer.php Normal file
View File

@@ -0,0 +1,32 @@
<?php
$footerLinksRaw = Core\Services\Settings::get('footer_links_json', '[]');
$footerLinks = json_decode($footerLinksRaw, true);
if (!is_array($footerLinks)) {
$footerLinks = [];
}
?>
<footer class="shell shell-footer">
<div class="card" style="text-align:center; font-size:12px; color:var(--muted);">
<?php if ($footerLinks): ?>
<div style="display:flex; gap:14px; justify-content:center; align-items:center; flex-wrap:wrap; margin-bottom:10px;">
<?php foreach ($footerLinks as $link): ?>
<?php
$label = trim((string)($link['label'] ?? ''));
$url = trim((string)($link['url'] ?? '#'));
if ($label === '' || $url === '') {
continue;
}
$isExternal = (bool)preg_match('~^https?://~i', $url);
?>
<a href="<?= htmlspecialchars($url, ENT_QUOTES, 'UTF-8') ?>"
style="color:var(--muted); text-decoration:none; border-bottom:1px solid rgba(255,255,255,0.18); padding-bottom:2px;"
<?= $isExternal ? 'target="_blank" rel="noopener noreferrer"' : '' ?>>
<?= htmlspecialchars($label, ENT_QUOTES, 'UTF-8') ?>
</a>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?= htmlspecialchars(Core\Services\Settings::get('footer_text', 'AudioCore V1.5'), ENT_QUOTES, 'UTF-8') ?>
- <?= date('Y') ?>
</div>
</footer>

145
views/partials/header.php Normal file
View File

@@ -0,0 +1,145 @@
<?php
use Core\Services\Nav;
use Core\Services\Plugins;
use Core\Services\Settings;
$links = Nav::links();
$activeLinks = array_values(array_filter($links, static function ($link): bool {
return (int)($link['is_active'] ?? 0) === 1;
}));
if (!$activeLinks) {
$activeLinks = [
['label' => 'Home', 'url' => '/'],
['label' => 'Artists', 'url' => '/artists'],
['label' => 'Releases', 'url' => '/releases'],
['label' => 'Store', 'url' => '/store'],
['label' => 'Contact', 'url' => '/contact'],
];
}
$storeEnabled = Plugins::isEnabled('store');
$cartCount = 0;
$cartTotal = 0.0;
$customerLoggedIn = false;
$hasAccountLink = false;
foreach ($activeLinks as $link) {
$linkUrl = trim((string)($link['url'] ?? ''));
if ($linkUrl === '/account') {
$hasAccountLink = true;
break;
}
}
if ($storeEnabled) {
if (session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
$customerLoggedIn = !empty($_SESSION['ac_store_customer_email']);
$cart = $_SESSION['ac_cart'] ?? [];
if (is_array($cart)) {
foreach ($cart as $item) {
if (!is_array($item)) {
continue;
}
$qty = max(1, (int)($item['qty'] ?? 1));
$price = (float)($item['price'] ?? 0);
$cartCount += $qty;
$cartTotal += ($price * $qty);
}
}
}
$headerTitle = Settings::get('site_header_title', 'AudioCore V1.5');
$headerTagline = Settings::get('site_header_tagline', 'Core CMS for DJs & Producers');
$headerBadgeText = Settings::get('site_header_badge_text', 'Independent catalog');
$headerBrandMode = Settings::get('site_header_brand_mode', 'default');
$headerMarkMode = Settings::get('site_header_mark_mode', 'text');
$headerMarkText = Settings::get('site_header_mark_text', 'AC');
$headerMarkIcon = preg_replace('/[^a-zA-Z0-9\\-\\s]/', '', Settings::get('site_header_mark_icon', 'fa-solid fa-music')) ?? 'fa-solid fa-music';
$headerMarkIcon = trim($headerMarkIcon);
if ($headerMarkIcon === '' || strpos($headerMarkIcon, 'fa-') === false) {
$headerMarkIcon = 'fa-solid fa-music';
}
$headerMarkBgStart = Settings::get('site_header_mark_bg_start', '#22f2a5');
$headerMarkBgEnd = Settings::get('site_header_mark_bg_end', '#10252e');
$headerLogoUrl = Settings::get('site_header_logo_url', '');
$effectiveMarkMode = $headerMarkMode;
if ($effectiveMarkMode === 'logo' && $headerLogoUrl === '') {
$effectiveMarkMode = 'icon';
}
if ($effectiveMarkMode === 'icon' && $headerMarkIcon === '') {
$effectiveMarkMode = 'text';
}
if ($effectiveMarkMode === 'text' && trim($headerMarkText) === '') {
$effectiveMarkMode = 'icon';
}
?>
<header class="shell">
<div class="card">
<div class="site-head">
<?php if ($headerBrandMode === 'logo_only' && $headerLogoUrl !== ''): ?>
<div class="site-brand site-brand-logo-only">
<img class="site-brand-logo-only-img" src="<?= htmlspecialchars($headerLogoUrl, ENT_QUOTES, 'UTF-8') ?>" alt="">
</div>
<?php else: ?>
<div class="site-brand">
<div class="site-brand-mark" style="background:linear-gradient(135deg, <?= htmlspecialchars($headerMarkBgStart, ENT_QUOTES, 'UTF-8') ?>, <?= htmlspecialchars($headerMarkBgEnd, ENT_QUOTES, 'UTF-8') ?>);">
<?php if ($effectiveMarkMode === 'icon'): ?>
<i class="<?= htmlspecialchars($headerMarkIcon, ENT_QUOTES, 'UTF-8') ?>" aria-hidden="true"></i>
<?php elseif ($effectiveMarkMode === 'logo' && $headerLogoUrl !== ''): ?>
<img class="site-brand-mark-logo" src="<?= htmlspecialchars($headerLogoUrl, ENT_QUOTES, 'UTF-8') ?>" alt="">
<?php else: ?>
<?= htmlspecialchars(trim($headerMarkText) !== '' ? $headerMarkText : 'AC', ENT_QUOTES, 'UTF-8') ?>
<?php endif; ?>
</div>
<div>
<div class="site-brand-title"><?= htmlspecialchars($headerTitle, ENT_QUOTES, 'UTF-8') ?></div>
<div class="site-brand-sub"><?= htmlspecialchars($headerTagline, ENT_QUOTES, 'UTF-8') ?></div>
</div>
</div>
<?php endif; ?>
<div class="badge site-badge"><?= htmlspecialchars($headerBadgeText, ENT_QUOTES, 'UTF-8') ?></div>
<button type="button" class="nav-toggle" id="siteNavToggle" aria-expanded="false" aria-controls="siteNavMenu">
<i class="fa-solid fa-bars"></i>
<span>Menu</span>
</button>
</div>
<div style="margin-top:18px;" class="nav" id="siteNavMenu">
<?php foreach ($activeLinks as $link): ?>
<?php
$label = (string)($link['label'] ?? '');
$url = (string)($link['url'] ?? '#');
?>
<a href="<?= htmlspecialchars($url, ENT_QUOTES, 'UTF-8') ?>">
<?= htmlspecialchars($label, ENT_QUOTES, 'UTF-8') ?>
</a>
<?php endforeach; ?>
<?php if ($storeEnabled): ?>
<div class="nav-actions">
<?php if (!$hasAccountLink): ?>
<a class="nav-account" href="/account">
<i class="fa-solid fa-user" aria-hidden="true"></i>
<span><?= $customerLoggedIn ? 'Account' : 'Login' ?></span>
</a>
<?php endif; ?>
<a class="nav-cart" href="/cart">
<i class="fa-solid fa-cart-shopping" aria-hidden="true"></i>
<span><?= $cartCount ?></span>
<span><?= number_format($cartTotal, 2) ?></span>
</a>
</div>
<?php endif; ?>
</div>
</div>
</header>
<script>
(function () {
const toggle = document.getElementById('siteNavToggle');
const menu = document.getElementById('siteNavMenu');
if (!toggle || !menu) return;
toggle.addEventListener('click', function () {
const isOpen = menu.classList.toggle('is-open');
toggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
})();
</script>

12
views/site/404.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
$pageTitle = $title ?? 'Not Found';
ob_start();
?>
<section class="card">
<div class="badge">404</div>
<h1 style="margin-top:16px; font-size:28px;"><?= htmlspecialchars($title ?? 'Not Found', ENT_QUOTES, 'UTF-8') ?></h1>
<p style="color:var(--muted);"><?= htmlspecialchars($message ?? 'Missing page', ENT_QUOTES, 'UTF-8') ?></p>
</section>
<?php
$content = ob_get_clean();
require __DIR__ . '/layout.php';

14
views/site/home.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
$pageTitle = 'AudioCore V1.5';
ob_start();
?>
<section class="card">
<div class="badge">Foundation</div>
<h1 style="margin-top:16px; font-size:32px;">AudioCore V1.5</h1>
<p style="color:var(--muted); font-size:16px; max-width:680px;">
New core scaffold. Modules will live under /modules and admin will manage navigation.
</p>
</section>
<?php
$content = ob_get_clean();
require __DIR__ . '/layout.php';

577
views/site/layout.php Normal file
View File

@@ -0,0 +1,577 @@
<?php
/** @var string $pageTitle */
/** @var string $content */
use Core\Services\Settings;
$faUrl = Settings::get('fontawesome_pro_url', '');
if ($faUrl === '') {
$faUrl = Settings::get('fontawesome_url', '');
}
$siteTitleSetting = Settings::get('site_title', Settings::get('site_header_title', 'AudioCore V1.5'));
$seoTitleSuffix = trim(Settings::get('seo_title_suffix', $siteTitleSetting));
$seoDefaultDescription = trim(Settings::get('seo_meta_description', ''));
$seoRobotsIndex = Settings::get('seo_robots_index', '1') === '1' ? 'index' : 'noindex';
$seoRobotsFollow = Settings::get('seo_robots_follow', '1') === '1' ? 'follow' : 'nofollow';
$seoOgImage = trim(Settings::get('seo_og_image', ''));
$pageTitleValue = trim((string)($pageTitle ?? $siteTitleSetting));
$metaTitle = $pageTitleValue;
if ($seoTitleSuffix !== '' && stripos($pageTitleValue, $seoTitleSuffix) === false) {
$metaTitle = $pageTitleValue . ' | ' . $seoTitleSuffix;
}
$siteNotice = null;
if (session_status() === PHP_SESSION_ACTIVE && isset($_SESSION['ac_site_notice']) && is_array($_SESSION['ac_site_notice'])) {
$siteNotice = $_SESSION['ac_site_notice'];
unset($_SESSION['ac_site_notice']);
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= htmlspecialchars($metaTitle, ENT_QUOTES, 'UTF-8') ?></title>
<?php if ($seoDefaultDescription !== ''): ?>
<meta name="description" content="<?= htmlspecialchars($seoDefaultDescription, ENT_QUOTES, 'UTF-8') ?>">
<?php endif; ?>
<meta name="robots" content="<?= htmlspecialchars($seoRobotsIndex . ',' . $seoRobotsFollow, ENT_QUOTES, 'UTF-8') ?>">
<meta property="og:title" content="<?= htmlspecialchars($metaTitle, ENT_QUOTES, 'UTF-8') ?>">
<?php if ($seoDefaultDescription !== ''): ?>
<meta property="og:description" content="<?= htmlspecialchars($seoDefaultDescription, ENT_QUOTES, 'UTF-8') ?>">
<?php endif; ?>
<?php if ($seoOgImage !== ''): ?>
<meta property="og:image" content="<?= htmlspecialchars($seoOgImage, ENT_QUOTES, 'UTF-8') ?>">
<?php endif; ?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap" rel="stylesheet">
<?php if ($faUrl !== ''): ?>
<link rel="stylesheet" href="<?= htmlspecialchars($faUrl, ENT_QUOTES, 'UTF-8') ?>">
<?php endif; ?>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.3.2/css/flag-icons.min.css"
/>
<style>
:root {
color-scheme: dark;
--ink: #0a0b11;
--surface: #14161f;
--text: #f5f7ff;
--muted: #9aa0b2;
--accent: #22f2a5;
--accent2: #10252e;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: 'Syne', sans-serif;
background-color: #14151a;
color: var(--text);
position: relative;
min-height: 100vh;
}
body::before {
content: '';
position: fixed;
inset: 0;
z-index: -2;
background:
radial-gradient(120% 70% at 50% 12%, rgba(68, 94, 155, 0.12), transparent 62%),
radial-gradient(140% 90% at 50% 80%, rgba(12, 16, 26, 0.65), transparent 70%),
linear-gradient(180deg, #1a1b1f 0%, #15161b 55%, #111217 100%);
}
body::after {
content: '';
position: fixed;
inset: 0;
z-index: -1;
opacity: 0.12;
pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.shell { max-width: 1080px; margin: 0 auto; padding: 18px 24px 28px; }
.shell-main { padding-top: 8px; }
.shell-notice { padding-top: 2px; padding-bottom: 4px; }
.site-notice {
border-radius: 14px;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(20, 22, 28, 0.72);
padding: 10px 14px;
font-size: 13px;
color: #dfe7fb;
}
.site-notice-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.site-notice-action {
display: inline-flex;
align-items: center;
justify-content: center;
height: 30px;
padding: 0 12px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.2);
background: rgba(255,255,255,0.07);
color: #eef3ff;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 10px;
white-space: nowrap;
}
.site-notice-action:hover {
background: rgba(255,255,255,0.14);
}
.site-notice.ok {
border-color: rgba(34,242,165,0.34);
background: rgba(34,242,165,0.12);
color: #c9fbe7;
}
.site-notice.info {
border-color: rgba(125,149,190,0.34);
background: rgba(125,149,190,0.13);
color: #d7e2ff;
}
.shell-footer { padding-top: 6px; padding-bottom: 18px; }
.card {
border-radius: 24px;
background: rgba(20, 22, 28, 0.75);
border: 1px solid rgba(255,255,255,0.12);
box-shadow: 0 20px 50px rgba(0,0,0,0.3);
padding: 28px;
}
.nav {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 10px;
border-radius: 18px;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.04);
}
.nav a {
text-decoration: none;
color: var(--muted);
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.24em;
padding: 8px 14px;
border-radius: 999px;
transition: all 0.2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.nav-actions {
margin-left: auto;
display: inline-flex;
align-items: center;
gap: 8px;
}
.nav-account {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.04);
color: var(--text) !important;
}
.nav-cart {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.04);
color: var(--text) !important;
}
.nav-cart:hover {
background: rgba(255,255,255,0.1);
}
.nav-cart-sep {
color: rgba(255,255,255,0.5);
margin-right: 2px;
}
.badge {
font-family: 'IBM Plex Mono', monospace;
text-transform: uppercase;
font-size: 10px;
letter-spacing: 0.32em;
color: rgba(255,255,255,0.5);
}
.nav-toggle {
display: none;
margin-top: 14px;
align-items: center;
justify-content: center;
gap: 8px;
height: 38px;
padding: 0 14px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.04);
color: var(--text);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.18em;
font-family: 'IBM Plex Mono', monospace;
cursor: pointer;
}
.site-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.site-brand {
display: flex;
align-items: center;
gap: 16px;
min-width: 0;
}
.site-brand-mark {
width: 56px;
height: 56px;
border-radius: 16px;
background: linear-gradient(135deg, var(--accent), var(--accent2));
display: grid;
place-items: center;
color: #071016;
font-weight: 700;
flex: 0 0 auto;
overflow: hidden;
}
.site-brand-mark i {
font-size: 21px;
line-height: 1;
}
.site-brand-mark-logo {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.site-brand-logo-only {
min-height: 56px;
display: flex;
align-items: center;
}
.site-brand-logo-only-img {
max-height: 56px;
max-width: 360px;
width: auto;
object-fit: contain;
display: block;
}
.site-brand-title {
font-size: 22px;
font-weight: 600;
line-height: 1.1;
}
.site-brand-sub {
font-size: 13px;
color: var(--muted);
line-height: 1.3;
}
.ac-shortcode-empty {
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.02);
border-radius: 14px;
padding: 12px 14px;
color: var(--muted);
font-size: 13px;
}
.ac-shortcode-release-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
}
.ac-shortcode-release-card {
text-decoration: none;
color: inherit;
border: 1px solid rgba(255,255,255,0.1);
background: rgba(15,18,24,0.6);
border-radius: 14px;
overflow: hidden;
display: grid;
min-height: 100%;
}
.ac-shortcode-release-cover {
aspect-ratio: 1 / 1;
background: rgba(255,255,255,0.03);
display: grid;
place-items: center;
overflow: hidden;
}
.ac-shortcode-release-cover img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.ac-shortcode-cover-fallback {
color: var(--muted);
font-family: 'IBM Plex Mono', monospace;
font-size: 12px;
letter-spacing: 0.2em;
}
.ac-shortcode-release-meta {
padding: 10px;
display: grid;
gap: 4px;
}
.ac-shortcode-release-title {
font-size: 18px;
line-height: 1.2;
font-weight: 600;
}
.ac-shortcode-release-artist,
.ac-shortcode-release-date {
color: var(--muted);
font-size: 12px;
}
.ac-shortcode-sale-chart {
display: grid;
gap: 12px;
}
.ac-shortcode-sale-head h3 {
margin: 0;
font-size: 12px;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--muted);
font-family: 'IBM Plex Mono', monospace;
font-weight: 600;
}
.ac-shortcode-sale-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 10px;
}
.ac-shortcode-sale-item {
border: 1px solid rgba(255,255,255,0.1);
background: linear-gradient(180deg, rgba(15,18,24,0.78), rgba(12,14,20,0.72));
border-radius: 12px;
padding: 8px;
transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ac-shortcode-sale-item:hover {
border-color: rgba(255,255,255,0.18);
box-shadow: 0 10px 24px rgba(0,0,0,0.24);
transform: translateY(-1px);
}
.ac-shortcode-sale-link {
display: grid;
grid-template-columns: auto 56px minmax(0, 1fr);
gap: 12px;
align-items: center;
color: inherit;
text-decoration: none;
}
.ac-shortcode-sale-link:hover .ac-shortcode-sale-title {
color: #ffffff;
}
.ac-shortcode-sale-link > .ac-shortcode-sale-rank {
order: 0;
justify-self: start;
min-width: 26px;
text-align: left;
margin-left: 2px;
position: relative;
padding-right: 18px;
margin-right: 6px;
}
.ac-shortcode-sale-link > .ac-shortcode-sale-rank::before {
content: '';
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 34px;
background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.18) 100%);
box-shadow: 0 0 12px rgba(255,255,255,0.08);
border-radius: 1px;
}
.ac-shortcode-sale-link > .ac-shortcode-sale-rank::after {
right: 10px;
}
.ac-shortcode-sale-link > .ac-shortcode-sale-thumb {
order: 1;
}
.ac-shortcode-sale-link > .ac-shortcode-sale-copy {
order: 2;
}
.ac-shortcode-sale-thumb {
width: 56px;
height: 56px;
border-radius: 10px;
overflow: hidden;
background: rgba(255,255,255,0.04);
display: grid;
place-items: center;
}
.ac-shortcode-sale-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.ac-shortcode-sale-copy {
display: grid;
gap: 2px;
min-width: 0;
}
.ac-shortcode-sale-rank {
font-family: 'IBM Plex Mono', monospace;
font-size: 28px;
line-height: 1;
font-weight: 700;
letter-spacing: -0.02em;
min-width: 34px;
text-align: right;
position: relative;
display: inline-block;
background: linear-gradient(180deg, rgba(245,247,255,0.95) 0%, rgba(169,178,196,0.72) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 10px 22px rgba(0,0,0,0.40);
transition: transform .2s ease, filter .2s ease;
}
.ac-shortcode-sale-rank::after {
content: '.';
color: var(--accent);
position: absolute;
right: -7px;
bottom: -1px;
font-size: 16px;
font-weight: 700;
line-height: 1;
text-shadow: none;
-webkit-text-fill-color: initial;
background: none;
}
.ac-shortcode-sale-link:hover .ac-shortcode-sale-rank {
transform: translateY(-1px) scale(1.03);
filter: brightness(1.08);
}
.ac-shortcode-sale-title {
font-size: 16px;
line-height: 1.25;
font-weight: 700;
}
.ac-shortcode-sale-artist {
font-size: 12px;
color: var(--muted);
line-height: 1.25;
letter-spacing: 0.02em;
}
@media (max-width: 900px) {
.shell {
padding: 12px 14px 18px;
}
.card {
border-radius: 18px;
padding: 18px;
}
}
@media (max-width: 700px) {
.site-head {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas:
"brand toggle"
"badge badge";
align-items: center;
gap: 10px 12px;
}
.site-brand { grid-area: brand; }
.site-badge { grid-area: badge; }
.nav-toggle { grid-area: toggle; margin-top: 0; align-self: start; }
.site-brand-title {
font-size: 20px;
}
.site-brand-sub {
font-size: 12px;
}
.nav {
display: none;
gap: 6px;
padding: 8px;
}
.nav.is-open {
display: flex;
}
.nav-toggle {
display: inline-flex;
}
.nav a {
width: 100%;
text-align: center;
font-size: 10px;
letter-spacing: 0.18em;
padding: 7px 10px;
}
.nav-cart {
width: 100%;
justify-content: center;
}
.nav-actions {
width: 100%;
margin-left: 0;
}
.nav-account {
flex: 1 1 auto;
justify-content: center;
}
.nav-cart {
flex: 1 1 auto;
}
.nav-cart-sep {
display: none;
}
.shell-main {
padding-top: 2px;
}
}
</style>
</head>
<body>
<?php require __DIR__ . '/../partials/header.php'; ?>
<?php if ($siteNotice): ?>
<section class="shell shell-notice">
<div class="site-notice <?= htmlspecialchars((string)($siteNotice['type'] ?? 'info'), ENT_QUOTES, 'UTF-8') ?>">
<div class="site-notice-inner">
<span><?= htmlspecialchars((string)($siteNotice['text'] ?? ''), ENT_QUOTES, 'UTF-8') ?></span>
<a href="/cart" class="site-notice-action">View Cart</a>
</div>
</div>
</section>
<?php endif; ?>
<main class="shell shell-main">
<?= $content ?? '' ?>
</main>
<?php require __DIR__ . '/../partials/footer.php'; ?>
<script data-ac-csrf>
(function() {
const token = '<?= htmlspecialchars(Core\Services\Csrf::token(), ENT_QUOTES, 'UTF-8') ?>';
document.querySelectorAll('form[method="post"], form[method="POST"]').forEach((form) => {
if (form.querySelector('input[name="csrf_token"]')) return;
const input = document.createElement('input');
input.type = 'hidden';
input.name = 'csrf_token';
input.value = token;
form.appendChild(input);
});
})();
</script>
</body>
</html>