Add landing pages

This commit is contained in:
edsea
2025-11-20 02:40:02 +01:00
parent aeb1ecd50a
commit 61d3738b26
42 changed files with 1901 additions and 526 deletions

View File

@@ -62,7 +62,7 @@ $currentPage = $page === 'index' ? 'Home' : ucwords(str_replace('-', ' ', $page)
<!-- 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 href="/rss/3rd-party/mdi/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'">
@@ -70,20 +70,59 @@ $currentPage = $page === 'index' ? 'Home' : ucwords(str_replace('-', ' ', $page)
<script src="/rss/js/main.js" defer></script>
<!-- Structured Data (JSON-LD) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "<?php echo htmlspecialchars($title, ENT_QUOTES, 'UTF-8'); ?>",
"url": "<?php echo htmlspecialchars($pageUrl, ENT_QUOTES, 'UTF-8'); ?>",
"description": "<?php echo htmlspecialchars($description, ENT_QUOTES, 'UTF-8'); ?>",
"isPartOf": {
"@type": "WebSite",
"name": "Stella Amor",
"url": "<?php echo $siteUrl; ?>/"
}
<!-- Dynamic Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "<?php echo htmlspecialchars($pageInfo['title'], ENT_QUOTES, 'UTF-8'); ?>",
"url": "<?php echo htmlspecialchars($pageUrl, ENT_QUOTES, 'UTF-8'); ?>",
"description": "<?php echo htmlspecialchars($pageInfo['long_desc'] ?? $pageInfo['short_desc'], ENT_QUOTES, 'UTF-8'); ?>",
"isPartOf": {
"@type": "WebSite",
"name": "Stella Amor",
"url": "https://stellaamor.com/"
}
<?php if (!empty($pageInfo['rich_service_type'])): ?>
"mainEntity": {
"@type": "Service",
"serviceType": "<?php echo htmlspecialchars($pageInfo['rich_service_type'], ENT_QUOTES, 'UTF-8'); ?>",
"name": "<?php echo htmlspecialchars($pageInfo['title'], ENT_QUOTES, 'UTF-8'); ?>",
"description": "<?php echo htmlspecialchars($pageInfo['long_desc'] ?? $pageInfo['short_desc'], ENT_QUOTES, 'UTF-8'); ?>",
"provider": {
"@type": "Organization",
"name": "Stella Amor",
"url": "https://stellaamor.com"
},
"areaServed": "Worldwide",
"offers": {
"@type": "Offer",
"name": "Free Membership",
"price": "0",
"priceCurrency": "USD",
"description": "Full access to all filters during the free membership period"
}
</script>
<?php if (!empty($pageInfo['rich_faq'])): ?>
"faqPage": {
"@type": "FAQPage",
"mainEntity": [
<?php foreach ($pageInfo['rich_faq'] as $i => $faq): ?>
{
"@type": "Question",
"name": "<?php echo htmlspecialchars($faq['question'], ENT_QUOTES, 'UTF-8'); ?>",
"acceptedAnswer": {
"@type": "Answer",
"text": "<?php echo htmlspecialchars($faq['answer'], ENT_QUOTES, 'UTF-8'); ?>"
}
}<?php echo $i < count($pageInfo['rich_faq'])-1 ? ',' : ''; ?>
<?php endforeach; ?>
]
}
<?php endif; ?>
}
<?php endif; ?>
}
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7LSPWJ1YKX"></script>