82 lines
3.6 KiB
PHP
82 lines
3.6 KiB
PHP
<?php
|
|
$menu = array(
|
|
'Home' => '/',
|
|
'Create account' => '/create-account',
|
|
'Login' => '/login',
|
|
'About us' => '/about-us',
|
|
);
|
|
$pageTitle = htmlspecialchars($pageTitle ?? 'Stella Amor | Free Dating with Ultimate Match Filters', ENT_QUOTES, 'UTF-8');
|
|
$pageDescription = htmlspecialchars($pageDescription ?? 'Free dating! Ultimate filters for wealth, kinks, fetishes, & passions. Meet your perfect match now!', ENT_QUOTES, 'UTF-8');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Defaults -->
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php echo $pageTitle; ?></title>
|
|
<meta name="description" content="<?php echo $pageDescription; ?>">
|
|
<meta name="author" content="Stella Amor">
|
|
<meta name="keywords" content="free dating, online dating, match filters, finance, kinks, fetishes, lifestyle dating">
|
|
<link rel="canonical" href="https://stellaamor.com<?php echo isset($_GET['page']) ? '/' . htmlspecialchars(basename($_GET['page']), ENT_QUOTES, 'UTF-8') : ''; ?>">
|
|
|
|
<!-- Robots -->
|
|
<meta name="robots" content="index, follow">
|
|
|
|
<!-- Open Graph -->
|
|
<meta property="og:title" content="<?php echo $pageTitle; ?>">
|
|
<meta property="og:description" content="<?php echo $pageDescription; ?>">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:url" content="https://stellaamor.com<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, 'UTF-8'); ?>">
|
|
<meta property="og:image" content="https://stellaamor.com/rss/img/logo.png">
|
|
|
|
<!-- Twitter Card -->
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:title" content="<?php echo $pageTitle; ?>">
|
|
<meta name="twitter:description" content="<?php echo $pageDescription; ?>">
|
|
<meta name="twitter:image" content="https://stellaamor.com/rss/img/logo.png">
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" href="/rss/img/favicon.ico" type="image/x-icon">
|
|
<link rel="apple-touch-icon" href="/rss/img/apple-touch-icon.png">
|
|
|
|
<!-- Stylesheets -->
|
|
<link rel="preload" href="/rss/css/main.css" as="style">
|
|
<link href="https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="/rss/css/main.css">
|
|
<link rel="stylesheet" href="/rss/css/theme.css" media="print" onload="this.media='all'">
|
|
|
|
<!-- JavaScript -->
|
|
<script src="/rss/js/main.js" defer></script>
|
|
|
|
<!-- Structured Data (JSON-LD) -->
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "Organization",
|
|
"name": "Stella Amor",
|
|
"url": "https://stellaamor.com",
|
|
"logo": "https://stellaamor.com/rss/img/logo.png",
|
|
"description": "Stella Amor: Free online dating with advanced filters for lifestyle, finance, kinks, and more. Find your perfect match today."
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div class="logo">
|
|
<a href="/">
|
|
<img src="/rss/img/logo.png" alt="Stella Amor Logo" width="150" height="50">
|
|
</a>
|
|
</div>
|
|
<button class="menu-toggle" aria-label="Toggle navigation">☰</button>
|
|
<nav>
|
|
<?php
|
|
$currentPage = $_SERVER['REQUEST_URI'];
|
|
foreach($menu as $name => $link):
|
|
$isActive = ($currentPage === $link) ? 'active' : '';
|
|
$ariaCurrent = ($currentPage === $link) ? ' aria-current="page"' : '';
|
|
?>
|
|
<a href="<?php echo $link; ?>" class="menu-item <?php echo $isActive; ?>"<?php echo $ariaCurrent; ?>><?php echo $name; ?></a>
|
|
<?php endforeach; ?>
|
|
</nav>
|
|
</header>
|